41 #ifndef thermoSingleLayer_H 42 #define thermoSingleLayer_H 54 namespace regionModels
56 namespace surfaceFilmModels
61 class heatTransferModel;
62 class phaseChangeModel;
203 const word& modelType,
206 const word& regionType,
244 const scalar massSource,
245 const vector& momentumSource,
246 const scalar pressureSource,
247 const scalar energySource
virtual tmp< volScalarField::Internal > Ts() const
Return the film surface temperature [K].
autoPtr< heatTransferModel > htcw_
Heat transfer coefficient between wall and film [W/m^2/K].
const heatTransferModel & htcs() const
Return const access to the (surface) heat transfer model.
volScalarField TPrimary_
Temperature [K].
autoPtr< phaseChangeModel > phaseChange_
Phase change.
thermoSingleLayer(const word &modelType, const fvMesh &mesh, const dimensionedVector &g, const word ®ionType, const bool readFields=true)
Construct from components.
virtual void resetPrimaryRegionSourceTerms()
Reset source term fields.
virtual void correctCoverage()
Correct film coverage field.
Kinematic form of single-cell layer surface film model.
scalar Tmax_
Maximum temperature limit (optional)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the specified type.
virtual void transferPrimaryRegionSourceFields()
Transfer source fields from the primary region to the film region.
const volScalarField & hSpPrimary() const
Energy [J/m2/s].
virtual tmp< fvScalarMatrix > q(volScalarField &h) const
Return the wall/surface heat transfer term for the enthalpy equation.
bool hydrophilic_
Activation flag.
volScalarField::Internal hSp_
Energy [J/m2/s].
virtual void transferPrimaryRegionThermoFields()
Transfer thermo fields from the primary region to the film region.
virtual void solveEnergy()
Solve energy equation.
autoPtr< heatTransferModel > htcs_
Heat transfer coefficient between film surface and primary.
const dimensionedScalar h
Planck constant.
Base class for surface film phase change models.
virtual void info()
Provide some feedback.
const volScalarField & TPrimary() const
Temperature [K].
void operator=(const thermoSingleLayer &)=delete
Disallow default bitwise assignment.
virtual void updateSubmodels()
Update the film sub-models.
TypeName("thermoSingleLayer")
Runtime type information.
scalar hydrophilicDryScale_
Length scale applied to deltaWet_ to determine when a wet.
A class for handling words, derived from string.
Base-class for fluid thermodynamic properties.
volScalarField hSpPrimary_
Energy [J/m2/s].
const fluidThermo & primaryThermo_
Reference to the primary region thermo.
const PtrList< volScalarField > & YPrimary() const
Specie mass fractions [0-1].
const radiationModel & radiation() const
Return const access to the radiation model.
virtual tmp< volScalarField::Internal > SYi(const label i) const
Return mass source for specie i - Eulerian phase only.
scalar hydrophilicWetScale_
Length scale applied to deltaWet_ to determine when a dry.
const volScalarField::Internal & hSp() const
Energy [J/m2/s].
scalar Tmin_
Minimum temperature limit (optional)
const phaseChangeModel & phaseChange() const
Return const access to the phase change model.
const dimensionedVector & g() const
Return the acceleration due to gravity.
virtual void evolveRegion()
Evolve the film equations.
virtual void addSources(const label patchi, const label facei, const scalar massSource, const vector &momentumSource, const scalar pressureSource, const scalar energySource)
External hook to add sources to the film.
volScalarField primaryEnergyTrans_
Film energy transfer.
virtual bool read()
Read control parameters from dictionary.
virtual void correctHforMappedT()
Correct sensible enthalpy for mapped temperature fields.
const heatTransferModel & htcw() const
Return const access to the (wall) heat transfer model.
scalar deltaWet_
Threshold film thickness beyond which the film is considered 'wet'.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual ~thermoSingleLayer()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
virtual void preEvolveRegion()
Pre-evolve film hook.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
PtrList< volScalarField > YPrimary_
List of specie mass fractions [0-1].
virtual tmp< volScalarField::Internal > Tw() const
Return the film wall temperature [K].
A class for managing temporary objects.
autoPtr< radiationModel > radiation_
Radiation.
Base class for film radiation models.
const fluidThermo & primaryThermo() const
Return const reference to the primary region thermo object.
virtual tmp< volScalarField::Internal > Sh() const
Return enthalpy source - Eulerian phase only.
Thermodynamic form of single-cell layer surface film model.
Base class for film heat transfer models.