MFC:Pre_process  v1.0
m_variables_conversion Module Reference

This module consists of subroutines used in the conversion of the conservative variables into the primitive ones and vice versa. In addition, the module also contains the subroutines used to obtain the mixture variables. More...

Data Types

interface  s_convert_xxxxx_to_mixture_variables
 Abstract interface to two subroutines designed for the transfer/conversion of the mixture/species variables to the mixture variables. More...
 

Functions/Subroutines

subroutine s_convert_mixture_to_mixture_variables (q_vf, i, j, k, rho, gamma, pi_inf)
 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. More...
 
subroutine s_convert_species_to_mixture_variables_bubbles (qK_vf, j, k, l, rho_K, gamma_K, pi_inf_K)
 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. Specifially designed for when subgrid bubbles must be included. More...
 
subroutine s_convert_species_to_mixture_variables (q_vf, j, k, l, rho, gamma, pi_inf)
 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. More...
 
subroutine s_initialize_variables_conversion_module ()
 Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module. More...
 
subroutine s_convert_conservative_to_primitive_variables (q_cons_vf, q_prim_vf)
 Converts the conservative variables to the primitive ones. More...
 
subroutine s_convert_primitive_to_conservative_variables (q_prim_vf, q_cons_vf)
 Converts the primitive variables to the conservative ones. Used when initializing patches. More...
 
subroutine s_finalize_variables_conversion_module ()
 Deallocation procedures for the module. More...
 

Variables

procedure(s_convert_xxxxx_to_mixture_variables), pointer s_convert_to_mixture_variables => NULL()
 

Detailed Description

This module consists of subroutines used in the conversion of the conservative variables into the primitive ones and vice versa. In addition, the module also contains the subroutines used to obtain the mixture variables.

Function/Subroutine Documentation

◆ s_convert_conservative_to_primitive_variables()

subroutine m_variables_conversion::s_convert_conservative_to_primitive_variables ( type(scalar_field), dimension(sys_size), intent(in)  q_cons_vf,
type(scalar_field), dimension(sys_size), intent(inout)  q_prim_vf 
)

Converts the conservative variables to the primitive ones.

Parameters
q_cons_vfConservative variables
q_prim_vfPrimitive variables

Definition at line 298 of file m_variables_conversion.f90.

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::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)  rho,
real(kind(0d0)), intent(out)  gamma,
real(kind(0d0)), intent(out)  pi_inf 
)

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

Definition at line 111 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_convert_primitive_to_conservative_variables()

subroutine m_variables_conversion::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 
)

Converts the primitive variables to the conservative ones. Used when initializing patches.

Parameters
q_cons_vfConservative variables
q_prim_vfPrimitive variables

Definition at line 409 of file m_variables_conversion.f90.

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::s_convert_species_to_mixture_variables ( 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)  rho,
real(kind(0d0)), intent(out)  gamma,
real(kind(0d0)), intent(out)  pi_inf 
)

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
jCell index
kCell index
lCell index

Definition at line 217 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables_bubbles()

subroutine m_variables_conversion::s_convert_species_to_mixture_variables_bubbles ( type(scalar_field), dimension(sys_size), intent(in)  qK_vf,
integer, intent(in)  j,
integer, intent(in)  k,
integer, intent(in)  l,
real(kind(0d0)), intent(out)  rho_K,
real(kind(0d0)), intent(out)  gamma_K,
real(kind(0d0)), intent(out)  pi_inf_K 
)

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. Specifially designed for when subgrid bubbles must be included.

Parameters
qK_vfprimitive variables
rho_Kdensity
gamma_Kspecific heat ratio
pi_inf_Kliquid stiffness
jCell index
kCell index
lCell index

Definition at line 146 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_finalize_variables_conversion_module()

subroutine m_variables_conversion::s_finalize_variables_conversion_module ( )

Deallocation procedures for the module.

Definition at line 504 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_initialize_variables_conversion_module()

subroutine m_variables_conversion::s_initialize_variables_conversion_module ( )

Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module.

Definition at line 269 of file m_variables_conversion.f90.

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

Variable Documentation

◆ s_convert_to_mixture_variables

procedure(s_convert_xxxxx_to_mixture_variables), pointer m_variables_conversion::s_convert_to_mixture_variables => NULL()

Definition at line 90 of file m_variables_conversion.f90.