45 #ifndef isothermalFilm_H
46 #define isothermalFilm_H
59 class surfaceTensionModel;
60 class mappedFvPatchBaseBase;
88 scalar cumulativeContErr;
182 template<
class FieldType>
183 void constrainField(FieldType& field)
const;
188 template<
class FieldType>
194 template<
class FieldType>
202 void continuityPredictor();
205 void correctContinuityError();
208 void continuityErrors();
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Mesh data needed to do the Finite Volume discretisation.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Base class for fv patches that provide mapping between two fv patches.
Base-class for fluid thermodynamic properties based on density.
Abstract base class for run-time selectable region solvers.
const fvMesh & mesh
Region mesh.
Solver module for flow of compressible isothermal liquid films.
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
TypeName("isothermalFilm")
Runtime type information.
const surfaceScalarField & phi
Reference to the film volumetric-flux field.
volVectorField U_
Film velocity field.
virtual void prePredictor()
Called at the start of the PIMPLE loop.
tmp< fvVectorMatrix > tUEqn
Cached momentum matrix.
virtual void postSolve()
Called after the PIMPLE loop at the end of the time-step.
volScalarField & p
The thermodynamic pressure field.
autoPtr< filmCompressible::momentumTransportModel > momentumTransport
Pointer to the momentum transport model.
rhoFluidThermo & thermo_
Reference to the fluid thermophysical properties.
bool initialised_
Bool returned by initFilmMesh()
virtual bool dependenciesModified() const
Return true if the solver's dependencies have been modified.
const volScalarField & alpha
Film volume fraction in the cell layer.
virtual void moveMesh()
Called at the start of the PIMPLE loop to move the mesh.
virtual scalar maxDeltaT() const
Return the current maximum time-step for stable solution.
const rhoFluidThermo & thermo
Reference to the fluid thermophysical properties.
const volVectorField & U
Reference to the film velocity field.
tmp< volScalarField::Internal > contErr
Continuity error.
autoPtr< surfaceTensionModel > surfaceTension
Pointer to the surface tension coefficient model.
virtual void motionCorrector()
Corrections that follow mesh motion.
autoPtr< rhoFluidThermo > thermoPtr_
Pointer to the fluid thermophysical properties.
const surfaceScalarField & alphaRhoPhi
Reference to the film mass-flux field.
void operator=(const isothermalFilm &)=delete
Disallow default bitwise assignment.
virtual void pressureCorrector()
Construct and solve the pressure equation in the PISO loop.
virtual void postCorrector()
Correct the momentum and thermophysical transport modelling.
const uniformDimensionedVectorField g
Acceleration due to gravity.
surfaceScalarField alphaRhoPhi_
Film mass-flux field.
volScalarField delta_
Film thickness.
isothermalFilm(fvMesh &mesh, autoPtr< rhoFluidThermo >)
Construct from region mesh and thermophysical properties.
virtual void momentumPredictor()
Construct and optionally solve the momentum equation.
const volScalarField & VbyA
Film cell volume/wall face area.
bool thermocapillary
Set true if the surface tension coefficient is non-uniform.
volScalarField VbyA_
Film cell volume/wall face area.
const mappedFvPatchBaseBase & surfacePatchMap() const
Return the film surface patch region-region map.
const fvPatch & surfacePatch() const
Return the film surface patch.
surfaceScalarField phi_
Film volumetric-flux field.
tmp< volScalarField > sigma() const
Return the film surface tension coefficient field.
const volScalarField & delta
Film thickness.
const volScalarField & rho
Reference to the thermodynamic density field.
const volVectorField & nHat
Film wall normal.
volScalarField::Internal magSf_
Film cell cross-sectional area magnitude.
volVectorField nHat_
Film wall normal.
virtual void preSolve()
Called at the start of the time-step, before the PIMPLE loop.
label surfacePatchID
Film surface patch ID.
const volScalarField::Internal & magSf
Film cell cross-sectional area magnitude.
virtual ~isothermalFilm()
Destructor.
dimensionedScalar deltaWet
Film thickness below which the surface is considered dry.
virtual bool read()
Read controls.
labelList wallPatchIDs
List of film wall patch IDs.
volScalarField alpha_
Film volume fraction in the cell layer.
A class for managing temporary objects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.