Documentation a537f1bdf2
Loading...
Searching...
No Matches
ScalarFluxOptions Struct Reference

Loop invariant flags for a scalar edge flux, built once outside the edge loop so the compiler can unswitch the branches they guard. More...

#include <scalar_edge_flux.hpp>

Static Public Member Functions

static ScalarFluxOptions Interior (const CConfig &config, bool bounded, bool accurateJacobians=false)
 Options of the interior edge loop: both terms, both rows, and reconstruction and gradient correction as the configuration asks for them.
 
static ScalarFluxOptions BoundaryConvective (const CConfig &config, bool bounded)
 Options of a boundary that imposes a convective flux alone, which is most of them: the diffusive term at an inlet or an outlet causes serious convergence problems.
 
static ScalarFluxOptions BoundaryFull (const CConfig &config)
 Options of a boundary that imposes both terms, which is the turbomachinery sites.
 
static ScalarFluxOptions BoundaryDiffusive (const CConfig &config, bool correctGrad)
 Options of the diffusive pass of a fluid interface, which follows a convective pass over the donor vertices.
 

Public Attributes

bool dynamicGrid = false
 
bool boundedScalar = false
 
bool correctGradient = false
 
bool accurateJacobians = false
 
bool implicit = false
 Whether the Jacobians are assembled, and so computed.
 
bool convective = true
 Whether the convective scheme contributes.
 
bool viscous = false
 Whether the diffusion term contributes.
 
bool oneSided = false
 Whether only the row of i is assembled.
 
bool muscl = false
 Whether the convective scheme reconstructs.
 

Detailed Description

Loop invariant flags for a scalar edge flux, built once outside the edge loop so the compiler can unswitch the branches they guard.

Note
Built through the named constructors below: the flags are too many and too alike to be given positionally, where one transposed pair would change the discretization silently.

Member Function Documentation

◆ BoundaryConvective()

static ScalarFluxOptions ScalarFluxOptions::BoundaryConvective ( const CConfig &  config,
bool  bounded 
)
inlinestatic

Options of a boundary that imposes a convective flux alone, which is most of them: the diffusive term at an inlet or an outlet causes serious convergence problems.

◆ BoundaryDiffusive()

static ScalarFluxOptions ScalarFluxOptions::BoundaryDiffusive ( const CConfig &  config,
bool  correctGrad 
)
inlinestatic

Options of the diffusive pass of a fluid interface, which follows a convective pass over the donor vertices.

Parameters
[in]correctGrad- Whether the projected gradient is corrected for skewness, which the models do not agree on at this boundary.

◆ BoundaryFull()

static ScalarFluxOptions ScalarFluxOptions::BoundaryFull ( const CConfig &  config)
inlinestatic

Options of a boundary that imposes both terms, which is the turbomachinery sites.

Note
They impose no mass flux, so the bounded scheme contributes nothing here whatever the configuration says.

◆ Interior()

static ScalarFluxOptions ScalarFluxOptions::Interior ( const CConfig &  config,
bool  bounded,
bool  accurateJacobians = false 
)
inlinestatic

Options of the interior edge loop: both terms, both rows, and reconstruction and gradient correction as the configuration asks for them.

Member Data Documentation

◆ accurateJacobians

bool ScalarFluxOptions::accurateJacobians = false

◆ boundedScalar

bool ScalarFluxOptions::boundedScalar = false

◆ convective

bool ScalarFluxOptions::convective = true

Whether the convective scheme contributes.

◆ correctGradient

bool ScalarFluxOptions::correctGradient = false

◆ dynamicGrid

bool ScalarFluxOptions::dynamicGrid = false

◆ implicit

bool ScalarFluxOptions::implicit = false

Whether the Jacobians are assembled, and so computed.

◆ muscl

bool ScalarFluxOptions::muscl = false

Whether the convective scheme reconstructs.

◆ oneSided

bool ScalarFluxOptions::oneSided = false

Whether only the row of i is assembled.

◆ viscous

bool ScalarFluxOptions::viscous = false

Whether the diffusion term contributes.


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