30 template<
class Thermo,
int PolySize>
39 kappaCoeffs_(kappaCoeffs)
43 template<
class Thermo,
int PolySize>
52 kappaCoeffs_(pt.kappaCoeffs_)
56 template<
class Thermo,
int PolySize>
69 template<
class Thermo,
int PolySize>
76 return kappaCoeffs_.value(
T);
80 template<
class Thermo,
int PolySize>
88 const scalar
kappa(kappaCoeffs_.value(
T));
95 template<
class Thermo,
int PolySize>
101 scalar Y1 = this->
Y();
103 Thermo::operator+=(pt);
106 scalar Y2 = pt.Y()/this->
Y();
108 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
112 template<
class Thermo,
int PolySize>
118 Thermo::operator*=(
s);
124 template<
class Thermo,
int PolySize>
133 static_cast<const Thermo&
>(pt1) +
static_cast<const Thermo&
>(pt2)
136 scalar Y1 = pt1.Y()/t.Y();
137 scalar Y2 = pt2.Y()/t.Y();
142 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
147 template<
class Thermo,
int PolySize>
151 const polynomialSolidTransport<Thermo, PolySize>& pt
154 return polynomialSolidTransport<Thermo, PolySize>
156 s*
static_cast<const Thermo&
>(pt),
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...
Transport package using polynomial functions for solid kappa.
vector Kappa(const scalar p, const scalar T) const
Anisotropic thermal conductivity [W/m/K].
autoPtr< polynomialSolidTransport > clone() const
Construct and return a clone.
scalar kappa(const scalar p, const scalar T) const
Isotropic thermal conductivity [W/m/K].
polynomialSolidTransport(const Thermo &t, const Polynomial< PolySize > &kappaPoly)
Construct from components.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
word name(const bool)
Return a word representation of a bool.
Vector< scalar > vector
A scalar version of the templated Vector.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
PtrList< volScalarField > & Y