Commit a06cd912 authored by Henry Weller's avatar Henry Weller
Browse files

solidMixtureProperties: Updated documentation, removed unused functions and corrected remaining

parent e5ecc288
......@@ -88,40 +88,29 @@ Foam::autoPtr<Foam::solidMixtureProperties> Foam::solidMixtureProperties::New
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::scalarField Foam::solidMixtureProperties::X(const scalarField& Y) const
Foam::scalar Foam::solidMixtureProperties::rho(const scalarField& Y) const
{
scalarField X(Y.size());
scalar rhoInv = 0.0;
forAll(X, i)
{
rhoInv += Y[i]/properties_[i].rho();
X[i] = Y[i]/properties_[i].rho();
}
tmp<scalarField> tfld(X/rhoInv);
return tfld();
}
scalar rrho = 0;
Foam::scalar Foam::solidMixtureProperties::rho(const scalarField& X) const
{
scalar val = 0.0;
forAll(properties_, i)
{
val += properties_[i].rho()*X[i];
rrho += Y[i]/properties_[i].rho();
}
return val;
return 1/rrho;
}
Foam::scalar Foam::solidMixtureProperties::Cp(const scalarField& Y) const
{
scalar val = 0.0;
scalar Cp = 0;
forAll(properties_, i)
{
val += properties_[i].Cp()*Y[i];
Cp += Y[i]*properties_[i].Cp();
}
return val;
return Cp;
}
......
......@@ -31,17 +31,11 @@ Description
\verbatim
<parentDictionary>
{
C
{
defaultCoeffs yes; // employ default coefficients
}
C;
ash
{
defaultCoeffs no;
ashCoeffs
{
... user defined properties for ash
}
//... user defined properties for ash
}
}
\endverbatim
......@@ -58,10 +52,9 @@ See also
#ifndef solidMixtureProperties_H
#define solidMixtureProperties_H
#include "scalarField.H"
#include "PtrList.H"
#include "solidProperties.H"
#include "autoPtr.H"
#include "PtrList.H"
#include "scalarField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -134,19 +127,12 @@ public:
return components_.size();
}
//- Returns the mass fractions, given mole fractions
scalarField Y(const scalarField& X) const;
//- Returns the mole fractions, given mass fractions
scalarField X(const scalarField& Y) const;
//- Calculate the mixture density [kg/m^3] as a function of
// volume fractions
scalar rho(const scalarField& X) const;
// mass fractions
scalar rho(const scalarField& Y) const;
//- Calculate the mixture heat capacity [J/(kg K)] as a function
// of mass fractions
//- Calculate the mixture heat capacity [J/(kg K)] as a function of
// mass fractions
scalar Cp(const scalarField& Y) const;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment