32 template<
class Thermo,
int PolySize>
37 const Polynomial<PolySize>& kappaCoeffs
41 kappaCoeffs_(kappaCoeffs)
45 template<
class Thermo,
int PolySize>
54 kappaCoeffs_(pt.kappaCoeffs_)
58 template<
class Thermo,
int PolySize>
66 template<
class Thermo,
int PolySize>
76 template<
class Thermo,
int PolySize>
88 template<
class Thermo,
int PolySize>
95 return kappaCoeffs_.value(
T);
99 template<
class Thermo,
int PolySize>
106 const scalar
kappa(kappaCoeffs_.value(
T));
111 template<
class Thermo,
int PolySize>
114 const scalar
p,
const scalar
T 123 template<
class Thermo,
int PolySize>
129 scalar Y1 = this->
Y();
131 Thermo::operator+=(pt);
134 scalar Y2 = pt.Y()/this->
Y();
136 kappaCoeffs_ = Y1*kappaCoeffs_ + Y2*pt.kappaCoeffs_;
140 template<
class Thermo,
int PolySize>
146 Thermo::operator*=(
s);
152 template<
class Thermo,
int PolySize>
155 const polynomialSolidTransport<Thermo, PolySize>& pt1,
156 const polynomialSolidTransport<Thermo, PolySize>& pt2
161 static_cast<const Thermo&>(pt1) + static_cast<const Thermo&>(pt2)
164 scalar Y1 = pt1.Y()/t.Y();
165 scalar Y2 = pt2.Y()/t.Y();
167 return polynomialSolidTransport<Thermo, PolySize>
170 Y1*pt1.kappaCoeffs_ + Y2*pt2.kappaCoeffs_
175 template<
class Thermo,
int PolySize>
179 const polynomialSolidTransport<Thermo, PolySize>& pt
182 return polynomialSolidTransport<Thermo, PolySize>
184 s*
static_cast<const Thermo&
>(pt),
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
A list of keyword definitions, which are a keyword followed by a number of values (eg...
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Transport package using polynomial functions for solid kappa.
autoPtr< polynomialSolidTransport > clone() const
Construct and return a clone.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
const volScalarField & Cp
scalar alphah(const scalar p, const scalar T) const
Thermal diffusivity of enthalpy [kg/ms].
PtrList< volScalarField > & Y
static autoPtr< polynomialSolidTransport > New(const dictionary &dict)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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))
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.