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

Computes signed-distance level-set fields and surface normals for immersed-boundary patch geometries. More...

Functions/Subroutines

impure subroutine, public s_apply_levelset (gps, num_gps)
 Dispatch level-set distance and normal computations for all ghost points based on patch geometry type.
subroutine s_circle_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a circular immersed boundary.
subroutine s_airfoil_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a 2D NACA airfoil surface.
subroutine s_3d_airfoil_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a 3D extruded airfoil surface.
subroutine s_airfoil_distance_normals (airfoil_id, point, normals, distance)
 Distance and outward normal from a point in the airfoil frame to the surface.
subroutine s_rectangle_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a 2D rectangle.
subroutine s_ellipse_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to an elliptical immersed boundary.
subroutine s_cuboid_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a cuboid immersed boundary.
subroutine s_sphere_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a spherical immersed boundary.
subroutine s_cylinder_levelset (gp)
 Compute the signed distance and outward normal from a ghost point to a cylindrical immersed boundary.
subroutine s_model_levelset (gp)
 The STL patch is a 2/3D geometry that is imported from an STL file.
subroutine s_store_normal (gp, v)
 gplevelset_norm = v, stored component by component: an array-valued store into a ghost-point entry inside a GPU kernel is intermittently overwritten by another thread on AMD GPUs (see s_compute_image_points)
subroutine s_store_rotated_normal (gp, rotation, v)
 gplevelset_norm = rotation v, stored component by component: an array-valued store into a ghost-point entry inside a GPU kernel is intermittently overwritten by another thread on AMD GPUs (see s_compute_image_points)

Detailed Description

Computes signed-distance level-set fields and surface normals for immersed-boundary patch geometries.

Function/Subroutine Documentation

◆ s_3d_airfoil_levelset()

subroutine m_compute_levelset::s_3d_airfoil_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a 3D extruded airfoil surface.

Definition at line 607 of file m_compute_levelset.fpp.f90.

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

◆ s_airfoil_distance_normals()

subroutine m_compute_levelset::s_airfoil_distance_normals ( integer, intent(in) airfoil_id,
real(wp), dimension(1:3), intent(in) point,
real(wp), dimension(1:3), intent(out) normals,
real(wp), intent(out) distance )

Distance and outward normal from a point in the airfoil frame to the surface.

Definition at line 677 of file m_compute_levelset.fpp.f90.

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

◆ s_airfoil_levelset()

subroutine m_compute_levelset::s_airfoil_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a 2D NACA airfoil surface.

Definition at line 558 of file m_compute_levelset.fpp.f90.

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

◆ s_apply_levelset()

impure subroutine, public m_compute_levelset::s_apply_levelset ( type(ghost_point), dimension(:), intent(inout) gps,
integer, intent(in) num_gps )

Dispatch level-set distance and normal computations for all ghost points based on patch geometry type.

Definition at line 386 of file m_compute_levelset.fpp.f90.

Here is the call graph for this function:

◆ s_circle_levelset()

subroutine m_compute_levelset::s_circle_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a circular immersed boundary.

Definition at line 511 of file m_compute_levelset.fpp.f90.

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

◆ s_cuboid_levelset()

subroutine m_compute_levelset::s_cuboid_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a cuboid immersed boundary.

Definition at line 869 of file m_compute_levelset.fpp.f90.

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

◆ s_cylinder_levelset()

subroutine m_compute_levelset::s_cylinder_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a cylindrical immersed boundary.

Definition at line 1023 of file m_compute_levelset.fpp.f90.

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

◆ s_ellipse_levelset()

subroutine m_compute_levelset::s_ellipse_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to an elliptical immersed boundary.

Definition at line 805 of file m_compute_levelset.fpp.f90.

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

◆ s_model_levelset()

subroutine m_compute_levelset::s_model_levelset ( type(ghost_point), intent(inout) gp)

The STL patch is a 2/3D geometry that is imported from an STL file.

Definition at line 1112 of file m_compute_levelset.fpp.f90.

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

◆ s_rectangle_levelset()

subroutine m_compute_levelset::s_rectangle_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a 2D rectangle.

Definition at line 721 of file m_compute_levelset.fpp.f90.

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

◆ s_sphere_levelset()

subroutine m_compute_levelset::s_sphere_levelset ( type(ghost_point), intent(inout) gp)

Compute the signed distance and outward normal from a ghost point to a spherical immersed boundary.

Definition at line 971 of file m_compute_levelset.fpp.f90.

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

◆ s_store_normal()

subroutine m_compute_levelset::s_store_normal ( type(ghost_point), intent(inout) gp,
real(wp), dimension(3), intent(in) v )

gplevelset_norm = v, stored component by component: an array-valued store into a ghost-point entry inside a GPU kernel is intermittently overwritten by another thread on AMD GPUs (see s_compute_image_points)

Definition at line 1192 of file m_compute_levelset.fpp.f90.

Here is the caller graph for this function:

◆ s_store_rotated_normal()

subroutine m_compute_levelset::s_store_rotated_normal ( type(ghost_point), intent(inout) gp,
real(wp), dimension(3, 3), intent(in) rotation,
real(wp), dimension(3), intent(in) v )

gplevelset_norm = rotation v, stored component by component: an array-valued store into a ghost-point entry inside a GPU kernel is intermittently overwritten by another thread on AMD GPUs (see s_compute_image_points)

Definition at line 1223 of file m_compute_levelset.fpp.f90.

Here is the caller graph for this function: