MFC:Post_process  v1.0
m_variables_conversion Module Reference

This module consists of subroutines used in the conversion of the conservative variables into the primitive variables. In addition, the module also contains subroutines used to compute the mixture variables. For a specific time-step undergoing the post-process, the mixture variables are stored everywhere on the grid so that they may possibly be outputted or used to compute other derived flow quantities. 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, public s_convert_mixture_to_mixture_variables (q_cons_vf, i, j, k)
 This subroutine is constructed for the gamma/pi_inf model and provided a set of conservative variables, transfers the density, specific heat ratio function and the liquid stiffness function from q_cons_vf to rho_sf, gamma_sf and pi_inf_sf. More...
 
subroutine, public s_convert_species_to_mixture_variables_bubbles (qK_vf, j, k, l)
 This subroutine is designed for the volume fraction model with sub-grid ensemble averaged bubbles (Bryngelson 2019) and provided a set of conservative variables, calculates the density, the specific heat ratio function and liquid stiffness function from q_cons_vf and stores the results into rho_sf, gamma_sf and pi_inf_sf. More...
 
subroutine, public s_convert_species_to_mixture_variables (q_cons_vf, j, k, l)
 This subroutine is designed for the volume fraction model and provided a set of conservative variables, calculates the density, the specific heat ratio function and liquid stiffness function from q_cons_vf and stores the results into rho_sf, gamma_sf and pi_inf_sf. More...
 
subroutine, public s_initialize_variables_conversion_module ()
 Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module. More...
 
subroutine, public s_convert_conservative_to_primitive_variables (q_cons_vf, q_prim_vf)
 Converts the conservative variables to the primitive ones. More...
 
subroutine, public s_finalize_variables_conversion_module ()
 Deallocation procedures for the module. More...
 

Variables

real(kind(0d0)), dimension(:,:,:), allocatable, public rho_sf
 Scalar density function. More...
 
real(kind(0d0)), dimension(:,:,:), allocatable, public gamma_sf
 Scalar sp. heat ratio function. More...
 
real(kind(0d0)), dimension(:,:,:), allocatable, public pi_inf_sf
 Scalar liquid stiffness function. More...
 
procedure(s_convert_xxxxx_to_mixture_variables), pointer, public s_convert_to_mixture_variables => NULL()
 
integer, private flg
 Flagging (flg) variable used to annotate the dimensionality of the dataset that is undergoing the post-process. A flag value of 1 indicates that the dataset is 3D, while a flag value of 0 indicates that it is not. This flg variable is necessary to avoid cycling through the third dimension of the flow variable(s) when the simulation is not 3D and the size of the buffer is non-zero. Note that a similar procedure does not have to be applied to the second dimension since in 1D, the buffer size is always zero. More...
 

Detailed Description

This module consists of subroutines used in the conversion of the conservative variables into the primitive variables. In addition, the module also contains subroutines used to compute the mixture variables. For a specific time-step undergoing the post-process, the mixture variables are stored everywhere on the grid so that they may possibly be outputted or used to compute other derived flow quantities.

Function/Subroutine Documentation

◆ s_convert_conservative_to_primitive_variables()

subroutine, public 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 variabels
q_prim_vfPrimitive variables

Definition at line 347 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, public m_variables_conversion::s_convert_mixture_to_mixture_variables ( type(scalar_field), dimension(sys_size), intent(in)  q_cons_vf,
integer, intent(in)  i,
integer, intent(in)  j,
integer, intent(in)  k 
)

This subroutine is constructed for the gamma/pi_inf model and provided a set of conservative variables, transfers the density, specific heat ratio function and the liquid stiffness function from q_cons_vf to rho_sf, gamma_sf and pi_inf_sf.

Parameters
q_cons_vfConservative variables
icell index to transfer mixture variables
jcell index to transfer mixture variables
kcell index to transfer mixture variables

Definition at line 126 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables()

subroutine, public m_variables_conversion::s_convert_species_to_mixture_variables ( type(scalar_field), dimension(sys_size), intent(in)  q_cons_vf,
integer, intent(in)  j,
integer, intent(in)  k,
integer, intent(in)  l 
)

This subroutine is designed for the volume fraction model and provided a set of conservative variables, calculates the density, the specific heat ratio function and liquid stiffness function from q_cons_vf and stores the results into rho_sf, gamma_sf and pi_inf_sf.

Parameters
q_cons_vfConservative variables
jcell index to transfer mixture variables
kcell index to transfer mixture variables
lcell index to transfer mixture variables

Definition at line 198 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_convert_species_to_mixture_variables_bubbles()

subroutine, public 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 
)

This subroutine is designed for the volume fraction model with sub-grid ensemble averaged bubbles (Bryngelson 2019) and provided a set of conservative variables, calculates the density, the specific heat ratio function and liquid stiffness function from q_cons_vf and stores the results into rho_sf, gamma_sf and pi_inf_sf.

Parameters
qK_vfConservative variables
jcell index to transfer mixture variables
kcell index to transfer mixture variables
lcell index to transfer mixture variables

Definition at line 153 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_finalize_variables_conversion_module()

subroutine, public m_variables_conversion::s_finalize_variables_conversion_module ( )

Deallocation procedures for the module.

Definition at line 457 of file m_variables_conversion.f90.

Here is the caller graph for this function:

◆ s_initialize_variables_conversion_module()

subroutine, public 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 259 of file m_variables_conversion.f90.

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

Variable Documentation

◆ flg

integer, private m_variables_conversion::flg
private

Flagging (flg) variable used to annotate the dimensionality of the dataset that is undergoing the post-process. A flag value of 1 indicates that the dataset is 3D, while a flag value of 0 indicates that it is not. This flg variable is necessary to avoid cycling through the third dimension of the flow variable(s) when the simulation is not 3D and the size of the buffer is non-zero. Note that a similar procedure does not have to be applied to the second dimension since in 1D, the buffer size is always zero.

Definition at line 101 of file m_variables_conversion.f90.

◆ gamma_sf

real(kind(0d0)), dimension(:,:,:), allocatable, public m_variables_conversion::gamma_sf

Scalar sp. heat ratio function.

Definition at line 93 of file m_variables_conversion.f90.

◆ pi_inf_sf

real(kind(0d0)), dimension(:,:,:), allocatable, public m_variables_conversion::pi_inf_sf

Scalar liquid stiffness function.

Definition at line 94 of file m_variables_conversion.f90.

◆ rho_sf

real(kind(0d0)), dimension(:,:,:), allocatable, public m_variables_conversion::rho_sf

Scalar density function.

Definition at line 92 of file m_variables_conversion.f90.

◆ s_convert_to_mixture_variables

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

Definition at line 96 of file m_variables_conversion.f90.