Skip to content
Snippets Groups Projects
Commit a8a7fcc3 authored by James Willis's avatar James Willis
Browse files

Re-added optional setting of G. Removed unused VELOCIraptor units in yaml file.

parent 1e8800ee
No related branches found
No related tags found
1 merge request!578Swift velociraptor
...@@ -9,18 +9,12 @@ InternalUnitSystem: ...@@ -9,18 +9,12 @@ InternalUnitSystem:
# Structure finding options # Structure finding options
StructureFinding: StructureFinding:
config_file_name: stf_input.cfg # Name of the STF config file. config_file_name: stf_input.cfg # Name of the STF config file.
basename: ./halo_vel_pot/stf # Common part of the name of output files. basename: ./stf # Common part of the name of output files.
output_time_format: 0 # Specifies format of delta_time. 0 for simulation steps and 1 for simulation time intervals. output_time_format: 0 # Specifies the frequency format of structure finding. 0 for simulation steps (delta_step) and 1 for simulation time intervals (delta_time).
time_first: 0. # Time of the first structure finding output (in internal units). scale_factor_first: 0.92 # Scale-factor of the first snaphot (cosmological run)
delta_time: 250 # Time difference between consecutive structure finding outputs (in internal units). Can either be given in simulation steps or simulation time intervals. time_first: 0.01 # Time of the first structure finding output (in internal units).
delta_step: 1000 # Time difference between consecutive structure finding outputs (in internal units) in simulation steps.
# Define the system of units to use int VELOCIraptor. delta_time: 1e-4 # Time difference between consecutive structure finding outputs (in internal units) in simulation time intervals.
VelociraptorUnitSystem:
UnitMass_in_cgs: 1.989e33 # M_sun in grams
UnitLength_in_cgs: 3.085678e21 # kpc in centimeters
UnitVelocity_in_cgs: 1e5 # km/s in centimeters per second
UnitCurrent_in_cgs: 1 # Amperes
UnitTemp_in_cgs: 1 # Kelvin
# Cosmological parameters # Cosmological parameters
Cosmology: Cosmology:
......
...@@ -12,7 +12,7 @@ StructureFinding: ...@@ -12,7 +12,7 @@ StructureFinding:
basename: ./stf # Common part of the name of output files. basename: ./stf # Common part of the name of output files.
output_time_format: 0 # Specifies the frequency format of structure finding. 0 for simulation steps (delta_step) and 1 for simulation time intervals (delta_time). output_time_format: 0 # Specifies the frequency format of structure finding. 0 for simulation steps (delta_step) and 1 for simulation time intervals (delta_time).
scale_factor_first: 0.92 # Scale-factor of the first snaphot (cosmological run) scale_factor_first: 0.92 # Scale-factor of the first snaphot (cosmological run)
time_first: 1000.0 # Time of the first structure finding output (in internal units). time_first: 0.01 # Time of the first structure finding output (in internal units).
delta_step: 1000 # Time difference between consecutive structure finding outputs (in internal units) in simulation steps. delta_step: 1000 # Time difference between consecutive structure finding outputs (in internal units) in simulation steps.
delta_time: 1e-4 # Time difference between consecutive structure finding outputs (in internal units) in simulation time intervals. delta_time: 1e-4 # Time difference between consecutive structure finding outputs (in internal units) in simulation time intervals.
......
...@@ -12,7 +12,7 @@ StructureFinding: ...@@ -12,7 +12,7 @@ StructureFinding:
basename: ./stf # Common part of the name of output files. basename: ./stf # Common part of the name of output files.
output_time_format: 0 # Specifies the frequency format of structure finding. 0 for simulation steps (delta_step) and 1 for simulation time intervals (delta_time). output_time_format: 0 # Specifies the frequency format of structure finding. 0 for simulation steps (delta_step) and 1 for simulation time intervals (delta_time).
scale_factor_first: 0.92 # Scale-factor of the first snaphot (cosmological run) scale_factor_first: 0.92 # Scale-factor of the first snaphot (cosmological run)
time_first: 0. # Time of the first structure finding output (in internal units). time_first: 0.01 # Time of the first structure finding output (in internal units).
delta_step: 1000 # Time difference between consecutive structure finding outputs (in internal units) in simulation steps. delta_step: 1000 # Time difference between consecutive structure finding outputs (in internal units) in simulation steps.
delta_time: 1e-4 # Time difference between consecutive structure finding outputs (in internal units) in simulation time intervals. delta_time: 1e-4 # Time difference between consecutive structure finding outputs (in internal units) in simulation time intervals.
......
...@@ -48,8 +48,8 @@ void phys_const_init(const struct unit_system *us, struct swift_params *params, ...@@ -48,8 +48,8 @@ void phys_const_init(const struct unit_system *us, struct swift_params *params,
const_newton_G_cgs / units_general_cgs_conversion_factor(us, dimension_G); const_newton_G_cgs / units_general_cgs_conversion_factor(us, dimension_G);
/* Overwrite G if present in the file */ /* Overwrite G if present in the file */
//internal_const->const_newton_G = parser_get_opt_param_double( internal_const->const_newton_G = parser_get_opt_param_double(
// params, "PhysicalConstants:G", internal_const->const_newton_G); params, "PhysicalConstants:G", internal_const->const_newton_G);
const float dimension_c[5] = {0, 1, -1, 0, 0}; /* [cm s^-1] */ const float dimension_c[5] = {0, 1, -1, 0, 0}; /* [cm s^-1] */
internal_const->const_speed_light_c = internal_const->const_speed_light_c =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment