Renaming for bug correction. Use now AC_M_sink_Msun in astaroth.conf instead of AC_M_sink!
This commit is contained in:
@@ -53,7 +53,7 @@ AC_lnrho0 = 1.3
|
|||||||
AC_sink_pos_x = 3.14
|
AC_sink_pos_x = 3.14
|
||||||
AC_sink_pos_y = 3.14
|
AC_sink_pos_y = 3.14
|
||||||
AC_sink_pos_z = 3.14
|
AC_sink_pos_z = 3.14
|
||||||
AC_M_sink = 1.0
|
AC_M_sink_Msun = 1.0
|
||||||
AC_soft = 0.12
|
AC_soft = 0.12
|
||||||
|
|
||||||
// Physical properties of the domain
|
// Physical properties of the domain
|
||||||
|
@@ -137,11 +137,11 @@ update_config(AcMeshInfo* config)
|
|||||||
6.674e-8); // g/cm3/s GGS definition //TODO define in a separate module
|
6.674e-8); // g/cm3/s GGS definition //TODO define in a separate module
|
||||||
AcReal M_sun = AcReal(1.989e33); // g solar mass
|
AcReal M_sun = AcReal(1.989e33); // g solar mass
|
||||||
|
|
||||||
config->real_params[AC_M_sink_Msun] = config->real_params[AC_M_sink] * M_sun /
|
config->real_params[AC_M_sink] = config->real_params[AC_M_sink_Msun] * M_sun /
|
||||||
((config->real_params[AC_unit_length] *
|
((config->real_params[AC_unit_length] *
|
||||||
config->real_params[AC_unit_length] *
|
config->real_params[AC_unit_length] *
|
||||||
config->real_params[AC_unit_length]) *
|
config->real_params[AC_unit_length]) *
|
||||||
config->real_params[AC_unit_density]);
|
config->real_params[AC_unit_density]);
|
||||||
|
|
||||||
config->real_params[AC_G_const] = G_CONST_CGS / ((config->real_params[AC_unit_velocity] *
|
config->real_params[AC_G_const] = G_CONST_CGS / ((config->real_params[AC_unit_velocity] *
|
||||||
config->real_params[AC_unit_velocity]) /
|
config->real_params[AC_unit_velocity]) /
|
||||||
|
Reference in New Issue
Block a user