src.dycore.physics.gas_dynamics.numerical_flux#
Functions
|
HLL solver for the Riemann problem. |
|
Recompute the advective fluxes at the cell interfaces, i.e. the faces. |
- src.dycore.physics.gas_dynamics.numerical_flux.recompute_advective_fluxes(flux, Sol, *args, **kwargs)#
Recompute the advective fluxes at the cell interfaces, i.e. the faces. This function updates the flux container in-place.
Parameters#
- flux
management.variable.States
Data container for the fluxes at the cell interfaces.
- Sol
management.variable.States
Data container for the Solution.
Attention#
This function is a mess and requires cleaning up.
- flux
- src.dycore.physics.gas_dynamics.numerical_flux.hll_solver(flux, Lefts, Rights, Sol, lmbda, ud, th)#
HLL solver for the Riemann problem. Chooses the advected quantities from Lefts or Rights based on the direction given by flux.
Parameters#
- flux
management.variable.States
Data container for fluxes.
- Lefts
management.variable.States
Container for the quantities on the left of the cell interfaces.
- Rights
management.variable.States
Container for the quantities on the right of the cell interfaces.
- Sol
management.variable.Vars
Solution data container.
- lmbdafloat
\(\frac{dt}{dx}\), where \(dx\) is the grid-size in the direction of the substep.
- ud
inputs.user_data.UserDataInit
Class container for the initial condition.
- th
physics.gas_dynamics.thermodynamic.init
Class container for the thermodynamical constants.
Returns#
management.variable.States
flux data container with the solution of the Riemann problem.
- flux