jf1uids.option_classes.simulation_params module#

class jf1uids.option_classes.simulation_params.SimulationParams(C_cfl: float = 0.4, gravitational_constant: float = 1.0, gamma: float = 1.6666666666666667, dt_max: float = 0.001, t_end: float = 0.2, snapshot_timepoints: array = Array([0.], dtype=float32), wind_params: WindParams = (0.0, 0.0, 100000.0), cosmic_ray_params: CosmicRayParams = (0.0, 0.1), cooling_params: CoolingParams = (0.76, 0.02, 10000.0, (1.0, 1.0, 100000000.0)), neural_net_force_params: NeuralNetForceParams = (None,), cnn_mhd_corrector_params: CNNMHDconfig = (False, None))[source]#

Bases: NamedTuple

Different from the simulation configuration, the simulation parameters do not require recompilation when changed. The simulation can be differentiated with respect to them.

C_cfl: float#

The Courant-Friedrichs-Lewy number, a factor in the time step calculation.

cnn_mhd_corrector_params: CNNMHDconfig#

The parameters of the CNN MHD corrector module.

cooling_params: CoolingParams#

The parameters of the cooling module.

cosmic_ray_params: CosmicRayParams#

Cosmic ray parameters

dt_max: float#

The maximum time step.

gamma: float#

The adiabatic index of the gas.

gravitational_constant: float#

Gravitational constant.

neural_net_force_params: NeuralNetForceParams#

The parameters of the neural network force module.

snapshot_timepoints: array#

Snapshot timepoints

t_end: float#

The final time of the simulation.

wind_params: WindParams#

The parameters of the stellar wind module.