Neko-TOP
A portable framework for high-order spectral element flow toplogy optimization.
Loading...
Searching...
No Matches
adv_lin_dealias Module Reference

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

Data Types

type  adv_lin_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_adjoint_advection_dealias (this, vx, vy, vz, vxb, vyb, vzb, fx, fy, fz, xh, coef, n)
 Add the adjoint advection term for the fluid in weak form, i.e. \( \int_\Omega v \cdot u' (\nabla \bar{U})^T u^\dagger d\Omega + \int_\Omega \nabla v \cdot (\bar{U} \otimes u^\dagger) d \Omega \), to the RHS.
 
subroutine compute_linear_advection_dealias (this, vx, vy, vz, vxb, vyb, vzb, fx, fy, fz, xh, coef, n)
 Add the linearized advection term for the fluid, i.e. \(u' \cdot \nabla \bar{U} + \bar{U} \cdot \nabla u' \), to the RHS.
 

Function/Subroutine Documentation

◆ compute_adjoint_advection_dealias()

subroutine adv_lin_dealias::compute_adjoint_advection_dealias ( class(adv_lin_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 vxb,
type(field_t), intent(inout vyb,
type(field_t), intent(inout vzb,
type(field_t), intent(inout fx,
type(field_t), intent(inout fy,
type(field_t), intent(inout fz,
type(space_t), intent(inout xh,
type(coef_t), intent(inout coef,
integer, intent(in n 
)
private
Parameters
vxThe x component of adjoint velocity.
vyThe y component of adjoint velocity.
vzThe z component of adjoint velocity.
vxbThe x component of baseflow.
vybThe y component of baseflow.
vzbThe z component of baseflow.
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.

Definition at line 235 of file adv_adjoint_dealias.f90.

◆ compute_linear_advection_dealias()

subroutine adv_lin_dealias::compute_linear_advection_dealias ( class(adv_lin_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 vxb,
type(field_t), intent(inout vyb,
type(field_t), intent(inout vzb,
type(field_t), intent(inout fx,
type(field_t), intent(inout fy,
type(field_t), intent(inout fz,
type(space_t), intent(inout xh,
type(coef_t), intent(inout coef,
integer, intent(in n 
)
private
Parameters
vxThe x component of perturbed velocity.
vyThe y component of perturbed velocity.
vzThe z component of perturbed velocity.
vxbThe x component of baseflow.
vybThe y component of baseflow.
vzbThe z component of baseflow.
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.

Definition at line 479 of file adv_adjoint_dealias.f90.

◆ free_dealias()

subroutine adv_lin_dealias::free_dealias ( class(adv_lin_dealias_t), intent(inout this)
private

Definition at line 214 of file adv_adjoint_dealias.f90.

◆ init_dealias()

subroutine adv_lin_dealias::init_dealias ( class(adv_lin_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 137 of file adv_adjoint_dealias.f90.