45 #ifndef isothermalFilm_H
46 #define isothermalFilm_H
59 class surfaceTensionModel;
60 class mappedPatchBase;
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.
Engine which provides mapping between two 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,.
isothermalFilm(fvMesh &mesh, autoPtr< rhoThermo >)
Construct from region mesh and thermophysical properties.
TypeName("isothermalFilm")
Runtime type information.
rhoThermo & thermo_
Reference to the fluid thermophysical properties.
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.
const rhoThermo & thermo
Reference to the fluid thermophysical properties.
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.
bool initialised_
Bool returned by initFilmMesh()
const volScalarField & alpha
Film volume fraction in the cell layer.
const mappedPatchBase & surfacePatchMap() const
Return the film surface patch region-region map.
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 volVectorField & U
Reference to the film velocity field.
tmp< volScalarField::Internal > contErr
Continuity error.
autoPtr< surfaceTensionModel > surfaceTension
Pointer to the surface tension coefficient model.
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.
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 fvPatch & surfacePatch() const
Return the film surface patch.
surfaceScalarField phi_
Film volumetric-flux field.
void readControls()
Read controls.
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.
autoPtr< rhoThermo > thermoPtr_
Pointer to the fluid thermophysical properties.
const volScalarField::Internal & magSf
Film cell cross-sectional area magnitude.
virtual ~isothermalFilm()
Destructor.
dimensionedScalar deltaWet
Film thickness below which the surface is considered dry.
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.