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

Assigns initial primitive variables to computational cells based on patch geometry. More...

Data Types

interface  s_assign_patch_xxxxx_primitive_variables
 Abstract interface to the two subroutines that assign the patch primitive variables, either mixture or species, depending on the subroutine, to a particular cell in the computational domain. More...

Functions/Subroutines

impure subroutine, public s_initialize_assign_variables_module
 Allocates volume fraction sum and sets the patch primitive variable assignment procedure pointer.
subroutine, public s_assign_patch_mixture_primitive_variables (patch_id, j, k, l, eta, q_prim_vf, patch_id_fp)
 This subroutine assigns the mixture primitive variables of the patch designated by the patch_id, to the cell that is designated by the indexes (j,k,l). In addition, the variable bookkeeping the patch identities in the entire domain is updated with the new assignment. Note that if the smoothing of the patch's boundaries is employed, the ensuing primitive variables in the cell will be a type of combination of the current patch's primitive variables with those of the smoothing patch. The specific details of the combination may be found in Shyue's work (1998).
subroutine, public s_perturb_primitive (j, k, l, q_prim_vf)
 Applies a stable pressure perturbation following Ando's method for bubble-laden flows.
impure subroutine, public s_assign_patch_species_primitive_variables (patch_id, j, k, l, eta, q_prim_vf, patch_id_fp)
 This subroutine assigns the species primitive variables. This follows s_assign_patch_species_primitive_variables with adaptation for ensemble-averaged bubble modeling.
impure subroutine, public s_finalize_assign_variables_module
 Nullifies the patch primitive variable assignment procedure pointer.

Variables

type(scalar_fieldalf_sum
procedure(s_assign_patch_xxxxx_primitive_variables), pointer, public s_assign_patch_primitive_variables => null()

Detailed Description

Assigns initial primitive variables to computational cells based on patch geometry.

Function/Subroutine Documentation

◆ s_assign_patch_mixture_primitive_variables()

subroutine, public m_assign_variables::s_assign_patch_mixture_primitive_variables ( integer, intent(in) patch_id,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l,
real(wp), intent(in) eta,
type(scalar_field), dimension(1:sys_size), intent(inout) q_prim_vf,
integer, dimension(0:m, 0:n, 0:p), intent(inout) patch_id_fp )

This subroutine assigns the mixture primitive variables of the patch designated by the patch_id, to the cell that is designated by the indexes (j,k,l). In addition, the variable bookkeeping the patch identities in the entire domain is updated with the new assignment. Note that if the smoothing of the patch's boundaries is employed, the ensuing primitive variables in the cell will be a type of combination of the current patch's primitive variables with those of the smoothing patch. The specific details of the combination may be found in Shyue's work (1998).

Parameters
patch_idthe patch identifier
jthe x-dir node index
kthe y-dir node index
lthe z-dir node index
etapseudo volume fraction
q_prim_vfPrimitive variables
patch_id_fpArray to track patch ids

Definition at line 409 of file m_assign_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_assign_patch_species_primitive_variables()

impure subroutine, public m_assign_variables::s_assign_patch_species_primitive_variables ( integer, intent(in) patch_id,
integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l,
real(wp), intent(in) eta,
type(scalar_field), dimension(1:sys_size), intent(inout) q_prim_vf,
integer, dimension(0:m, 0:n, 0:p), intent(inout) patch_id_fp )

This subroutine assigns the species primitive variables. This follows s_assign_patch_species_primitive_variables with adaptation for ensemble-averaged bubble modeling.

Parameters
patch_idthe patch identifier
jthe x-dir node index
kthe y-dir node index
lthe z-dir node index
etapseudo volume fraction
q_prim_vfPrimitive variables
patch_id_fpArray to track patch ids

Definition at line 597 of file m_assign_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_finalize_assign_variables_module()

impure subroutine, public m_assign_variables::s_finalize_assign_variables_module

Nullifies the patch primitive variable assignment procedure pointer.

Definition at line 1042 of file m_assign_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_initialize_assign_variables_module()

impure subroutine, public m_assign_variables::s_initialize_assign_variables_module

Allocates volume fraction sum and sets the patch primitive variable assignment procedure pointer.

Definition at line 372 of file m_assign_variables.fpp.f90.

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

◆ s_perturb_primitive()

subroutine, public m_assign_variables::s_perturb_primitive ( integer, intent(in) j,
integer, intent(in) k,
integer, intent(in) l,
type(scalar_field), dimension(1:sys_size), intent(inout) q_prim_vf )

Applies a stable pressure perturbation following Ando's method for bubble-laden flows.

Parameters
jthe x-dir node index
kthe y-dir node index
lthe z-dir node index
q_prim_vfPrimitive variables

Definition at line 516 of file m_assign_variables.fpp.f90.

Variable Documentation

◆ alf_sum

type(scalar_field) m_assign_variables::alf_sum

Definition at line 321 of file m_assign_variables.fpp.f90.

◆ s_assign_patch_primitive_variables

procedure(s_assign_patch_xxxxx_primitive_variables), pointer, public m_assign_variables::s_assign_patch_primitive_variables => null()

Definition at line 323 of file m_assign_variables.fpp.f90.