52 partialSlipFvPatchVectorField(
p, iF),
53 specularityCoefficient_
55 "specularityCoefficient",
57 dict.lookup(
"specularityCoefficient")
62 (specularityCoefficient_.
value() < 0)
63 || (specularityCoefficient_.
value() > 1)
67 <<
"The specularity coefficient has to be between 0 and 1"
87 partialSlipFvPatchVectorField(ptf,
p, iF, mapper),
88 specularityCoefficient_(ptf.specularityCoefficient_)
99 partialSlipFvPatchVectorField(ptf, iF),
100 specularityCoefficient_(ptf.specularityCoefficient_)
125 patch().lookupPatchField<volScalarField, scalar>
127 phase.volScalarField::name()
133 patch().lookupPatchField<volScalarField, scalar>
137 Foam::typedName<RASModels::kineticTheoryModel>(
"gs0"),
145 patch().lookupPatchField<volScalarField, scalar>
155 db().foundObject<volScalarField>(ThetaName)
156 ? patch().lookupPatchField<volScalarField, scalar>(ThetaName)
166 *specularityCoefficient_.value()
168 /
max(6*nu*phase.alphaMax(), small)
171 this->valueFraction() =
c/(
c + patch().deltaCoeffs());
173 partialSlipFvPatchVectorField::updateCoeffs();
183 writeEntry(os,
"specularityCoefficient", specularityCoefficient_);
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...
static word groupName(Name name, const word &group)
Partial slip boundary condition for the particulate velocity.
JohnsonJacksonParticleSlipFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients.
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.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Class to represent a system of phases and model interfacial transfers between them.
static const word propertiesName
Default name of the phase properties dictionary.
const phaseModelList & phases() const
Return the phase models.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
const char *const group
Group name for atomic constants.
const dimensionedScalar c
Speed of light in a vacuum.
errorManip< error > abort(error &err)
const dimensionSet dimless
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar sqrt(const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Field< vector > vectorField
Specialisation of Field<T> for vector.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)