next up previous contents index
Next: 7.1.23 Additional information and Up: 7.1 Parameter file: rhd.par Previous: 7.1.21 Input/output control   Contents   Index

Subsections

7.1.22 Scale and test parameters


7.1.22.1 real time_scalestart

Usually, parameters are read from rhd.par and are kept constant during a run. A consecutive run could be started with a different set though, e.g., to increase the luminosity of a model. However, in many cases, such an abrupt change causes the generation of spurious (often plane-parallel or radial) waves. And it takes time and effort - by temporarilly increasing some viscosity - to damp them. This is particularly annoying when the transient waves reduce the time step of the simulations for some period.

The transition between two parameter sets can be smoothed by interpolating between them. The onset of the transition interval is given by time_scalestart, while the end of the interval is given by time_scaleend (see Sect.7.1.22.2). The first set of parameters is given by the usual rhd.par file, while the second set is given by an additional rhd.par2 file (see Tab.6.1). Normally, the scaling is inactive. To activate it, the rhd_scale_module has to be compiled by activating any tweak module, i.e., e.g. by setting F90_TWEAK=1 (see Sect.4.3.1.15) before calling the configure script (see Sect.4.3). The file rhd.par2 has to exist in the current directory, i.e., at the same place where the rhd.par file resides, and it has to have some entries with values differing from those in rhd.par. Note, though, that so far only a few parameters are treated by the rhd_scale_module. In addition, 0.0<time_ScaleStart<time and time_ScaleStart<=time_ScaleEnd have to be fulfilled. Choosing 0.0<time_ScaleStart=time_ScaleEnd should work but results in an abrupt change of parameters - not recommended.

For later runs (starting with time_ScaleEnd<time) the file rhd.par should be replaced by the previous rhd.par2 and both scaling-time parameters should be set to negative values to properly indicate that the scaling is now finished (otherwise, the data in rhd.par don't represent the values actually used for the simulation). The start time of the scaling interval can be set e.g. by

real time_scalestart f=E15.8 b=4 n='Start time of scaling interval'         u=s
100.0
Allowed values are


7.1.22.2 real time_scaleend

Together with time_scalestart (see a detailed description in Sect.7.1.22.1), this parameter specifies the scaling interval. The end time of the scaling interval can be set e.g. by
real time_scaleend f=E15.8 b=4 n='End time of scaling interval'         u=s
200.0
Allowed values are With the given example values time_ScaleStart=100.0 and time_ScaleEnd=200.0, values from rhd.par would be used for 100.0<=time, values from rhd.par2 would be used for time>=200.0, and values in between (according to the interpolation in rhd_scale_module) for 100.0<time<200.0.


7.1.22.3 integer n_test1

The integer parameters n_test1 to n_test5 are general-purpose parameters to facilitate the testing of new features. They can be used anywhere in the code - but only for a limited time. In any release version of the code, all references to these parameters should be replaced by proper parameters with a dedicated purpose and a descriptive name. In contrast to these recommendation, the parameters are used (more or less permanently) in the various tweak modules. The parameter can be set e.g. by
integer n_test1 f=I11 b=4 n='1st integer test parameter'
1.0


7.1.22.4 real c_test1

The real parameters c_test1 to c_test5 are general-purpose parameters to facilitate the testing of new features. They can be used anywhere in the code - but only for a limited time, see above. The parameter can be set e.g. by
real c_test1 f=E15.8 b=4 n='1st real test parameter'
1.0


7.1.22.5 character strtest1

The string parameters strtest1 to strtest5 are general-purpose parameters to facilitate the testing of new features. They can be used anywhere in the code - but only for a limited time, see above. The parameter can be set e.g. by
character strtest1 f=A80 b=80 n='1st character test parameter'
mode1


next up previous contents index
Next: 7.1.23 Additional information and Up: 7.1 Parameter file: rhd.par Previous: 7.1.21 Input/output control   Contents   Index