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

Derives diagnostic flow quantities (vorticity, speed of sound, numerical Schlieren, etc.) from conservative and primitive variables. More...

Functions/Subroutines

impure subroutine, public s_initialize_derived_variables_module
 Computation of parameters, allocation procedures, and/or any other tasks needed to properly setup the module.
impure subroutine, public s_initialize_derived_variables
 Allocate and open derived variables. Computing FD coefficients.
subroutine, public s_compute_derived_variables (t_step, q_cons_vf, q_prim_ts1, q_prim_ts2)
 Writes coherent body information, communication files, and probes.
subroutine s_derive_acceleration_component (i, q_prim_vf0, q_prim_vf1, q_prim_vf2, q_prim_vf3, q_sf)
 Compute a component of the acceleration field from the primitive variables.
impure subroutine s_derive_center_of_mass (q_vf, c_m)
 Compute the center of mass for each fluid from the primitive variables.
impure subroutine, public s_finalize_derived_variables_module
 Deallocation procedures for the module.

Variables

Finite-difference coefficients Finite-difference (fd) coefficients in x-, y- and z-coordinate directions. Note that

because sufficient boundary information is available for all the active coordinate directions, the centered family of the finite-difference schemes is used.

real(wp), dimension(:,:), allocatable, public fd_coeff_x
real(wp), dimension(:,:), allocatable, public fd_coeff_y
real(wp), dimension(:,:), allocatable, public fd_coeff_z
real(wp), dimension(:,:,:), allocatable, public accel_mag
real(wp), dimension(:,:,:), allocatable, public x_accel
real(wp), dimension(:,:,:), allocatable, public y_accel
real(wp), dimension(:,:,:), allocatable, public z_accel

Detailed Description

Derives diagnostic flow quantities (vorticity, speed of sound, numerical Schlieren, etc.) from conservative and primitive variables.

Function/Subroutine Documentation

◆ s_compute_derived_variables()

subroutine, public m_derived_variables::s_compute_derived_variables ( integer, intent(in) t_step,
type(scalar_field), dimension(:), intent(inout) q_cons_vf,
type(vector_field), dimension(:), intent(inout) q_prim_ts1,
type(vector_field), dimension(:), intent(inout) q_prim_ts2 )

Writes coherent body information, communication files, and probes.

Definition at line 683 of file m_derived_variables.fpp.f90.

Here is the call graph for this function:

◆ s_derive_acceleration_component()

subroutine m_derived_variables::s_derive_acceleration_component ( integer, intent(in) i,
type(scalar_field), dimension(sys_size), intent(in) q_prim_vf0,
type(scalar_field), dimension(sys_size), intent(in) q_prim_vf1,
type(scalar_field), dimension(sys_size), intent(in) q_prim_vf2,
type(scalar_field), dimension(sys_size), intent(in) q_prim_vf3,
real(wp), dimension(0:m,0:n,0:p), intent(out) q_sf )

Compute a component of the acceleration field from the primitive variables.

Definition at line 769 of file m_derived_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_derive_center_of_mass()

impure subroutine m_derived_variables::s_derive_center_of_mass ( type(scalar_field), dimension(sys_size), intent(in) q_vf,
real(wp), dimension(1:num_fluids,1:5), intent(inout) c_m )

Compute the center of mass for each fluid from the primitive variables.

Definition at line 1323 of file m_derived_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_finalize_derived_variables_module()

impure subroutine, public m_derived_variables::s_finalize_derived_variables_module

Deallocation procedures for the module.

Definition at line 1742 of file m_derived_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_initialize_derived_variables()

impure subroutine, public m_derived_variables::s_initialize_derived_variables

Allocate and open derived variables. Computing FD coefficients.

Definition at line 628 of file m_derived_variables.fpp.f90.

Here is the caller graph for this function:

◆ s_initialize_derived_variables_module()

impure subroutine, public m_derived_variables::s_initialize_derived_variables_module

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

Definition at line 374 of file m_derived_variables.fpp.f90.

Here is the caller graph for this function:

Variable Documentation

◆ accel_mag

real(wp), dimension(:,:,:), allocatable, public m_derived_variables::accel_mag

Definition at line 356 of file m_derived_variables.fpp.f90.

◆ fd_coeff_x

real(wp), dimension(:,:), allocatable, public m_derived_variables::fd_coeff_x

Definition at line 337 of file m_derived_variables.fpp.f90.

◆ fd_coeff_y

real(wp), dimension(:,:), allocatable, public m_derived_variables::fd_coeff_y

Definition at line 338 of file m_derived_variables.fpp.f90.

◆ fd_coeff_z

real(wp), dimension(:,:), allocatable, public m_derived_variables::fd_coeff_z

Definition at line 339 of file m_derived_variables.fpp.f90.

◆ x_accel

real(wp), dimension(:,:,:), allocatable, public m_derived_variables::x_accel

Definition at line 357 of file m_derived_variables.fpp.f90.

◆ y_accel

real(wp), dimension(:,:,:), allocatable, public m_derived_variables::y_accel

Definition at line 357 of file m_derived_variables.fpp.f90.

◆ z_accel

real(wp), dimension(:,:,:), allocatable, public m_derived_variables::z_accel

Definition at line 357 of file m_derived_variables.fpp.f90.