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);
92 Foam::functionObjects::specieFlux::calc
94 const fluidThermophysicalTransportModel& ttm,
98 return calcPhiYif(ttm, Yi) + calcJ(ttm, Yi);
103 Foam::functionObjects::specieAdvectiveFlux::calc
105 const fluidThermophysicalTransportModel& ttm,
109 return calcPhiYif(ttm, Yi);
114 Foam::functionObjects::specieDiffusiveFlux::calc
116 const fluidThermophysicalTransportModel& ttm,
120 return calcJ(ttm, Yi);
140 "div(" + phi.
name() +
"," + schemesField_ +
")"
168 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)
word member() const
Return member (name without the extension)
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
ObjectType & 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.
VolField< scalar > volScalarField
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
fluidMulticomponentThermo & thermo