37 namespace compressible
50 const DimensionedField<scalar, volMesh>& iF
53 alphatPhaseJayatillekeWallFunctionFvPatchScalarField(p, iF),
54 otherPhaseName_(word::null),
64 const DimensionedField<scalar, volMesh>& iF,
65 const dictionary& dict
70 relax_(dict.lookupOrDefault<scalar>(
"relax", 1)),
77 <<
"otherPhase should be the name of the vapor phase that " 78 <<
"corresponds to the liquid base or vice versa" <<
nl 79 <<
"This phase: " << internalField().group() <<
nl 84 if (dict.found(
"dmdtf"))
96 const DimensionedField<scalar, volMesh>& iF,
97 const fvPatchFieldMapper& mapper
111 const DimensionedField<scalar, volMesh>& iF
126 const phaseSystem& fluid = interface.fluid();
130 interface.contains(fluid.phases()[internalField().group()])
151 dmdtf(
const phaseInterface& interface)
const 160 <<
"Phase change mass transfer rate requested for interface on " 161 <<
"which there is no phase change " 171 const fvPatchFieldMapper& m
174 alphatPhaseJayatillekeWallFunctionFvPatchScalarField::autoMap(m);
186 alphatPhaseJayatillekeWallFunctionFvPatchScalarField::rmap(ptf, addr);
189 refCast<const alphatPhaseChangeWallFunctionFvPatchScalarField>(ptf);
200 alphatPhaseJayatillekeWallFunctionFvPatchScalarField::reset(ptf);
203 refCast<const alphatPhaseChangeWallFunctionFvPatchScalarField>(ptf);
virtual void write(Ostream &) const
Write.
const char *const group
Group name for atomic constants.
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
scalarField dmdtf_
Rate of phase-change.
virtual void write(Ostream &) const
Write.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Macros for easy insertion into run-time selection tables.
stressControl lookup("compactNormalStress") >> compactNormalStress
fvPatchField< scalar > fvPatchScalarField
const word otherPhaseName_
Name of the other phase.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
List< label > labelList
A List of labels.
errorManip< error > abort(error &err)
defineTypeNameAndDebug(combustionModel, 0)
alphatPhaseChangeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
const scalar relax_
Relaxation factor.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
alphatPhaseJayatillekeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
bool activeInterface(const phaseInterface &) const
Is there phase change mass transfer for this interface?
const scalarField & dmdtf() const
Return the rate of phase-change.
void reset(const Field< Type > &)
Reset the field values to the given field.