|
| procedure, nopass | step (rho_field, m_x, m_y, m_z, e, p, u, v, w, ax, ax_stress, coef, gs, artificial_visc, mu, kappa, bcs_vel, time, rk_scheme, dt) |
| | Advances the primitive variables (density, momentum, energy) in time using a Runge-Kutta scheme.
|
| |
| procedure, nopass | evaluate_rhs (rhs_rho_field, rhs_m_x, rhs_m_y, rhs_m_z, rhs_e, rho_field, m_x, m_y, m_z, e, p, u, v, w, ax, ax_stress, coef, gs, artificial_visc, mu, kappa) |
| | Evaluates the right-hand side of the compressible equations. Inviscid terms are evaluated through div(). Stabilization is always the existing scalar Laplacian. In navier-stokes mode, physical mu and kappa add a separate compressible Navier-Stokes viscous flux.
|
| |
Definition at line 56 of file compressible_res_cpu.f90.
◆ evaluate_rhs()
| procedure, nopass compressible_res_cpu::compressible_res_cpu_t::evaluate_rhs |
( |
type(field_t), intent(inout) |
rhs_rho_field, |
|
|
type(field_t), intent(inout) |
rhs_m_x, |
|
|
type(field_t), intent(inout) |
rhs_m_y, |
|
|
type(field_t), intent(inout) |
rhs_m_z, |
|
|
type(field_t), intent(inout) |
rhs_e, |
|
|
type(field_t), intent(inout) |
rho_field, |
|
|
type(field_t), intent(inout) |
m_x, |
|
|
type(field_t), intent(inout) |
m_y, |
|
|
type(field_t), intent(inout) |
m_z, |
|
|
type(field_t), intent(inout) |
e, |
|
|
type(field_t), intent(in) |
p, |
|
|
type(field_t), intent(in) |
u, |
|
|
type(field_t), intent(in) |
v, |
|
|
type(field_t), intent(in) |
w, |
|
|
class(ax_t), intent(inout) |
ax, |
|
|
class(ax_t), intent(inout) |
ax_stress, |
|
|
type(coef_t), intent(inout) |
coef, |
|
|
type(gs_t), intent(inout) |
gs, |
|
|
type(field_t), intent(in) |
artificial_visc, |
|
|
type(field_t), intent(in) |
mu, |
|
|
type(field_t), intent(in) |
kappa |
|
) |
| |
|
static |
- Parameters
-
| rhs_rho_field | Output array for density RHS terms |
| rhs_m_x | Output array for x-momentum RHS terms |
| rhs_m_y | Output array for y-momentum RHS terms |
| rhs_m_z | Output array for z-momentum RHS terms |
| rhs_E | Output array for energy RHS terms |
| rho_field | Input density field |
| m_x | Input x-momentum field |
| m_y | Input y-momentum field |
| m_z | Input z-momentum field |
| E | Input total energy field |
| p | Input pressure field |
| u | Input x-velocity field |
| v | Input y-velocity field |
| w | Input z-velocity field |
| Ax | Matrix-vector product operator for Laplacian terms |
| coef | Spatial discretization coefficients |
| gs | Gather-scatter operator for parallel communication |
| artificial_visc | Artificial viscosity field |
| mu | Dynamic viscosity field for physical momentum diffusion |
| kappa | Thermal conductivity field for physical energy diffusion |
Definition at line 59 of file compressible_res_cpu.f90.
◆ step()
| procedure, nopass compressible_res_cpu::compressible_res_cpu_t::step |
( |
type(field_t), intent(inout) |
rho_field, |
|
|
type(field_t), intent(inout) |
m_x, |
|
|
type(field_t), intent(inout) |
m_y, |
|
|
type(field_t), intent(inout) |
m_z, |
|
|
type(field_t), intent(inout) |
e, |
|
|
type(field_t), intent(in) |
p, |
|
|
type(field_t), intent(in) |
u, |
|
|
type(field_t), intent(in) |
v, |
|
|
type(field_t), intent(in) |
w, |
|
|
class(ax_t), intent(inout) |
ax, |
|
|
class(ax_t), intent(inout) |
ax_stress, |
|
|
type(coef_t), intent(inout) |
coef, |
|
|
type(gs_t), intent(inout) |
gs, |
|
|
type(field_t), intent(in) |
artificial_visc, |
|
|
type(field_t), intent(in) |
mu, |
|
|
type(field_t), intent(in) |
kappa, |
|
|
type(bc_list_t), intent(inout) |
bcs_vel, |
|
|
type(time_state_t), intent(in) |
time, |
|
|
class(runge_kutta_time_scheme_t), intent(in) |
rk_scheme, |
|
|
real(kind=rp), intent(in) |
dt |
|
) |
| |
|
staticvirtual |
- Parameters
-
| rho_field | Density field |
| m_x,m_y,m_z | Momentum components |
| E | Total energy |
| p | Pressure field |
| u,v,w | Velocity components |
| Ax | Matrix-vector product operator |
| coef | Coefficients for spatial discretization |
| gs | Gather-scatter operator for parallel communication |
| artificial_visc | Artificial viscosity field (entropy viscosity, min with low-order) |
| mu | Dynamic viscosity field (physical viscosity for momentum) |
| kappa | Thermal conductivity field (physical viscosity for energy) |
| bcs_vel | Velocity boundary conditions |
| time | Current time state |
| rk_scheme | Runge-Kutta time integration scheme |
| dt | Time step size |
Implements compressible_residual::compressible_rhs_t.
Definition at line 58 of file compressible_res_cpu.f90.
◆ gamma
| real(kind=rp) compressible_residual::compressible_rhs_t::gamma = 1.4_rp |
|
inherited |
The documentation for this type was generated from the following file: