30#include "../scalar/scalar_edge_flux.hpp"
46template <
class Double,
class Derived,
class FlowIndices,
int nDim,
size_t nVar>
56 :
Base(config, config.GetnSpecies()),
58 Sc_t(config.GetSchmidt_Number_Turbulent()) {}
65 template <
class VariableType>
73 for (
size_t iVar = 0; iVar < this->
nEqn; ++iVar) {
76 D(iVar) = 0.5 * (rho.
i * D_lam_i + rho.
j * D_lam_j) + diffTurb;
86 template <
class VariableType>
89 if (!turbulence)
return Double(0.0);
93 return 0.5 * (muT_i / Sc_t + muT_j / Sc_t);
97 const bool turbulence;
106template <
class Double,
class FlowIndices,
int nDim,
size_t nVar = Dynamic>
108 :
public CScalarFluxSpeciesBase<Double, CScalarFlux_Species<Double, FlowIndices, nDim, nVar>, FlowIndices, nDim,
A templated matrix/vector-like object.
Definition C2DContainer.hpp:374
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
su2double GetPrimitive(unsigned long iPoint, unsigned long iVar) const final
Get a primitive variable.
Definition CFlowVariable.hpp:95
Convection and diffusion of a mass fraction, conservative with a diagonal, i/j-symmetric diffusion ma...
Definition species_edge_flux.hpp:47
CScalarFluxSpeciesBase(const CConfig &config)
Definition species_edge_flux.hpp:55
static constexpr bool DiagonalDiffusion
Definition species_edge_flux.hpp:50
CPair< Vector< Double, Base::Size > > coefficients(const FlowIndices &idx, Int iPoint, const EdgeSide< VariableType > &side_i, Int jPoint, const EdgeSide< VariableType > &side_j, const CPair< Double > &rho) const
Diffusion coefficients, an i/j average of (rho * mass diffusivity) per species, plus a turbulent (mu_...
Definition species_edge_flux.hpp:66
static constexpr bool Conservative
Definition species_edge_flux.hpp:49
Double turbulentDiffusivity(const FlowIndices &idx, Int iPoint, const EdgeSide< VariableType > &side_i, Int jPoint, const EdgeSide< VariableType > &side_j) const
Turbulent contribution to the diffusivity, shared by every species and, in the flamelet model,...
Definition species_edge_flux.hpp:87
typename Base::Int Int
Definition species_edge_flux.hpp:53
Convection and diffusion of the species transport model.
Definition species_edge_flux.hpp:109
Upwind convection and diffusion of a transported scalar, accumulated into one residual,...
Definition scalar_edge_flux.hpp:316
typename CLaneTraits< Double >::Int Int
Definition scalar_edge_flux.hpp:319
const size_t nEqn
Equations of the model, which a dynamic one gives to its base.
Definition scalar_edge_flux.hpp:339
Double Double
Definition scalar_edge_flux.hpp:318
const FlowIndices idx
Definition scalar_edge_flux.hpp:338
#define FORCEINLINE
Definition code_config.hpp:44
passivedouble su2double
Definition code_config.hpp:181
Double gatherVariables(Int iPoint, const Container &vars, size_t iVar=0)
Gather a single variable, from column iVar (0 by default) of row iPoint of a 2D container,...
Definition util.hpp:277
@ NONE
Definition option_structure.hpp:282
TURB_MODEL
Types of turbulent models.
Definition option_structure.hpp:1066
Simple pair type for i/j variables.
Definition util.hpp:130
T i
Definition util.hpp:131
T j
Definition util.hpp:131
Locates the data of one endpoint of an edge.
Definition scalar_edge_flux.hpp:42
const CFlowVariable * flowNodes
Flow variables, null for solid heat transfer.
Definition scalar_edge_flux.hpp:44
const VariableType & scalarNodes
Scalar solver variables.
Definition scalar_edge_flux.hpp:43