AstroSimBase.Euler
— Type1st-order explicit Euler time integration
AstroSimBase.GravityModel
— TypeGravity model. Supported: Newton
, MOND1983Milgrom
, QUMOND
AstroSimBase.Leapfrog
— TypeLeapfrog time integration
AstroSimBase.MOND1983Milgrom
— TypeMilgrom 1983 formula of MOND
AstroSimBase.Newton
— TypeTraditional Newtonian gravity
AstroSimBase.ProgressMode
— TypeLogging with progress bar
AstroSimBase.QUMOND
— TypeQUasi-linear MOdified Newtonian Dynamics
AstroSimBase.RK4
— Type4-th order Runge-Kutta time integration
AstroSimBase.emptyfunction
— Methodfunction emptyfunction(args...) end
Accept any outputs but doing nothing.
It is designed for initializing callback functions
AstroSimBase.need_to_interrupt
— Methodfunction needtointerrupt(OutputDir::String)
If there is a file named `stop` in folder `OutputDir`, return true; else, return `false`.
Keywords
remove
: if true, remove thestop
file asynchronouslydelay
: if true, wait for 0.1 second to avoid file locking error
AstroSimBase.randin
— Methodfunction randin(T, a, b) function randin(a, b)
Generate uniform random number in [a,b]
. It avoids error from rand(a:b)
where a
and b
are Unitful.Quantity
AstroSimBase.traitstring
— MethodBetter printing of trait types