MFC
Exascale flow solver
Loading...
Searching...
No Matches
m_sim_helpers Module Reference

Simulation helper routines for enthalpy computation, CFL calculation, and stability checks. More...

Functions/Subroutines

real(wp) function f_compute_filtered_dtheta (k, l)
 Computes the modified dtheta for Fourier filtering in azimuthal direction.
real(wp) function f_compute_multidim_cfl_terms (vel, c, j, k, l)
 Computes inviscid CFL terms for multi-dimensional cases (2D/3D only).
subroutine, public s_compute_enthalpy (q_prim_vf, pres, rho, gamma, pi_inf, re, h, alpha, vel, vel_sum, qv, j, k, l)
 Computes enthalpy.
subroutine, public s_compute_stability_from_dt (vel, c, rho, re_l, j, k, l, icfl_sf, vcfl_sf, rc_sf)
 Computes stability criterion for a specified dt.
subroutine, public s_compute_dt_from_cfl (vel, c, max_dt, rho, re_l, j, k, l)
 Computes dt for a specified CFL number.

Detailed Description

Simulation helper routines for enthalpy computation, CFL calculation, and stability checks.

Function/Subroutine Documentation

◆ f_compute_filtered_dtheta()

real(wp) function m_sim_helpers::f_compute_filtered_dtheta ( integer, intent(in) k,
integer, intent(in) l )

Computes the modified dtheta for Fourier filtering in azimuthal direction.

Definition at line 341 of file m_sim_helpers.fpp.f90.

Here is the caller graph for this function:

◆ f_compute_multidim_cfl_terms()

real(wp) function m_sim_helpers::f_compute_multidim_cfl_terms ( real(wp), dimension(num_vels), intent(in) vel,
real(wp), intent(in) c,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l )

Computes inviscid CFL terms for multi-dimensional cases (2D/3D only).

Definition at line 378 of file m_sim_helpers.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_compute_dt_from_cfl()

subroutine, public m_sim_helpers::s_compute_dt_from_cfl ( real(wp), dimension(num_vels), intent(in) vel,
real(wp), intent(in) c,
real(wp), dimension(0:m,0:n,0:p), intent(inout) max_dt,
real(wp), intent(in) rho,
real(wp), dimension(2), intent(in) re_l,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l )

Computes dt for a specified CFL number.

Definition at line 611 of file m_sim_helpers.fpp.f90.

Here is the call graph for this function:

◆ s_compute_enthalpy()

subroutine, public m_sim_helpers::s_compute_enthalpy ( type(scalar_field), dimension(sys_size), intent(in) q_prim_vf,
real(wp), intent(inout) pres,
real(wp), intent(inout) rho,
real(wp), intent(inout) gamma,
real(wp), intent(inout) pi_inf,
real(wp), dimension(2), intent(inout) re,
real(wp), intent(inout) h,
real(wp), dimension(num_fluids), intent(inout) alpha,
real(wp), dimension(num_vels), intent(inout) vel,
real(wp), intent(inout) vel_sum,
real(wp), intent(out) qv,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l )

Computes enthalpy.

Definition at line 420 of file m_sim_helpers.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_compute_stability_from_dt()

subroutine, public m_sim_helpers::s_compute_stability_from_dt ( real(wp), dimension(num_vels), intent(in) vel,
real(wp), intent(in) c,
real(wp), intent(in) rho,
real(wp), dimension(2), intent(in) re_l,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l,
real(wp), dimension(0:m,0:n,0:p), intent(inout) icfl_sf,
real(wp), dimension(0:m,0:n,0:p), intent(inout), optional vcfl_sf,
real(wp), dimension(0:m,0:n,0:p), intent(inout), optional rc_sf )

Computes stability criterion for a specified dt.

Definition at line 547 of file m_sim_helpers.fpp.f90.

Here is the call graph for this function:
Here is the caller graph for this function: