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")),
48 Twall_(
"Twall",
dict,
p.size()),
49 gamma_(
dict.lookupOrDefault<scalar>(
"gamma", 1.4))
53 mag(accommodationCoeff_) < small
54 ||
mag(accommodationCoeff_) > 2.0
60 ) <<
"unphysical accommodationCoeff specified"
61 <<
"(0 < accommodationCoeff <= 1)" <<
endl
65 if (
dict.found(
"value"))
79 valueFraction() = 0.0;
91 mixedFvPatchScalarField(ptf,
p, iF, mapper),
93 rhoName_(ptf.rhoName_),
94 psiName_(ptf.psiName_),
96 accommodationCoeff_(ptf.accommodationCoeff_),
97 Twall_(mapper(ptf.Twall_)),
108 mixedFvPatchScalarField(ptpsf, iF),
109 accommodationCoeff_(ptpsf.accommodationCoeff_),
110 Twall_(ptpsf.Twall_),
126 refCast<const smoluchowskiJumpTFvPatchScalarField>(ptf);
128 mapper(Twall_, ptpsf.Twall_);
140 refCast<const smoluchowskiJumpTFvPatchScalarField>(ptf);
142 Twall_.reset(ptpsf.Twall_);
164 db().lookupObject<
IOdictionary>(physicalProperties::typeName);
178 *2.0*gamma_/Pr.
value()/(gamma_ + 1.0)
179 *(2.0 - accommodationCoeff_)/accommodationCoeff_
185 valueFraction() = (1.0/(1.0 + patch().deltaCoeffs()*C2));
189 mixedFvPatchScalarField::updateCoeffs();
197 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
198 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
199 writeEntryIfDifferent<word>(os,
"psi",
"psi", psiName_);
200 writeEntryIfDifferent<word>(os,
"mu",
"mu", muName_);
202 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...
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.
Foam::fvPatchFieldMapper.
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 fvPatchFieldMapper &)
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 fvPatchFieldMapper &)
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
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 > &)