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

Computes capillary source fluxes and color-function gradients for the diffuse-interface surface tension model. More...

Functions/Subroutines

impure subroutine, public s_initialize_surface_tension_module
subroutine, public s_compute_capillary_source_flux (vsrc_rsx_vf, vsrc_rsy_vf, vsrc_rsz_vf, flux_src_vf, id, isx, isy, isz)
 Computes the capillary (surface-tension) source flux from reconstructed color-gradient fields.
impure subroutine, public s_get_capillary (q_prim_vf, bc_type)
 Computes color-function gradients and their norms, then reconstructs them at cell boundaries.
subroutine s_reconstruct_cell_boundary_values_capillary (v_vf, vl_x, vl_y, vl_z, vr_x, vr_y, vr_z, norm_dir)
 Reconstructs left and right cell-boundary values of capillary (color-gradient) variables using WENO or MUSCL.
impure subroutine, public s_finalize_surface_tension_module
 Deallocates the color-gradient divergence and reconstructed boundary arrays for surface tension.

Variables

type(int_bounds_infois1
type(int_bounds_infois2
type(int_bounds_infois3
type(int_bounds_infoiv
color function gradient components and magnitude
type(scalar_field), dimension(:), allocatable c_divs
cell boundary reconstructed gradient components and magnitude
real(wp), dimension(:, :, :, :), allocatable gl_x
real(wp), dimension(:, :, :, :), allocatable gr_x
real(wp), dimension(:, :, :, :), allocatable gl_y
real(wp), dimension(:, :, :, :), allocatable gr_y
real(wp), dimension(:, :, :, :), allocatable gl_z
real(wp), dimension(:, :, :, :), allocatable gr_z

Detailed Description

Computes capillary source fluxes and color-function gradients for the diffuse-interface surface tension model.

Function/Subroutine Documentation

◆ s_compute_capillary_source_flux()

subroutine, public m_surface_tension::s_compute_capillary_source_flux ( real(wp), dimension(-1:, 0:, 0:, 1:), intent(in) vsrc_rsx_vf,
real(wp), dimension(-1:, 0:, 0:, 1:), intent(in) vsrc_rsy_vf,
real(wp), dimension(-1:, 0:, 0:, 1:), intent(in) vsrc_rsz_vf,
type(scalar_field), dimension(sys_size), intent(inout) flux_src_vf,
integer, intent(in) id,
type(int_bounds_info), intent(in) isx,
type(int_bounds_info), intent(in) isy,
type(int_bounds_info), intent(in) isz )

Computes the capillary (surface-tension) source flux from reconstructed color-gradient fields.

Definition at line 717 of file m_surface_tension.fpp.f90.

Here is the caller graph for this function:

◆ s_finalize_surface_tension_module()

impure subroutine, public m_surface_tension::s_finalize_surface_tension_module

Deallocates the color-gradient divergence and reconstructed boundary arrays for surface tension.

Definition at line 1579 of file m_surface_tension.fpp.f90.

Here is the caller graph for this function:

◆ s_get_capillary()

impure subroutine, public m_surface_tension::s_get_capillary ( type(scalar_field), dimension(sys_size), intent(in) q_prim_vf,
type(integer_field), dimension(1:num_dims, 1:2), intent(in) bc_type )

Computes color-function gradients and their norms, then reconstructs them at cell boundaries.

Definition at line 1097 of file m_surface_tension.fpp.f90.

Here is the call graph for this function:

◆ s_initialize_surface_tension_module()

impure subroutine, public m_surface_tension::s_initialize_surface_tension_module

Definition at line 381 of file m_surface_tension.fpp.f90.

Here is the caller graph for this function:

◆ s_reconstruct_cell_boundary_values_capillary()

subroutine m_surface_tension::s_reconstruct_cell_boundary_values_capillary ( type(scalar_field), dimension(iv%beg:iv%end), intent(in) v_vf,
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, iv%beg:), intent(out) vl_x,
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, iv%beg:), intent(out) vl_y,
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, iv%beg:), intent(out) vl_z,
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, iv%beg:), intent(out) vr_x,
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, iv%beg:), intent(out) vr_y,
real(wp), dimension(idwbuff(1)%beg:, idwbuff(2)%beg:, idwbuff(3)%beg:, iv%beg:), intent(out) vr_z,
integer, intent(in) norm_dir )

Reconstructs left and right cell-boundary values of capillary (color-gradient) variables using WENO or MUSCL.

Definition at line 1341 of file m_surface_tension.fpp.f90.

Here is the caller graph for this function:

Variable Documentation

◆ c_divs

type(scalar_field), dimension(:), allocatable m_surface_tension::c_divs

Definition at line 336 of file m_surface_tension.fpp.f90.

◆ gl_x

real(wp), dimension(:, :, :, :), allocatable m_surface_tension::gl_x

Definition at line 352 of file m_surface_tension.fpp.f90.

◆ gl_y

real(wp), dimension(:, :, :, :), allocatable m_surface_tension::gl_y

Definition at line 352 of file m_surface_tension.fpp.f90.

◆ gl_z

real(wp), dimension(:, :, :, :), allocatable m_surface_tension::gl_z

Definition at line 352 of file m_surface_tension.fpp.f90.

◆ gr_x

real(wp), dimension(:, :, :, :), allocatable m_surface_tension::gr_x

Definition at line 352 of file m_surface_tension.fpp.f90.

◆ gr_y

real(wp), dimension(:, :, :, :), allocatable m_surface_tension::gr_y

Definition at line 352 of file m_surface_tension.fpp.f90.

◆ gr_z

real(wp), dimension(:, :, :, :), allocatable m_surface_tension::gr_z

Definition at line 352 of file m_surface_tension.fpp.f90.

◆ is1

type(int_bounds_info) m_surface_tension::is1

Definition at line 366 of file m_surface_tension.fpp.f90.

◆ is2

type(int_bounds_info) m_surface_tension::is2

Definition at line 366 of file m_surface_tension.fpp.f90.

◆ is3

type(int_bounds_info) m_surface_tension::is3

Definition at line 366 of file m_surface_tension.fpp.f90.

◆ iv

type(int_bounds_info) m_surface_tension::iv

Definition at line 366 of file m_surface_tension.fpp.f90.