42 mixedFvPatchScalarField(
p, iF,
dict, false),
43 UName_(
dict.lookupOrDefault<
word>(
"U",
"U")),
44 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho")),
45 psiName_(
dict.lookupOrDefault<
word>(
"psi",
"psi")),
46 muName_(
dict.lookupOrDefault<
word>(
"mu",
"mu")),
47 accommodationCoeff_(
dict.lookup<scalar>(
"accommodationCoeff",
dimless)),
49 gamma_(
dict.lookupOrDefault<scalar>(
"gamma",
dimless, 1.4))
51 if (
mag(accommodationCoeff_) < small ||
mag(accommodationCoeff_) > 2.0)
54 <<
"unphysical accommodationCoeff specified"
55 <<
"(0 < accommodationCoeff <= 2)" <<
endl
59 if (
dict.found(
"value"))
73 valueFraction() = 0.0;
85 mixedFvPatchScalarField(ptf,
p, iF, mapper),
87 rhoName_(ptf.rhoName_),
88 psiName_(ptf.psiName_),
90 accommodationCoeff_(ptf.accommodationCoeff_),
91 Twall_(mapper(ptf.Twall_)),
102 mixedFvPatchScalarField(ptpsf, iF),
103 accommodationCoeff_(ptpsf.accommodationCoeff_),
104 Twall_(ptpsf.Twall_),
120 refCast<const smoluchowskiJumpTFvPatchScalarField>(ptf);
122 mapper(Twall_, ptpsf.Twall_);
134 refCast<const smoluchowskiJumpTFvPatchScalarField>(ptf);
136 Twall_.reset(ptpsf.Twall_);
158 db().lookupObject<
IOdictionary>(physicalProperties::typeName);
172 *2.0*gamma_/Pr.
value()/(gamma_ + 1.0)
173 *(2.0 - accommodationCoeff_)/accommodationCoeff_
179 valueFraction() = (1.0/(1.0 + patch().deltaCoeffs()*C2));
183 mixedFvPatchScalarField::updateCoeffs();
191 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
192 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
193 writeEntryIfDifferent<word>(os,
"psi",
"psi", psiName_);
194 writeEntryIfDifferent<word>(os,
"mu",
"mu", muName_);
196 writeEntry(os,
"accommodationCoeff", accommodationCoeff_);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet & dimensions() const
Return dimensions.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & value() const
Return const reference to value.
Abstract base class for field mapping.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
Smoluchowski temperature jump boundary condition.
virtual void write(Ostream &) const
Write.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
smoluchowskiJumpTFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Base-class for thermophysical properties of solids, liquids and gases providing an interface compatib...
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const scalar piByTwo(0.5 *pi)
errorManipArg< error, int > exit(error &err, const int errNo=1)
VolField< vector > volVectorField
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimless
const dimensionSet dimTemperature
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar sqrt(const dimensionedScalar &ds)
VolField< scalar > volScalarField
dimensioned< scalar > mag(const dimensioned< Type > &)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
dimensioned< scalar > magSqr(const dimensioned< Type > &)