26 #include "JohnsonJacksonParticleSlipFvPatchVectorField.H"
28 #include "twoPhaseSystem.H"
37 JohnsonJacksonParticleSlipFvPatchVectorField
48 const DimensionedField<vector, volMesh>& iF
51 partialSlipFvPatchVectorField(
p, iF),
52 specularityCoefficient_(
p.size())
59 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf,
61 const DimensionedField<vector, volMesh>& iF,
62 const fvPatchFieldMapper& mapper
65 partialSlipFvPatchVectorField(ptf,
p, iF, mapper),
66 specularityCoefficient_(ptf.specularityCoefficient_)
74 const DimensionedField<vector, volMesh>& iF,
75 const dictionary&
dict
78 partialSlipFvPatchVectorField(
p, iF),
79 specularityCoefficient_
81 "specularityCoefficient",
88 (specularityCoefficient_.value() < 0)
89 || (specularityCoefficient_.value() > 1)
93 <<
"The specularity coefficient has to be between 0 and 1"
107 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf
110 partialSlipFvPatchVectorField(ptf),
111 specularityCoefficient_(ptf.specularityCoefficient_)
118 const JohnsonJacksonParticleSlipFvPatchVectorField& ptf,
119 const DimensionedField<vector, volMesh>& iF
122 partialSlipFvPatchVectorField(ptf, iF),
123 specularityCoefficient_(ptf.specularityCoefficient_)
131 const fvPatchFieldMapper& m
134 partialSlipFvPatchVectorField::autoMap(m);
144 partialSlipFvPatchVectorField::rmap(ptf, addr);
156 const twoPhaseSystem&
fluid = db().lookupObject<twoPhaseSystem>
161 const phaseModel& phased
171 patch().lookupPatchField<volScalarField, scalar>
173 phased.volScalarField::name()
179 patch().lookupPatchField<volScalarField, scalar>
187 patch().lookupPatchField<volScalarField, scalar>
197 db().foundObject<volScalarField>(ThetaName)
198 ? patch().lookupPatchField<volScalarField, scalar>(ThetaName)
208 .lookupObject<IOdictionary>
213 .subDict(
"kineticTheoryCoeffs")
223 *specularityCoefficient_.
value()
228 this->valueFraction() =
c/(
c + patch().deltaCoeffs());
230 partialSlipFvPatchVectorField::updateCoeffs();
240 os.writeKeyword(
"specularityCoefficient")
242 writeEntry(
"value", os);