|
phyex1d
1D model using PHYEX
|


Public Member Functions | |
| __init__ (self, dt, method, name, tag, case, grid, prognostic_variables) | |
| setup (self, init_state, duration) | |
| finalize (self) | |
| execute (self, previous_state, timestep, timestep_number) | |
| step (self, state, timestep, timestep_number) | |
| add_vertical_coordinate (self, state) | |
| add_conversions (self, state) | |
| build_init_state (self, init_state) | |
| forcing (self, state, timestep, timestep_number) | |
Public Attributes | |
| case | |
| grid | |
| prognostic_variables | |
| cst | |
Base class for 1D model physics schemes This class is not intended to be used directly.
| phyex1d.physics_base.PhysicsBase.__init__ | ( | self, | |
| dt, | |||
| method, | |||
| name, | |||
| tag, | |||
| case, | |||
| grid, | |||
| prognostic_variables | |||
| ) |
| phyex1d.physics_base.PhysicsBase.add_conversions | ( | self, | |
| state | |||
| ) |
Add derived variables to the state
Parameters
----------
state : dict
Current state
| phyex1d.physics_base.PhysicsBase.add_vertical_coordinate | ( | self, | |
| state | |||
| ) |
Add vertical coordinate to the state
Parameters
----------
state : dict
Current state
| phyex1d.physics_base.PhysicsBase.build_init_state | ( | self, | |
| init_state | |||
| ) |
Build the initial state
Parameters
----------
init_state : dict
Initial state dictionary to populate
Returns
-------
dict
Populated initial state
| phyex1d.physics_base.PhysicsBase.execute | ( | self, | |
| previous_state, | |||
| timestep, | |||
| timestep_number | |||
| ) |
Advance the state by one timestep
Parameters
----------
previous_state : dict
Dictionary holding all the variables.
timestep : float
Timestep (s)
timestep_number : int
Current time step number
Returns
-------
dict
State after time integration
| phyex1d.physics_base.PhysicsBase.finalize | ( | self | ) |
Tear down the scheme. Override in subclasses.
Reimplemented in phyex1d.phyex.PHYEX.
| phyex1d.physics_base.PhysicsBase.forcing | ( | self, | |
| state, | |||
| timestep, | |||
| timestep_number | |||
| ) |
Apply large-scale forcings to the state
Parameters
----------
state : dict
Dictionary holding all the variables.
timestep : float
Timestep (s)
timestep_number : int
Current time step number
Returns
-------
dict
Updated state after forcing
| phyex1d.physics_base.PhysicsBase.setup | ( | self, | |
| init_state, | |||
| duration | |||
| ) |
Set up the scheme. Override in subclasses.
Reimplemented in phyex1d.phyex.PHYEX.
| phyex1d.physics_base.PhysicsBase.step | ( | self, | |
| state, | |||
| timestep, | |||
| timestep_number | |||
| ) |
Physics step. Override in subclasses. Returns the state unchanged by default.
Reimplemented in phyex1d.phyex.PhysicsArome.