DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::Euler::SpecialFields Namespace Reference

Functions

template<EulerModel model = NS>
auto IsentropicVortex10 (EulerEvaluator< model > &eval, const Geom::tPoint &x, real t, int cnVars, real chi)
 Analytic isentropic vortex on a [0,10] x [0,10] periodic domain.
 
template<EulerModel model = NS>
auto IsentropicVortex30 (EulerEvaluator< model > &eval, const Geom::tPoint &x, real t, int cnVars)
 Analytic isentropic vortex on a [-10,20] x [-10,20] periodic domain (period 30).
 
template<EulerModel model = NS>
auto IsentropicVortexCent (EulerEvaluator< model > &eval, const Geom::tPoint &x, real t, int cnVars)
 Stationary isentropic vortex centered at the origin with zero background flow.
 

Function Documentation

◆ IsentropicVortex10()

template<EulerModel model = NS>
auto DNDS::Euler::SpecialFields::IsentropicVortex10 ( EulerEvaluator< model > &  eval,
const Geom::tPoint x,
real  t,
int  cnVars,
real  chi 
)

Analytic isentropic vortex on a [0,10] x [0,10] periodic domain.

Background flow (u,v) = (1,1), vortex center at (5,5). The domain wraps with period 10 in both x and y via float_mod, so the vortex convects diagonally and re-enters from the opposite corner. Used for inviscid accuracy verification (spatial and temporal order-of-accuracy studies).

Template Parameters
modelEulerModel selecting the equation set (default NS = 2-D Navier-Stokes).
Parameters
evalEulerEvaluator providing gas properties (gamma).
xPhysical-space coordinates at which to evaluate the solution.
tCurrent physical time (the vortex translates at speed (1,1)*t).
cnVarsNumber of conservative variables in the returned vector.
chiVortex strength parameter (standard test value = 5).
Returns
Conservative state vector (rho, rho*u_x, rho*u_y, ..., E) of size cnVars.

Definition at line 42 of file SpecialFields.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsentropicVortex30()

template<EulerModel model = NS>
auto DNDS::Euler::SpecialFields::IsentropicVortex30 ( EulerEvaluator< model > &  eval,
const Geom::tPoint x,
real  t,
int  cnVars 
)

Analytic isentropic vortex on a [-10,20] x [-10,20] periodic domain (period 30).

Same vortex formula as IsentropicVortex10 but on a larger domain with period 30. Background flow (u,v) = (1,1), vortex center at (5,5), chi = 5 (hardcoded). Useful when more space around the vortex core is needed to reduce periodic-image interactions in convergence studies.

Template Parameters
modelEulerModel selecting the equation set (default NS).
Parameters
evalEulerEvaluator providing gas properties (gamma).
xPhysical-space coordinates at which to evaluate the solution.
tCurrent physical time (vortex translates at speed (1,1)*t).
cnVarsNumber of conservative variables in the returned vector.
Returns
Conservative state vector (rho, rho*u_x, rho*u_y, ..., E) of size cnVars.

Definition at line 93 of file SpecialFields.hpp.

Here is the call graph for this function:

◆ IsentropicVortexCent()

template<EulerModel model = NS>
auto DNDS::Euler::SpecialFields::IsentropicVortexCent ( EulerEvaluator< model > &  eval,
const Geom::tPoint x,
real  t,
int  cnVars 
)

Stationary isentropic vortex centered at the origin with zero background flow.

Same vortex formula as IsentropicVortex10 but with (u_bg, v_bg) = (0,0) and the vortex center at the origin (0,0). No periodic wrapping is applied, so the computational domain should be large enough that the vortex decays before reaching the boundaries. chi = 5 (hardcoded).

Used for steady-state vortex preservation tests to verify that the numerical scheme maintains the stationary vortex without spurious dissipation or distortion.

Template Parameters
modelEulerModel selecting the equation set (default NS).
Parameters
evalEulerEvaluator providing gas properties (gamma).
xPhysical-space coordinates at which to evaluate the solution.
tCurrent physical time (unused since the vortex is stationary).
cnVarsNumber of conservative variables in the returned vector.
Returns
Conservative state vector (rho, rho*u_x, rho*u_y, ..., E) of size cnVars.

Definition at line 148 of file SpecialFields.hpp.

Here is the call graph for this function: