28 template<
class Thermo>
44 template<
class Thermo>
58 template<
class Thermo>
73 template<
class Thermo>
76 const scalar p,
const scalar T
79 return (kappa0_*
pow(T/Tref_, n0_));
83 template<
class Thermo>
86 const scalar p,
const scalar T
89 const scalar
kappa(kappa0_*
pow(T/Tref_, n0_));
90 return vector(kappa, kappa, kappa);
94 template<
class Thermo>
96 mu(
const scalar p,
const scalar T)
const 103 template<
class Thermo>
105 alphah(
const scalar p,
const scalar T)
const 107 return kappa(p, T)/this->Cpv(p, T);
113 template<
class Thermo>
114 inline void Foam::exponentialSolidTransport<Thermo>::operator=
119 kappa0_ = ct.kappa0_;
125 template<
class Thermo>
126 inline void Foam::exponentialSolidTransport<Thermo>::operator+=
131 scalar molr1 = this->nMoles();
133 molr1 /= this->nMoles();
134 scalar molr2 = ct.nMoles()/this->nMoles();
136 kappa0_ = molr1*kappa0_ + molr2*ct.kappa0_;
137 n0_ = (molr1*n0_ + molr2*ct.n0_);
138 Tref_ = (molr1*Tref_ + molr2*ct.Tref_);
142 template<
class Thermo>
143 inline void Foam::exponentialSolidTransport<Thermo>::operator-=
148 scalar molr1 = this->nMoles();
150 molr1 /= this->nMoles();
151 scalar molr2 = ct.nMoles()/this->nMoles();
153 kappa0_ = (molr1*kappa0_ - molr2*ct.kappa0_);
154 n0_ = (molr1*n0_ - molr2*ct.n0_);
155 Tref_ = (molr1*Tref_ - molr2*ct.Tref_);
161 template<
class Thermo>
170 s*
static_cast<const Thermo&
>(ct),
scalar kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
Exponential properties for solid heat transport Templated into a given thermodynamics package...
A list of keyword definitions, which are a keyword followed by any number of values (e...
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.
static autoPtr< exponentialSolidTransport > New(const dictionary &dict)
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))
A class for handling words, derived from string.
vector Kappa(const scalar p, const scalar T) const
Thermal conductivity [W/mK].
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
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.
scalar mu(const scalar p, const scalar T) const
Dynamic viscosity [kg/ms].