Simulation Configuration
UltraDark.Config
— ModuleThe Config
module contains structs and utility functions for controlling the simulation.
#Exports
UltraDark.Config.SimulationConfig
— Typestruct SimulationConfig
Fields
a::Any
: function defining scale factor a(t)phase_grad_limit::Float64
density_threshold::Float64
time_step_options::Any
UltraDark.Config.TimeStepOptions
— Typestruct TimeStepOptions
struct containing options controlling the size and calculation of time steps.
See also: SimulationConfig
Examples
julia> using UltraDark
julia> TimeStepOptions()
TimeStepOptions(10, 1.0)
Fields
update_period::Int64
: controls how many steps are taken before the timestep is updatedmultiplier::Float64
: multiplies the calculated maximum time step by a constant
UltraDark.Config.TimeStepOptions
— MethodTimeStepOptions(; update_period=10, multiplier=1.0)
UltraDark.Config.constant_scale_factor
— Methodconstant_scale_factor(t) -> Float64
A function that always returns 1.0
, useful for simulations with no background expansion.