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

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

Data Types

type  adv_oifs_t

Functions/Subroutines

subroutine adv_oifs_init (this, lxd, coef, ctarget, ulag, vlag, wlag, dtlag, tlag, time_scheme, slag)
 Constructor.
subroutine adv_oifs_free (this)
 Destructor.
subroutine set_conv_velocity_fst (this, u, v, w)
 Mapping the velocity fields to GL space and transforming them to the rst format.
subroutine adv_oifs_restart (this)
 Rebuild the convecting field series after a restart.
subroutine adv_oifs_compute (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 using the OIFS method.
subroutine adv_oifs_compute_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.
subroutine recompute_metrics_oifs (this, coef, moving_boundary)
subroutine adv_oifs_compute_ale (this, vx, vy, vz, wm_x, wm_y, wm_z, fx, fy, fz, xh, coef, n, dt)

Function/Subroutine Documentation

◆ adv_oifs_compute()

subroutine adv_oifs::adv_oifs_compute ( class(adv_oifs_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.

Definition at line 445 of file adv_oifs.f90.

Here is the call graph for this function:

◆ adv_oifs_compute_ale()

subroutine adv_oifs::adv_oifs_compute_ale ( class(adv_oifs_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) wm_x,
type(field_t), intent(inout) wm_y,
type(field_t), intent(inout) wm_z,
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

Definition at line 650 of file adv_oifs.f90.

◆ adv_oifs_compute_scalar()

subroutine adv_oifs::adv_oifs_compute_scalar ( class(adv_oifs_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.

Definition at line 562 of file adv_oifs.f90.

◆ adv_oifs_free()

subroutine adv_oifs::adv_oifs_free ( class(adv_oifs_t), intent(inout) this)
private

Definition at line 286 of file adv_oifs.f90.

◆ adv_oifs_init()

subroutine adv_oifs::adv_oifs_init ( class(adv_oifs_t), intent(inout) this,
integer, intent(in) lxd,
type(coef_t), target coef,
real(kind=rp), intent(in) ctarget,
type(field_series_t), intent(in), target ulag,
type(field_series_t), intent(in), target vlag,
type(field_series_t), intent(in), target wlag,
real(kind=dp), dimension(10), intent(in), target dtlag,
real(kind=dp), dimension(10), intent(in), target tlag,
type(time_scheme_controller_t), intent(in), target time_scheme,
type(field_series_t), optional, target slag )
Parameters
lxdThe polynomial order of the space used in the dealiasing.
coefThe coefficients of the (space, mesh) pair.
ctargetTarget CFL number.
ulagThe x component of lagged velocity.
vlagThe y component of lagged velocity.
wlagThe z component of lagged velocity.
dtlagLagged time steps.
tlagLagged simulation times.
time_schemeThe bdf-ext time scheme used in the method.
slagThe lagged scalar field.

Definition at line 136 of file adv_oifs.f90.

Here is the call graph for this function:

◆ adv_oifs_restart()

subroutine adv_oifs::adv_oifs_restart ( class(adv_oifs_t), intent(inout) this)
private

convr_GL, convs_GL and convt_GL are not stored in the checkpoint. They are recomputed from the restored lagged velocities, first lf(2) and then lf(1). The next call to compute or compute_scalar adds the current velocity, as in a run without restart.

Definition at line 422 of file adv_oifs.f90.

◆ recompute_metrics_oifs()

subroutine adv_oifs::recompute_metrics_oifs ( class(adv_oifs_t), intent(inout) this,
type(coef_t), intent(in) coef,
logical, intent(in) moving_boundary )
private

Definition at line 642 of file adv_oifs.f90.

◆ set_conv_velocity_fst()

subroutine adv_oifs::set_conv_velocity_fst ( class(adv_oifs_t), intent(inout) this,
type(field_t), intent(inout) u,
type(field_t), intent(inout) v,
type(field_t), intent(inout) w )
private
Parameters
uVelocity component in x-direction
vVelocity component in y-direction
wVelocity component in z-direction
Note
similar to set_ct_cvx in NEK5000

Definition at line 391 of file adv_oifs.f90.

Here is the call graph for this function: