37 JohnsonJacksonParticleSlipFvPatchVectorField
48 const DimensionedField<vector, volMesh>& iF
51 partialSlipFvPatchVectorField(p, iF),
52 specularityCoefficient_(
"specularityCoefficient",
dimless, 0)
60 const DimensionedField<vector, volMesh>& iF,
61 const dictionary& dict
64 partialSlipFvPatchVectorField(p, iF),
65 specularityCoefficient_
67 "specularityCoefficient",
69 dict.
lookup(
"specularityCoefficient")
74 (specularityCoefficient_.value() < 0)
75 || (specularityCoefficient_.value() > 1)
79 <<
"The specularity coefficient has to be between 0 and 1" 93 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf,
95 const DimensionedField<vector, volMesh>& iF,
96 const fvPatchFieldMapper& mapper
99 partialSlipFvPatchVectorField(ptf, p, iF, mapper),
100 specularityCoefficient_(ptf.specularityCoefficient_)
107 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf,
108 const DimensionedField<vector, volMesh>& iF
111 partialSlipFvPatchVectorField(ptf, iF),
112 specularityCoefficient_(ptf.specularityCoefficient_)
126 const phaseSystem& fluid =
129 const phaseModel& phase
131 fluid.phases()[internalField().group()]
137 patch().lookupPatchField<volScalarField, scalar>
139 phase.volScalarField::name()
145 patch().lookupPatchField<volScalarField, scalar>
153 patch().lookupPatchField<volScalarField, scalar>
161 patch().lookupPatchField<volScalarField, scalar>
171 db().foundObject<volScalarField>(ThetaName)
172 ? patch().lookupPatchField<volScalarField, scalar>(ThetaName)
182 *specularityCoefficient_.value()
184 /
max(6*(nu - nuFric)*phase.alphaMax(), small)
187 this->valueFraction() =
c/(
c + patch().deltaCoeffs());
189 partialSlipFvPatchVectorField::updateCoeffs();
199 writeEntry(os,
"specularityCoefficient", specularityCoefficient_);
static const word propertiesName
Default name of the phase properties dictionary.
virtual void write(Ostream &) const
Write.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fvPatchField< vector > fvPatchVectorField
JohnsonJacksonParticleSlipFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
dimensionedScalar sqrt(const dimensionedScalar &ds)
const dimensionSet dimless
virtual void write(Ostream &) const
Write.
const dimensionedScalar c
Speed of light in a vacuum.
Macros for easy insertion into run-time selection tables.
stressControl lookup("compactNormalStress") >> compactNormalStress
fvPatchField< scalar > fvPatchScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
errorManip< error > abort(error &err)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
virtual void updateCoeffs()
Update the coefficients.
Field< vector > vectorField
Specialisation of Field<T> for vector.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)