54 const word& sourceName,
55 const word& modelType,
56 const dictionary&
dict,
60 fvModel(sourceName, modelType, dict, mesh),
61 phaseName_(dict.
lookup(
"phase")),
64 mesh.lookupObject<fluidThermo>
66 IOobject::groupName(basicThermo::
dictName, phaseName_)
71 regionModels::surfaceFilmModel::
New 98 curTimeIndex_ =
mesh().time().timeIndex();
105 fvMatrix<scalar>& eqn,
106 const word& fieldName
111 Info<<
type() <<
": applying source to " << eqn.psi().name() <<
endl;
114 if (fieldName == thermo_.rho()().
name())
116 eqn += film_->Srho();
118 else if (fieldName ==
"T")
124 + film_->Srho()*(eqn.psi() - thermo_.he()/
Cv);
129 <<
"Support for field " << fieldName <<
" is not implemented" 138 fvMatrix<vector>& eqn,
139 const word& fieldName
144 Info<<
type() <<
": applying source to " << eqn.psi().name() <<
endl;
scalar Cv(const scalar p, const scalar T) const
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
UniformDimensionedField< vector > uniformDimensionedVectorField
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
DimensionedField< scalar, volMesh > Internal
Type of the internal field from which this GeometricField is derived.
Macros for easy insertion into run-time selection tables.
virtual void correct()
Solve the film and update the sources.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void addSup(const volScalarField &rho, fvMatrix< scalar > &eqn, const word &fieldName) const
Add explicit contribution to compressible enthalpy equation.
stressControl lookup("compactNormalStress") >> compactNormalStress
word name(const complex &)
Return a string representation of a complex.
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
virtual wordList addSupFields() const
Return the list of fields for which the option adds source term.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
VoFSurfaceFilm(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
Calculate the matrix for implicit and explicit sources.
const word dictName("noiseDict")