Neko  0.8.99
A portable framework for high-order spectral element flow simulations
sphere_point_zone Module Reference

Data Types

type  sphere_point_zone_t
 A sphere-shaped point zone. More...
 

Functions/Subroutines

subroutine sphere_point_zone_init_from_json (this, json, size)
 Constructor from json object file. More...
 
subroutine sphere_point_zone_init_common (this, size, name, invert, x0, y0, z0, radius)
 Initializes a sphere point zone from its center coordinates and radius. More...
 
subroutine sphere_point_zone_free (this)
 Destructor. More...
 
pure logical function sphere_point_zone_criterion (this, x, y, z, j, k, l, e)
 Defines the criterion of selection of a GLL point in the sphere point zone. A GLL point of coordinates \( \vec{X} = (x, y, z) \) is considered as being inside the zone if: More...
 

Function/Subroutine Documentation

◆ sphere_point_zone_criterion()

pure logical function sphere_point_zone::sphere_point_zone_criterion ( class(sphere_point_zone_t), intent(in)  this,
real(kind=rp), intent(in)  x,
real(kind=rp), intent(in)  y,
real(kind=rp), intent(in)  z,
integer, intent(in)  j,
integer, intent(in)  k,
integer, intent(in)  l,
integer, intent(in)  e 
)
private

\begin{eqnarray*} |\vec{X} - \vec{X_0}|^2 \le r \end{eqnarray*}

Where \( r \) is the radius of the sphere and \( \vec{X_0} = (x_0, y_0, z_0) \) the coordinates of its center.

Parameters
xx-coordinate of the GLL point.
yy-coordinate of the GLL point.
zz-coordinate of the GLL point.
j1st nonlinear index of the GLL point.
k2nd nonlinear index of the GLL point.
l3rd nonlinear index of the GLL point.
eelement index of the GLL point.

Definition at line 149 of file sphere_point_zone.f90.

◆ sphere_point_zone_free()

subroutine sphere_point_zone::sphere_point_zone_free ( class(sphere_point_zone_t), intent(inout)  this)
private

Definition at line 121 of file sphere_point_zone.f90.

◆ sphere_point_zone_init_common()

subroutine sphere_point_zone::sphere_point_zone_init_common ( class(sphere_point_zone_t), intent(inout)  this,
integer, intent(in), optional  size,
character(len=*), intent(in)  name,
logical, intent(in)  invert,
real(kind=rp), intent(in)  x0,
real(kind=rp), intent(in)  y0,
real(kind=rp), intent(in)  z0,
real(kind=rp), intent(in)  radius 
)
private
Parameters
sizeSize of the scratch stack.
nameName of the sphere point zone.
x0Sphere center's x-coordinate.
y0Sphere center's y-coordinate.
z0Sphere center's z-coordinate.
radiusSphere radius.

Definition at line 100 of file sphere_point_zone.f90.

Here is the caller graph for this function:

◆ sphere_point_zone_init_from_json()

subroutine sphere_point_zone::sphere_point_zone_init_from_json ( class(sphere_point_zone_t), intent(inout)  this,
type(json_file), intent(inout)  json,
integer, intent(in)  size 
)
Parameters
jsonJson object file.
sizeSize with which to initialize the stack

Definition at line 67 of file sphere_point_zone.f90.

Here is the call graph for this function: