36 namespace functionObjects
52 bool Foam::functionObjects::specieFluxBase::calc()
54 const word thermoName =
57 physicalProperties::typeName,
64 fluidThermophysicalTransportModel::typeName,
70 !foundObject<multicomponentThermo>(thermoName)
71 || !foundObject<fluidThermophysicalTransportModel>(ttmName)
77 const multicomponentThermo&
thermo =
78 lookupObject<multicomponentThermo>(thermoName);
80 const fluidThermophysicalTransportModel& ttm =
81 lookupObject<fluidThermophysicalTransportModel>(ttmName);
90 Foam::functionObjects::specieFlux::calc
92 const fluidThermophysicalTransportModel& ttm,
96 return calcPhiYif(ttm, Yi) + calcJ(ttm, Yi);
101 Foam::functionObjects::specieAdvectiveFlux::calc
103 const fluidThermophysicalTransportModel& ttm,
107 return calcPhiYif(ttm, Yi);
112 Foam::functionObjects::specieDiffusiveFlux::calc
114 const fluidThermophysicalTransportModel& ttm,
118 return calcJ(ttm, Yi);
138 "div(" + phi.
name() +
"," + schemesField_ +
")"
166 schemesField_(
dict.lookupOrDefault<
word>(
"schemesField",
"Yi"))
Macros for easy insertion into run-time selection tables.
const Mesh & mesh() const
Return mesh.
Generic GeometricField class.
word group() const
Return group (extension part of name)
const word & name() const
Return name.
static word groupName(Name name, const word &group)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
const compressibleMomentumTransportModel & momentumTransport() const
Access function to momentum transport model.
virtual tmp< surfaceScalarField > j(const volScalarField &Yi) const =0
Return the specie flux for the given specie mass-fraction [kg/m^2/s].
Abstract base-class for Time/database functionObjects.
word resultName_
Name of result field.
const word fieldName_
Name of field to process.
bool store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
specieAdvectiveFlux(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
specieDiffusiveFlux(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
tmp< surfaceScalarField > calcPhiYif(const fluidThermophysicalTransportModel &ttm, const volScalarField &Yi) const
Return the advective flux.
tmp< surfaceScalarField > calcJ(const fluidThermophysicalTransportModel &ttm, const volScalarField &Yi) const
Return the diffusive flux.
specieFluxBase(const word &name, const Time &runTime, const dictionary &dict, const word &typeName)
Construct from Time and dictionary.
virtual ~specieFluxBase()
Destructor.
These functions calculate the specie-flux and write it as a surfaceScalarField called 'specie<Type>Fl...
specieFlux(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
A class for managing temporary objects.
A class for handling words, derived from string.
Calculate the face-flux of the given field.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
tmp< SurfaceField< typename innerProduct< vector, Type >::type > > flux(const VolField< Type > &vf)
Return the face-flux field obtained from the given volVectorField.
word name(const bool)
Return a word representation of a bool.
VolField< scalar > volScalarField
fluidMulticomponentThermo & thermo