src.dycore.discretisation.time_update#
Functions
|
Helper function to initialise the elem and node grids, corresponding to the cell and node grids, from a given user iniital data file. |
|
For more details, refer to the write-up Time-stepping. |
- src.dycore.discretisation.time_update.data_init(ud)#
Helper function to initialise the elem and node grids, corresponding to the cell and node grids, from a given user iniital data file.
Parameters#
- ud
inputs.user_data.UserDataInit
Data container for the initial conditions.
Returns#
- elem
discretization.kgrid.ElemSpaceDiscr
Cells grid.
- node
discretization.kgrid.NodeSpaceDiscr
Nodes grid.
- ud
- src.dycore.discretisation.time_update.do(Sol, flux, mpv, t, tout, ud, elem, node, steps, th, bld=None, writer=None, debug=False)#
For more details, refer to the write-up Time-stepping.
Does a time-step for the atmospheric solver.
Parameters#
- Sol
management.variable.Vars
Solution data container.
- flux
management.variable.States
Data container for the fluxes.
- mpv
physics.low_mach.mpv.MPV
Variables relating to the elliptic solver.
- tfloat
Current time
- toutfloat
Next output time
- ud
inputs.user_data.UserDataInit
Data container for the initial conditions
- elem
discretization.kgrid.ElemSpaceDiscr
Cells grid.
- node
discretization.kgrid.NodeSpaceDiscr
Nodes grid.
- stepint
Current step.
- th
physics.gas_dynamics.thermodynamic.init
Thermodynamic variables of the system
- bld
data_assimilation.blending.Blend()
Blending class used to initalise interface blending methods.
- writer
management.io.io
, optional default == None. If given, output after each time-step will be written in the hdf5 format.
- debugboolean, optional
- default == False. If True, then writer will output Sol:
before flux calculation
before advection routine
after advection routine
after explicit solver
after implicit solver
during both the half-step for the prediction of advective flux and the full-step.
Returns#
- list
A list of [Sol,flux,mpv,[window_step,step]] data containers at time tout.
- Sol