57 ? species[defaultSpecieName_]
100 if (!Ydefault.
valid())
150 for (
label i = 1; i <
Y_.size(); ++ i)
158 <<
"Sum of specie mass fractions = 0"
165 <<
"Min sum of specie mass fractions "
174 <<
"Max sum of specie mass fractions "
198 basicLagrangianThermo::New<multicomponentLagrangianThermo>
221 return defaultSpeciei_;
244 if (defaultSpeciei_ == -1 || !
species().size())
return;
259 if (i == defaultSpeciei_)
continue;
262 subYi =
max(subYi, scalar(0));
267 subYdefault =
max(scalar(1) - Yt, scalar(0));
#define forAll(list, i)
Loop across all elements in list.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static tmp< DimensionedField< Type, GeoMesh, PrimitiveField > > New(const word &name, const GeoMesh &mesh, const dimensionSet &, const PrimitiveField< Type > &)
Return a temporary field constructed from name, mesh,.
Generic GeometricField class.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static word groupName(Name name, const word &group)
Class containing Lagrangian geometry and topology.
const Time & time() const
Return time.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
word sub(const word &fieldName) const
Return the name of a field corresponding to this sub-mesh.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
virtual const LagrangianMesh & mesh() const =0
Access the mesh.
virtual const word & phaseName() const =0
Access the phase name.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const word & name() const
Return const reference to name.
A wordList with hashed indices for faster lookup by name.
virtual ~implementation()
Destructor.
virtual label defaultSpecie() const
The index of the default specie.
virtual PtrList< LagrangianScalarDynamicField > & Y()
Access the mass-fraction fields.
virtual void normaliseY(const LagrangianSubMesh &)
Normalise the mass fractions within the given sub-mesh by.
PtrList< LagrangianScalarDynamicField > Y_
Species mass fractions.
implementation(const dictionary &, const speciesTable &, const LagrangianMesh &, const word &)
Construct from dictionary, mesh and phase name.
Base-class for multicomponent Lagrangian thermodynamic models.
virtual const speciesTable & species() const =0
Return the table of species.
virtual PtrList< LagrangianScalarDynamicField > & Y()=0
Access the mass-fraction fields.
static autoPtr< multicomponentLagrangianThermo > New(const LagrangianMesh &mesh, const word &phaseName=word::null)
Select a multicomponent thermo.
virtual ~multicomponentLagrangianThermo()
Destructor.
A class for managing temporary objects.
bool valid() const
Is this temporary object valid,.
T & ref() const
Return non-const reference or generate a fatal error.
Templated form of IOobject providing type information for file reading and header type checking.
bool headerOk()
Read header (uses typeGlobalFile to find file) and check.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet & dimless
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
LagrangianField< scalar > LagrangianScalarField
defineRunTimeSelectionTable(fvConstraint, dictionary)
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.