Go to the documentation of this file.
30 template<
class Thermo,
int PolySize>
34 const polynomialSolidTransport& pt
38 kappaCoeffs_(pt.kappaCoeffs_)
42 template<
class Thermo,
int PolySize>
47 const Polynomial<PolySize>& kappaCoeffs
51 kappaCoeffs_(kappaCoeffs)
55 template<
class Thermo,
int PolySize>
60 const polynomialSolidTransport& pt
64 kappaCoeffs_(pt.kappaCoeffs_)
68 template<
class Thermo,
int PolySize>
79 template<
class Thermo,
int PolySize>
90 template<
class Thermo,
int PolySize>
103 template<
class Thermo,
int PolySize>
115 template<
class Thermo,
int PolySize>
122 return kappaCoeffs_.value(
T);
126 template<
class Thermo,
int PolySize>
133 const scalar
kappa(kappaCoeffs_.value(
T));
138 template<
class Thermo,
int PolySize>
141 const scalar
p,
const scalar
T
150 template<
class Thermo,
int PolySize>
157 Thermo::operator=(pt);
159 kappaCoeffs_ = pt.kappaCoeffs_;
165 template<
class Thermo,
int PolySize>
171 scalar molr1 = this->nMoles();
173 Thermo::operator+=(pt);
175 molr1 /= this->nMoles();
176 scalar molr2 = pt.nMoles()/this->nMoles();
178 kappaCoeffs_ = molr1*kappaCoeffs_ + molr2*pt.kappaCoeffs_;
182 template<
class Thermo,
int PolySize>
188 scalar molr1 = this->nMoles();
190 Thermo::operator-=(pt);
192 molr1 /= this->nMoles();
193 scalar molr2 = pt.nMoles()/this->nMoles();
195 kappaCoeffs_ = molr1*kappaCoeffs_ - molr2*pt.kappaCoeffs_;
199 template<
class Thermo,
int PolySize>
205 Thermo::operator*=(
s);
211 template<
class Thermo,
int PolySize>
220 static_cast<const Thermo&
>(pt1) +
static_cast<const Thermo&
>(pt2)
223 scalar molr1 = pt1.nMoles()/t.nMoles();
224 scalar molr2 = pt2.nMoles()/t.nMoles();
229 molr1*pt1.kappaCoeffs_ + molr2*pt2.kappaCoeffs_
234 template<
class Thermo,
int PolySize>
237 const polynomialSolidTransport<Thermo, PolySize>& pt1,
238 const polynomialSolidTransport<Thermo, PolySize>& pt2
243 static_cast<const Thermo&
>(pt1) -
static_cast<const Thermo&
>(pt2)
246 scalar molr1 = pt1.nMoles()/t.nMoles();
247 scalar molr2 = pt2.nMoles()/t.nMoles();
249 return polynomialSolidTransport<Thermo, PolySize>
252 molr1*pt1.kappaCoeffs_ - molr2*pt2.kappaCoeffs_
257 template<
class Thermo,
int PolySize>
261 const polynomialSolidTransport<Thermo, PolySize>& pt
264 return polynomialSolidTransport<Thermo, PolySize>
266 s*
static_cast<const Thermo&
>(pt),
272 template<
class Thermo,
int PolySize>
275 const polynomialSolidTransport<Thermo, PolySize>& pt1,
276 const polynomialSolidTransport<Thermo, PolySize>& pt2
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
static autoPtr< polynomialSolidTransport > New(Istream &is)
polynomialSolidTransport(const Thermo &t, const Polynomial< PolySize > &kappaPoly)
Construct from components.
autoPtr< polynomialSolidTransport > clone() const
Construct and return a clone.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Transport package using polynomial functions for solid kappa.
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.
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))
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
word name(const complex &)
Return a string representation of a complex.
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].