Neko 0.9.99
A portable framework for high-order spectral element flow simulations
Loading...
Searching...
No Matches
adv_dealias Module Reference

Subroutines to add advection terms to the RHS of a transport equation.

Data Types

type  adv_dealias_t
 Type encapsulating advection routines with dealiasing. More...
 

Functions/Subroutines

subroutine init_dealias (this, lxd, coef)
 Constructor.
 
subroutine free_dealias (this)
 Destructor.
 
subroutine compute_advection_dealias (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.
 
subroutine compute_scalar_advection_dealias (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.
 

Function/Subroutine Documentation

◆ compute_advection_dealias()

subroutine adv_dealias::compute_advection_dealias ( class(adv_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 
)
private
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 171 of file adv_dealias.f90.

Here is the call graph for this function:

◆ compute_scalar_advection_dealias()

subroutine adv_dealias::compute_scalar_advection_dealias ( class(adv_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 
)
private
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 291 of file adv_dealias.f90.

◆ free_dealias()

subroutine adv_dealias::free_dealias ( class(adv_dealias_t), intent(inout this)
private

Definition at line 154 of file adv_dealias.f90.

◆ init_dealias()

subroutine adv_dealias::init_dealias ( class(adv_dealias_t), intent(inout), target  this,
integer, intent(in lxd,
type(coef_t), intent(inout), target  coef 
)
Parameters
lxdThe polynomial order of the space used in the dealiasing.
coefThe coefficients of the (space, mesh) pair.

Definition at line 102 of file adv_dealias.f90.