30 template<
class Thermo,
int PolySize>
38 kappaCoeffs_(pt.kappaCoeffs_)
42 template<
class Thermo,
int PolySize>
51 kappaCoeffs_(kappaCoeffs)
55 template<
class Thermo,
int PolySize>
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>
112 "Foam::scalar Foam::polynomialSolidTransport<thermo, PolySize>mu::" 114 " const scalar p, const scalar T" 121 template<
class Thermo,
int PolySize>
128 return kappaCoeffs_.value(T);
132 template<
class Thermo,
int PolySize>
139 const scalar
kappa(kappaCoeffs_.value(T));
144 template<
class Thermo,
int PolySize>
147 const scalar p,
const scalar T
150 return kappa(p, T)/this->Cpv(p, T);
156 template<
class Thermo,
int PolySize>
158 Foam::polynomialSolidTransport<Thermo, PolySize>::operator=
163 Thermo::operator=(pt);
165 kappaCoeffs_ = pt.kappaCoeffs_;
171 template<
class Thermo,
int PolySize>
172 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator+=
177 scalar molr1 = this->nMoles();
179 Thermo::operator+=(pt);
181 molr1 /= this->nMoles();
182 scalar molr2 = pt.nMoles()/this->nMoles();
184 kappaCoeffs_ = molr1*kappaCoeffs_ + molr2*pt.kappaCoeffs_;
188 template<
class Thermo,
int PolySize>
189 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator-=
194 scalar molr1 = this->nMoles();
196 Thermo::operator-=(pt);
198 molr1 /= this->nMoles();
199 scalar molr2 = pt.nMoles()/this->nMoles();
201 kappaCoeffs_ = molr1*kappaCoeffs_ - molr2*pt.kappaCoeffs_;
205 template<
class Thermo,
int PolySize>
206 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator*=
211 Thermo::operator*=(s);
217 template<
class Thermo,
int PolySize>
226 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
229 scalar molr1 = pt1.nMoles()/t.nMoles();
230 scalar molr2 = pt2.nMoles()/t.nMoles();
235 molr1*pt1.kappaCoeffs_ + molr2*pt2.kappaCoeffs_
240 template<
class Thermo,
int PolySize>
249 static_cast<const Thermo&>(pt1) - static_cast<const Thermo&>(pt2)
252 scalar molr1 = pt1.nMoles()/t.nMoles();
253 scalar molr2 = pt2.nMoles()/t.nMoles();
258 molr1*pt1.kappaCoeffs_ - molr2*pt2.kappaCoeffs_
263 template<
class Thermo,
int PolySize>
272 s*
static_cast<const Thermo&
>(pt),
278 template<
class Thermo,
int PolySize>
Polynomial templated on size (order):
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 ))
Transport package using polynomial functions for solid kappa.
autoPtr< polynomialSolidTransport > clone() const
Construct and return a clone.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
A class for handling words, derived from string.
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
static autoPtr< polynomialSolidTransport > New(Istream &is)
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
Vector< scalar > vector
A scalar version of the templated Vector.
#define notImplemented(functionName)
Issue a FatalErrorIn for a function not currently implemented.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...