52 partialSlipFvPatchVectorField(
p, iF),
53 specularityCoefficient_
58 if (specularityCoefficient_ < 0 || specularityCoefficient_ > 1)
61 <<
"The specularity coefficient has to be between 0 and 1"
81 partialSlipFvPatchVectorField(ptf,
p, iF, mapper),
82 specularityCoefficient_(ptf.specularityCoefficient_)
93 partialSlipFvPatchVectorField(ptf, iF),
94 specularityCoefficient_(ptf.specularityCoefficient_)
119 patch().lookupPatchField<volScalarField, scalar>
121 phase.volScalarField::name()
127 patch().lookupPatchField<volScalarField, scalar>
131 Foam::typedName<RASModels::kineticTheoryModel>(
"gs0"),
139 patch().lookupPatchField<volScalarField, scalar>
149 db().foundObject<volScalarField>(ThetaName)
150 ? patch().lookupPatchField<volScalarField, scalar>(ThetaName)
160 *specularityCoefficient_
162 /
max(6*nu*phase.alphaMax(), small)
165 this->valueFraction() =
c/(
c + patch().deltaCoeffs());
167 partialSlipFvPatchVectorField::updateCoeffs();
177 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...
const dimensionSet & dimensions() const
Return dimensions.
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....
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.
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)
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)
const unitConversion unitFraction