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>
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
144 return kappa(p, T)/this->Cpv(p, T);
150 template<
class Thermo,
int PolySize>
151 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator=
156 Thermo::operator=(pt);
158 kappaCoeffs_ = pt.kappaCoeffs_;
162 template<
class Thermo,
int PolySize>
163 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator+=
168 scalar molr1 = this->nMoles();
170 Thermo::operator+=(pt);
172 molr1 /= this->nMoles();
173 scalar molr2 = pt.nMoles()/this->nMoles();
175 kappaCoeffs_ = molr1*kappaCoeffs_ + molr2*pt.kappaCoeffs_;
179 template<
class Thermo,
int PolySize>
180 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator-=
185 scalar molr1 = this->nMoles();
187 Thermo::operator-=(pt);
189 molr1 /= this->nMoles();
190 scalar molr2 = pt.nMoles()/this->nMoles();
192 kappaCoeffs_ = molr1*kappaCoeffs_ - molr2*pt.kappaCoeffs_;
196 template<
class Thermo,
int PolySize>
197 inline void Foam::polynomialSolidTransport<Thermo, PolySize>::operator*=
202 Thermo::operator*=(s);
208 template<
class Thermo,
int PolySize>
217 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
220 scalar molr1 = pt1.nMoles()/t.nMoles();
221 scalar molr2 = pt2.nMoles()/t.nMoles();
226 molr1*pt1.kappaCoeffs_ + molr2*pt2.kappaCoeffs_
231 template<
class Thermo,
int PolySize>
240 static_cast<const Thermo&>(pt1) - static_cast<const Thermo&>(pt2)
243 scalar molr1 = pt1.nMoles()/t.nMoles();
244 scalar molr2 = pt2.nMoles()/t.nMoles();
249 molr1*pt1.kappaCoeffs_ - molr2*pt2.kappaCoeffs_
254 template<
class Thermo,
int PolySize>
263 s*
static_cast<const Thermo&
>(pt),
269 template<
class Thermo,
int PolySize>
vector 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...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
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.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Transport package using polynomial functions for solid kappa.
static autoPtr< polynomialSolidTransport > New(Istream &is)
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))
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
A class for handling words, derived from string.
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
autoPtr< polynomialSolidTransport > clone() const
Construct and return a clone.
Polynomial templated on size (order):
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.