MFC: Simulation
High-fidelity multiphase flow simulation
Loading...
Searching...
No Matches
m_variables_conversion.fpp.f90 File Reference

Functions/Subroutines

program __m_variables_conversion_fpp_f90__
 
subroutine s_compute_pressure (energy, alf, dyn_p, pi_inf, gamma, rho, qv, pres, stress, mom, g)
 This procedure conditionally calculates the appropriate pressure.
 
subroutine s_convert_mixture_to_mixture_variables (q_vf, i, j, k, rho, gamma, pi_inf, qv, re_k, g_k, g)
 This subroutine is designed for the gamma/pi_inf model and provided a set of either conservative or primitive variables, transfers the density, specific heat ratio function and the liquid stiffness function from q_vf to rho, gamma and pi_inf.
 
subroutine s_convert_species_to_mixture_variables_bubbles (q_vf, j, k, l, rho, gamma, pi_inf, qv, re_k, g_k, g)
 This procedure is used alongside with the gamma/pi_inf model to transfer the density, the specific heat ratio function and liquid stiffness function from the vector of conservative or primitive variables to their scalar counterparts. Specifically designed for when subgrid bubbles must be included.
 
subroutine s_convert_species_to_mixture_variables (q_vf, k, l, r, rho, gamma, pi_inf, qv, re_k, g_k, g)
 This subroutine is designed for the volume fraction model and provided a set of either conservative or primitive variables, computes the density, the specific heat ratio function and the liquid stiffness function from q_vf and stores the results into rho, gamma and pi_inf.
 
subroutine s_convert_species_to_mixture_variables_acc (rho_k, gamma_k, pi_inf_k, qv_k, alpha_k, alpha_rho_k, re_k, k, l, r, g_k, g)
 
subroutine s_convert_species_to_mixture_variables_bubbles_acc (rho_k, gamma_k, pi_inf_k, qv_k, alpha_k, alpha_rho_k, re_k, k, l, r)
 
subroutine s_initialize_variables_conversion_module ()
 The computation of parameters, the allocation of memory, the association of pointers and/or the execution of any other procedures that are necessary to setup the module.
 
subroutine s_initialize_mv (qk_cons_vf, mv)
 
subroutine s_initialize_pb (qk_cons_vf, mv, pb)
 
subroutine s_convert_conservative_to_primitive_variables (qk_cons_vf, qk_prim_vf, gm_alphak_vf, ix, iy, iz)
 The following procedure handles the conversion between the conservative variables and the primitive variables.
 
subroutine s_convert_primitive_to_conservative_variables (q_prim_vf, q_cons_vf)
 The following procedure handles the conversion between the primitive variables and the conservative variables.
 
subroutine s_convert_primitive_to_flux_variables (qk_prim_vf, fk_vf, fk_src_vf, is1, is2, is3, s2b, s3b)
 The following subroutine handles the conversion between the primitive variables and the Eulerian flux variables.
 
subroutine s_finalize_variables_conversion_module ()
 

Function/Subroutine Documentation

◆ __m_variables_conversion_fpp_f90__()

program __m_variables_conversion_fpp_f90__
Here is the call graph for this function:

◆ s_compute_pressure()

subroutine __m_variables_conversion_fpp_f90__::s_compute_pressure ( real(kind(0d0)), intent(in) energy,
real(kind(0d0)), intent(in) alf,
real(kind(0d0)), intent(in) dyn_p,
real(kind(0d0)), intent(in) pi_inf,
real(kind(0d0)), intent(in) gamma,
real(kind(0d0)), intent(in) rho,
real(kind(0d0)), intent(in) qv,
real(kind(0d0)), intent(out) pres,
real(kind(0d0)), intent(in), optional stress,
real(kind(0d0)), intent(in), optional mom,
real(kind(0d0)), intent(in), optional g )
private

This procedure conditionally calculates the appropriate pressure.

Parameters
energyEnergy
alfVoid Fraction
stressShear Stress
momMomentum
dyn_pDynamic Pressure
pi_infLiquid Stiffness
qvfluid reference energy
gammaSpecific Heat Ratio
presPressure to calculate
Here is the caller graph for this function:

◆ s_convert_conservative_to_primitive_variables()

subroutine __m_variables_conversion_fpp_f90__::s_convert_conservative_to_primitive_variables ( type(scalar_field), dimension(sys_size), intent(in) qk_cons_vf,
type(scalar_field), dimension(sys_size), intent(inout) qk_prim_vf,
type(scalar_field), dimension(:), intent(in), optional, allocatable gm_alphak_vf,
type(int_bounds_info), intent(in), optional ix,
type(int_bounds_info), intent(in), optional iy,
type(int_bounds_info), intent(in), optional iz )
private

The following procedure handles the conversion between the conservative variables and the primitive variables.

Parameters
qK_cons_vfConservative variables
qK_prim_vfPrimitive variables
gm_alphaK_vfGradient magnitude of the volume fraction
ixIndex bounds in first coordinate direction
iyIndex bounds in second coordinate direction
izIndex bounds in third coordinate direction
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_convert_mixture_to_mixture_variables()

subroutine __m_variables_conversion_fpp_f90__::s_convert_mixture_to_mixture_variables ( type(scalar_field), dimension(sys_size), intent(in) q_vf,
integer, intent(in) i,
integer, intent(in) j,
integer, intent(in) k,
real(kind(0d0)), intent(out), target rho,
real(kind(0d0)), intent(out), target gamma,
real(kind(0d0)), intent(out), target pi_inf,
real(kind(0d0)), intent(out), target qv,
real(kind(0d0)), dimension(2), intent(out), optional re_k,
real(kind(0d0)), intent(out), optional g_k,
real(kind(0d0)), dimension(num_fluids), intent(in), optional g )
private

This subroutine is designed for the gamma/pi_inf model and provided a set of either conservative or primitive variables, transfers the density, specific heat ratio function and the liquid stiffness function from q_vf to rho, gamma and pi_inf.

Parameters
q_vfconservative or primitive variables
icell index to transfer mixture variables
jcell index to transfer mixture variables
kcell index to transfer mixture variables
rhodensity
gammaspecific heat ratio function
pi_infliquid stiffness
Here is the caller graph for this function:

◆ s_convert_primitive_to_conservative_variables()

subroutine __m_variables_conversion_fpp_f90__::s_convert_primitive_to_conservative_variables ( type(scalar_field), dimension(sys_size), intent(in) q_prim_vf,
type(scalar_field), dimension(sys_size), intent(inout) q_cons_vf )
private

The following procedure handles the conversion between the primitive variables and the conservative variables.

Parameters
qK_prim_vfPrimitive variables
qK_cons_vfConservative variables
gm_alphaK_vfGradient magnitude of the volume fractions
ixIndex bounds in the first coordinate direction
iyIndex bounds in the second coordinate direction
izIndex bounds in the third coordinate direction
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_convert_primitive_to_flux_variables()

subroutine __m_variables_conversion_fpp_f90__::s_convert_primitive_to_flux_variables ( real(kind(0d0)), dimension(0:, s2b:, s3b:, 1:), intent(in) qk_prim_vf,
real(kind(0d0)), dimension(0:, s2b:, s3b:, 1:), intent(inout) fk_vf,
real(kind(0d0)), dimension(0:, s2b:, s3b:, advxb:), intent(inout) fk_src_vf,
type(int_bounds_info), intent(in) is1,
type(int_bounds_info), intent(in) is2,
type(int_bounds_info), intent(in) is3,
integer s2b,
integer s3b )
private

The following subroutine handles the conversion between the primitive variables and the Eulerian flux variables.

Parameters
qK_prim_vfPrimitive variables
FK_vfFlux variables
FK_src_vfFlux source variables
ixIndex bounds in the first coordinate direction
iyIndex bounds in the second coordinate direction
izIndex bounds in the third coordinate direction
Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables()

subroutine __m_variables_conversion_fpp_f90__::s_convert_species_to_mixture_variables ( type(scalar_field), dimension(sys_size), intent(in) q_vf,
integer, intent(in) k,
integer, intent(in) l,
integer, intent(in) r,
real(kind(0d0)), intent(out), target rho,
real(kind(0d0)), intent(out), target gamma,
real(kind(0d0)), intent(out), target pi_inf,
real(kind(0d0)), intent(out), target qv,
real(kind(0d0)), dimension(2), intent(out), optional re_k,
real(kind(0d0)), intent(out), optional g_k,
real(kind(0d0)), dimension(num_fluids), intent(in), optional g )
private

This subroutine is designed for the volume fraction model and provided a set of either conservative or primitive variables, computes the density, the specific heat ratio function and the liquid stiffness function from q_vf and stores the results into rho, gamma and pi_inf.

Parameters
q_vfprimitive variables
rhodensity
gammaspecific heat ratio
pi_infliquid stiffness
fluidreference energy
jCell index
kCell index
lCell index
Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables_acc()

subroutine __m_variables_conversion_fpp_f90__::s_convert_species_to_mixture_variables_acc ( real(kind(0d0)), intent(out) rho_k,
real(kind(0d0)), intent(out) gamma_k,
real(kind(0d0)), intent(out) pi_inf_k,
real(kind(0d0)), intent(out) qv_k,
real(kind(0d0)), dimension(num_fluids), intent(inout) alpha_k,
real(kind(0d0)), dimension(num_fluids), intent(inout) alpha_rho_k,
real(kind(0d0)), dimension(2), intent(out) re_k,
integer, intent(in) k,
integer, intent(in) l,
integer, intent(in) r,
real(kind(0d0)), intent(out), optional g_k,
real(kind(0d0)), dimension(num_fluids), intent(in), optional g )
private
Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables_bubbles()

subroutine __m_variables_conversion_fpp_f90__::s_convert_species_to_mixture_variables_bubbles ( type(scalar_field), dimension(sys_size), intent(in) q_vf,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l,
real(kind(0d0)), intent(out), target rho,
real(kind(0d0)), intent(out), target gamma,
real(kind(0d0)), intent(out), target pi_inf,
real(kind(0d0)), intent(out), target qv,
real(kind(0d0)), dimension(2), intent(out), optional re_k,
real(kind(0d0)), intent(out), optional g_k,
real(kind(0d0)), dimension(num_fluids), intent(in), optional g )
private

This procedure is used alongside with the gamma/pi_inf model to transfer the density, the specific heat ratio function and liquid stiffness function from the vector of conservative or primitive variables to their scalar counterparts. Specifically designed for when subgrid bubbles must be included.

Parameters
q_vfprimitive variables
rho_Kdensity
gamma_Kspecific heat ratio
pi_inf_Kliquid stiffness
qv_Kfluid reference energy
jCell index
kCell index
lCell index
Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables_bubbles_acc()

subroutine __m_variables_conversion_fpp_f90__::s_convert_species_to_mixture_variables_bubbles_acc ( real(kind(0d0)), intent(inout) rho_k,
real(kind(0d0)), intent(inout) gamma_k,
real(kind(0d0)), intent(inout) pi_inf_k,
real(kind(0d0)), intent(inout) qv_k,
real(kind(0d0)), dimension(num_fluids), intent(in) alpha_k,
real(kind(0d0)), dimension(num_fluids), intent(in) alpha_rho_k,
real(kind(0d0)), dimension(2), intent(out) re_k,
integer, intent(in) k,
integer, intent(in) l,
integer, intent(in) r )
private
Parameters
[in]alpha_kPartial densities and volume fractions
Here is the caller graph for this function:

◆ s_finalize_variables_conversion_module()

subroutine __m_variables_conversion_fpp_f90__::s_finalize_variables_conversion_module
private
Here is the caller graph for this function:

◆ s_initialize_mv()

subroutine __m_variables_conversion_fpp_f90__::s_initialize_mv ( type(scalar_field), dimension(sys_size), intent(in) qk_cons_vf,
real(kind(0d0)), dimension(ixb:, iyb:, izb:, 1:, 1:), intent(inout) mv )
private
Here is the caller graph for this function:

◆ s_initialize_pb()

subroutine __m_variables_conversion_fpp_f90__::s_initialize_pb ( type(scalar_field), dimension(sys_size), intent(in) qk_cons_vf,
real(kind(0d0)), dimension(ixb:, iyb:, izb:, 1:, 1:), intent(in) mv,
real(kind(0d0)), dimension(ixb:, iyb:, izb:, 1:, 1:), intent(inout) pb )
private
Here is the caller graph for this function:

◆ s_initialize_variables_conversion_module()

subroutine __m_variables_conversion_fpp_f90__::s_initialize_variables_conversion_module
private

The computation of parameters, the allocation of memory, the association of pointers and/or the execution of any other procedures that are necessary to setup the module.

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