Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
adv_no_dealias::adv_no_dealias_t Type Referenceabstract

Type encapsulating advection routines with no dealiasing applied. More...

Inheritance diagram for adv_no_dealias::adv_no_dealias_t:
Collaboration diagram for adv_no_dealias::adv_no_dealias_t:

Public Member Functions

procedure, pass(thisinit (this, coef)
 Constructor.
 
procedure, pass(thisfree (this)
 Destructor.
 
procedure, pass(thiscompute (this, vx, vy, vz, fx, fy, fz, xh, coef, n, dt)
 Add the advection term for the fluid, i.e. \(u \cdot \nabla u \), to the RHS.
 
procedure, pass(thiscompute_scalar (this, vx, vy, vz, s, fs, xh, coef, n, dt)
 Add the advection term for a scalar, i.e. \(u \cdot \nabla s \), to the RHS.
 
procedure(compute_adv), deferred, pass compute (this, vx, vy, vz, fx, fy, fz, xh, coef, n, dt)
 
procedure(compute_scalar_adv), deferred, pass compute_scalar (this, vx, vy, vz, s, fs, xh, coef, n, dt)
 
procedure(advection_free), deferred, pass free (this)
 

Public Attributes

real(kind=rp), dimension(:), allocatable temp
 
type(c_ptr) temp_d = C_NULL_PTR
 

Detailed Description

Definition at line 50 of file adv_no_dealias.f90.

Member Function/Subroutine Documentation

◆ compute() [1/2]

procedure(compute_adv), deferred, pass advection::advection_t::compute ( class(advection_t), intent(inout this,
type(field_t), intent(inout vx,
type(field_t), intent(inout vy,
type(field_t), intent(inout vz,
type(field_t), intent(inout fx,
type(field_t), intent(inout fy,
type(field_t), intent(inout fz,
type(space_t), intent(in xh,
type(coef_t), intent(in coef,
integer, intent(in n,
real(kind=rp), intent(in), optional  dt 
)
pure virtualinherited

Definition at line 48 of file advection.f90.

◆ compute() [2/2]

procedure, pass(this) adv_no_dealias::adv_no_dealias_t::compute ( class(adv_no_dealias_t), intent(inout this,
type(field_t), intent(inout vx,
type(field_t), intent(inout vy,
type(field_t), intent(inout vz,
type(field_t), intent(inout fx,
type(field_t), intent(inout fy,
type(field_t), intent(inout fz,
type(space_t), intent(in xh,
type(coef_t), intent(in coef,
integer, intent(in n,
real(kind=rp), intent(in), optional  dt 
)
Parameters
vxThe x component of velocity.
vyThe y component of velocity.
vzThe z component of velocity.
fxThe x component of source term.
fyThe y component of source term.
fzThe z component of source term.
XhThe function space.
coefThe coefficients of the (Xh, mesh) pair.
nTypically the size of the mesh.
dtCurrent time-step, not required for this method.

Definition at line 60 of file adv_no_dealias.f90.

◆ compute_scalar() [1/2]

procedure(compute_scalar_adv), deferred, pass advection::advection_t::compute_scalar ( class(advection_t), intent(inout this,
type(field_t), intent(inout vx,
type(field_t), intent(inout vy,
type(field_t), intent(inout vz,
type(field_t), intent(inout s,
type(field_t), intent(inout fs,
type(space_t), intent(in xh,
type(coef_t), intent(in coef,
integer, intent(in n,
real(kind=rp), intent(in), optional  dt 
)
pure virtualinherited

Definition at line 49 of file advection.f90.

◆ compute_scalar() [2/2]

procedure, pass(this) adv_no_dealias::adv_no_dealias_t::compute_scalar ( class(adv_no_dealias_t), intent(inout this,
type(field_t), intent(inout vx,
type(field_t), intent(inout vy,
type(field_t), intent(inout vz,
type(field_t), intent(inout s,
type(field_t), intent(inout fs,
type(space_t), intent(in xh,
type(coef_t), intent(in coef,
integer, intent(in n,
real(kind=rp), intent(in), optional  dt 
)
Parameters
thisThe object.
vxThe x component of velocity.
vyThe y component of velocity.
vzThe z component of velocity.
sThe scalar.
fsThe source term.
XhThe function space.
coefThe coefficients of the (Xh, mesh) pair.
nTypically the size of the mesh.
dtCurrent time-step, not required for this method.

Definition at line 63 of file adv_no_dealias.f90.

◆ free() [1/2]

procedure(advection_free), deferred, pass advection::advection_t::free ( class(advection_t), intent(inout this)
pure virtualinherited

Definition at line 50 of file advection.f90.

◆ free() [2/2]

procedure, pass(this) adv_no_dealias::adv_no_dealias_t::free ( class(adv_no_dealias_t), intent(inout this)

Definition at line 57 of file adv_no_dealias.f90.

◆ init()

procedure, pass(this) adv_no_dealias::adv_no_dealias_t::init ( class(adv_no_dealias_t), intent(inout this,
type(coef_t), intent(in coef 
)
Parameters
coefThe coefficients of the (space, mesh) pair.

Definition at line 55 of file adv_no_dealias.f90.

Member Data Documentation

◆ temp

real(kind=rp), dimension(:), allocatable adv_no_dealias::adv_no_dealias_t::temp

Definition at line 51 of file adv_no_dealias.f90.

◆ temp_d

type(c_ptr) adv_no_dealias::adv_no_dealias_t::temp_d = C_NULL_PTR

Definition at line 52 of file adv_no_dealias.f90.


The documentation for this type was generated from the following file: