30 #include "twoPhaseSystem.H"
39 JohnsonJacksonParticleSlipFvPatchVectorField
50 const DimensionedField<vector, volMesh>& iF
53 partialSlipFvPatchVectorField(
p, iF),
54 specularityCoefficient_(
"specularityCoefficient",
dimless, 0)
61 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf,
63 const DimensionedField<vector, volMesh>& iF,
64 const fvPatchFieldMapper& mapper
67 partialSlipFvPatchVectorField(ptf,
p, iF, mapper),
68 specularityCoefficient_(ptf.specularityCoefficient_)
76 const DimensionedField<vector, volMesh>& iF,
77 const dictionary&
dict
80 partialSlipFvPatchVectorField(
p, iF),
81 specularityCoefficient_(
"specularityCoefficient",
dimless,
dict)
85 (specularityCoefficient_.
value() < 0)
86 || (specularityCoefficient_.
value() > 1)
90 <<
"The specularity coefficient has to be between 0 and 1"
104 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf
107 partialSlipFvPatchVectorField(ptf),
108 specularityCoefficient_(ptf.specularityCoefficient_)
115 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf,
116 const DimensionedField<vector, volMesh>& iF
119 partialSlipFvPatchVectorField(ptf, iF),
120 specularityCoefficient_(ptf.specularityCoefficient_)
128 const fvPatchFieldMapper& m
131 partialSlipFvPatchVectorField::autoMap(m);
141 partialSlipFvPatchVectorField::rmap(ptf, addr);
153 const twoPhaseSystem&
fluid = db().lookupObject<twoPhaseSystem>
158 const phaseModel& phased
168 patch().lookupPatchField<volScalarField, scalar>
170 phased.volScalarField::name()
176 patch().lookupPatchField<volScalarField, scalar>
184 patch().lookupPatchField<volScalarField, scalar>
192 patch().lookupPatchField<volScalarField, scalar>
202 db().foundObject<volScalarField>(ThetaName)
203 ?
patch().lookupPatchField<volScalarField, scalar>(ThetaName)
213 .lookupObject<IOdictionary>
218 .subDict(
"kineticTheoryCoeffs")
227 *specularityCoefficient_.
value()
232 this->valueFraction() =
c/(
c +
patch().deltaCoeffs());
234 partialSlipFvPatchVectorField::updateCoeffs();
244 os.
writeEntry(
"specularityCoefficient", specularityCoefficient_);
245 writeEntry(
"value",
os);