30 template<
class Thermo,
int PolySize>
35 const Polynomial<PolySize>& kappaCoeffs
39 kappaCoeffs_(kappaCoeffs)
43 template<
class Thermo,
int PolySize>
52 kappaCoeffs_(pt.kappaCoeffs_)
56 template<
class Thermo,
int PolySize>
67 template<
class Thermo,
int PolySize>
80 template<
class Thermo,
int PolySize>
92 template<
class Thermo,
int PolySize>
99 return kappaCoeffs_.value(T);
103 template<
class Thermo,
int PolySize>
110 const scalar
kappa(kappaCoeffs_.value(T));
115 template<
class Thermo,
int PolySize>
118 const scalar p,
const scalar T
121 return kappa(p, T)/this->
Cp(p, T);
127 template<
class Thermo,
int PolySize>
128 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator+=
133 scalar Y1 = this->
Y();
135 Thermo::operator+=(pt);
138 scalar Y2 = pt.Y()/this->
Y();
140 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
144 template<
class Thermo,
int PolySize>
145 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator*=
150 Thermo::operator*=(s);
156 template<
class Thermo,
int PolySize>
165 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
168 scalar Y1 = pt1.Y()/t.Y();
169 scalar Y2 = pt2.Y()/t.Y();
174 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
179 template<
class Thermo,
int PolySize>
188 s*
static_cast<const Thermo&
>(pt),
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
A list of keyword definitions, which are a keyword followed by any number of values (e...
Vector< scalar > vector
A scalar version of the templated Vector.
Transport package using polynomial functions for solid kappa.
autoPtr< polynomialSolidTransport > clone() const
Construct and return a clone.
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))
A class for handling words, derived from string.
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/m/s].
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/m/K].
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/m/s].
PtrList< volScalarField > & Y
scalar Cp(const scalar p, const scalar T) const
static autoPtr< polynomialSolidTransport > New(const dictionary &dict)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.