A mixture of solids. More...
Public Member Functions | |
solidMixtureProperties (const dictionary &) | |
Construct from dictionary. More... | |
solidMixtureProperties (const solidMixtureProperties &lm) | |
Construct copy. More... | |
virtual autoPtr< solidMixtureProperties > | clone () const |
Construct and return a clone. More... | |
virtual | ~solidMixtureProperties () |
Destructor. More... | |
const List< word > & | components () const |
Return the solidProperties names. More... | |
const PtrList< solidProperties > & | properties () const |
Return the solidProperties properties. More... | |
label | size () const |
Return the number of solids in the mixture. More... | |
scalarField | Y (const scalarField &X) const |
Returns the mass fractions, given mole fractions. More... | |
scalarField | X (const scalarField &Y) const |
Returns the mole fractions, given mass fractions. More... | |
scalar | rho (const scalarField &X) const |
Calculate the mixture density [kg/m^3] as a function of. More... | |
scalar | Cp (const scalarField &Y) const |
Calculate the mixture heat capacity [J/(kg K)] as a function. More... | |
Static Public Member Functions | |
static autoPtr< solidMixtureProperties > | New (const dictionary &) |
Select construct from dictionary. More... | |
Private Attributes | |
List< word > | components_ |
The names of the solids. More... | |
PtrList< solidProperties > | properties_ |
The solidProperties properties. More... | |
A mixture of solids.
An example of a two component solid mixture:
<parentDictionary> { C { defaultCoeffs yes; // employ default coefficients } ash { defaultCoeffs no; ashCoeffs { ... user defined properties for ash } } }
Definition at line 74 of file solidMixtureProperties.H.
solidMixtureProperties | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 30 of file solidMixtureProperties.C.
References solidMixtureProperties::components_, dict, forAll, solidProperties::New(), solidMixtureProperties::properties_, and List::size().
Referenced by solidMixtureProperties::clone().
solidMixtureProperties | ( | const solidMixtureProperties & | lm | ) |
Construct copy.
Definition at line 45 of file solidMixtureProperties.C.
|
inlinevirtual |
Destructor.
Definition at line 106 of file solidMixtureProperties.H.
|
inlinevirtual |
Construct and return a clone.
Definition at line 96 of file solidMixtureProperties.H.
References solidMixtureProperties::solidMixtureProperties().
|
static |
Select construct from dictionary.
Definition at line 62 of file solidMixtureProperties.C.
Referenced by SLGThermo::SLGThermo().
Return the solidProperties names.
Definition at line 119 of file solidMixtureProperties.H.
References solidMixtureProperties::components_.
|
inline |
Return the solidProperties properties.
Definition at line 125 of file solidMixtureProperties.H.
References solidMixtureProperties::properties_.
|
inline |
Return the number of solids in the mixture.
Definition at line 131 of file solidMixtureProperties.H.
References solidMixtureProperties::components_, and List::size().
scalarField Y | ( | const scalarField & | X | ) | const |
Returns the mass fractions, given mole fractions.
Foam::scalarField X | ( | const scalarField & | Y | ) | const |
Returns the mole fractions, given mass fractions.
Definition at line 75 of file solidMixtureProperties.C.
Foam::scalar rho | ( | const scalarField & | X | ) | const |
Calculate the mixture density [kg/m^3] as a function of.
volume fractions
Definition at line 90 of file solidMixtureProperties.C.
References forAll.
Foam::scalar Cp | ( | const scalarField & | Y | ) | const |
Calculate the mixture heat capacity [J/(kg K)] as a function.
of mass fractions
Definition at line 101 of file solidMixtureProperties.C.
The names of the solids.
Definition at line 79 of file solidMixtureProperties.H.
Referenced by solidMixtureProperties::components(), solidMixtureProperties::size(), and solidMixtureProperties::solidMixtureProperties().
|
private |
The solidProperties properties.
Definition at line 82 of file solidMixtureProperties.H.
Referenced by solidMixtureProperties::properties(), and solidMixtureProperties::solidMixtureProperties().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.