Go to the documentation of this file.
49 components_(
s.components_),
50 properties_(
s.properties_.size())
54 properties_.set(i,
s.properties_(i)->clone());
81 rhoInv +=
Y[i]/properties_[i].rho();
82 X[i] =
Y[i]/properties_[i].rho();
95 val += properties_[i].rho()*X[i];
106 val += properties_[i].Cp()*
Y[i];
scalarField X(const scalarField &Y) const
Returns the mole fractions, given mass fractions.
static autoPtr< solidProperties > New(Istream &is)
Return a pointer to a new solidProperties created from input.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
solidMixtureProperties(const dictionary &)
Construct from dictionary.
scalar rho(const scalarField &X) const
Calculate the mixture density [kg/m^3] as a function of.
scalar Cp(const scalarField &Y) const
Calculate the mixture heat capacity [J/(kg K)] as a function.
PtrList< solidProperties > properties_
The solidProperties properties.
Pre-declare SubField and related Field type.
A list of keyword definitions, which are a keyword followed by any number of values (e....
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static autoPtr< solidMixtureProperties > New(const dictionary &)
Select construct from dictionary.
List< word > components_
The names of the solids.
void size(const label)
Override size to be inconsistent with allocated storage.
PtrList< volScalarField > & Y