54 const word& sourceName,
55 const word& modelType,
56 const dictionary&
dict,
60 fvModel(sourceName, modelType, dict, mesh),
63 regionModels::surfaceFilmModels::thermoSingleLayer::typeName,
79 surfaceFilm_.rhoPrimary().name(),
80 surfaceFilm_.UPrimary().name(),
81 surfaceFilm_.TPrimary().name()
89 return surfaceFilm_.maxDeltaT();
100 surfaceFilm_.evolve();
102 curTimeIndex_ =
mesh().time().timeIndex();
109 fvMatrix<scalar>& eqn,
110 const word& fieldName
115 Info<<
type() <<
": applying source to " << eqn.psi().name() <<
endl;
118 if (fieldName == surfaceFilm_.rhoPrimary().name())
120 eqn += surfaceFilm_.Srho();
122 else if (fieldName == surfaceFilm_.TPrimary().name())
127 surfaceFilm_.Sh()()/
Cv 128 + surfaceFilm_.Srho()
129 *(eqn.psi() - surfaceFilm_.primaryThermo().he()/
Cv);
134 <<
"Support for field " << fieldName <<
" is not implemented" 143 fvMatrix<vector>& eqn,
144 const word& fieldName
149 Info<<
type() <<
": applying source to " << eqn.psi().name() <<
endl;
152 eqn += surfaceFilm_.SU();
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
scalar Cv(const scalar p, const scalar T) const
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
errorManipArg< error, int > exit(error &err, const int errNo=1)
UniformDimensionedField< vector > uniformDimensionedVectorField
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
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.
virtual bool movePoints()
Update for mesh motion.
virtual scalar maxDeltaT() const
Return the maximum time-step for stable operation.
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.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Calculate the matrix for implicit and explicit sources.