Go to the documentation of this file.
30 #include "twoPhaseSystem.H"
39 JohnsonJacksonParticleSlipFvPatchVectorField
53 partialSlipFvPatchVectorField(
p, iF),
54 specularityCoefficient_(
"specularityCoefficient",
dimless,
Zero)
67 partialSlipFvPatchVectorField(ptf,
p, iF, mapper),
68 specularityCoefficient_(ptf.specularityCoefficient_)
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"
107 partialSlipFvPatchVectorField(ptf),
108 specularityCoefficient_(ptf.specularityCoefficient_)
119 partialSlipFvPatchVectorField(ptf, iF),
120 specularityCoefficient_(ptf.specularityCoefficient_)
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);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
JohnsonJacksonParticleSlipFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
A class for handling words, derived from Foam::string.
Class which solves the volume fraction equations for two phases.
constexpr const char *const group
virtual void rmap(const fvPatchVectorField &, const labelList &)
static constexpr const zero Zero
Partial slip boundary condition for the particulate velocity.
const dimensionedScalar alpha
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
const Type & value() const
const phaseModel & phase2() const
Field< vector > vectorField
Specialisation of Field<T> for vector.
Generic templated field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const phaseModel & phase1() const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
label max(const labelHashSet &set, label maxValue=labelMin)
dimensionedScalar alphaMax("alphaMax", dimless/dimTime, laminarTransport)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
errorManip< error > abort(error &err)
virtual void autoMap(const fvPatchFieldMapper &)
const word & name() const
fvPatchField< vector > fvPatchVectorField
#define FatalErrorInFunction
constexpr scalar pi(M_PI)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & writeEntry(const keyType &key, const T &value)
const dimensionedScalar c
virtual void write(Ostream &) const
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void updateCoeffs()
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet dimless