44 #ifndef Foam_thermoSingleLayer_H 45 #define Foam_thermoSingleLayer_H 54 namespace regionModels
56 namespace surfaceFilmModels
60 class filmViscosityModel;
61 class heatTransferModel;
62 class phaseChangeModel;
63 class filmRadiationModel;
255 const word& modelType,
258 const word& regionType,
326 const scalar massSource,
327 const vector& momentumSource,
328 const scalar pressureSource,
329 const scalar energySource
volScalarField Ts_
Temperature - surface [K].
volScalarField hsSpPrimary_
Energy [J/m2/s].
volScalarField Tw_
Temperature - wall [K].
autoPtr< heatTransferModel > htcw_
Heat transfer coefficient between wall and film [W/m2/K].
virtual void correctAlpha()
Correct film coverage field.
const heatTransferModel & htcs() const
Return const access to the (surface) heat transfer model.
const volScalarField & hsSpPrimary() const
Energy [J/m2/s].
volScalarField TPrimary_
Temperature [K].
autoPtr< phaseChangeModel > phaseChange_
Phase change.
const volScalarField & hsSp() const
Energy [J/m2/s].
virtual const volScalarField & Cp() const
Return the film specific heat capacity [J/kg/K].
virtual void resetPrimaryRegionSourceTerms()
Reset source term fields.
Kinematic form of single-cell layer surface film model.
virtual void transferPrimaryRegionSourceFields()
Transfer source fields from the primary region to the film region.
limitType withTbounds_
Limiting type.
virtual const volScalarField & kappa() const
Return the film thermal conductivity [W/m/K].
bool hydrophilic_
Activation flag.
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.
virtual void updateSurfaceTemperatures()
Correct the film surface and wall temperatures.
virtual tmp< volScalarField::Internal > Srho() const
Return total mass source - Eulerian phase only.
tmp< scalarField > qconvp(const label patchi) const
Return the convective heat energy from primary region to film.
Base class for surface film phase change models.
virtual void info()
Provide some feedback.
const volScalarField & TPrimary() const
Temperature [K].
volScalarField hsSp_
Energy [J/m2/s].
virtual tmp< fvScalarMatrix > q(volScalarField &hs) const
Return the wall/surface heat transfer term for the enthalpy equation.
virtual void updateSubmodels()
Update the film sub-models.
volScalarField T_
Temperature - mean [K].
TypeName("thermoSingleLayer")
Runtime type information.
limitType
Enumerated limiter type.
scalar hydrophilicDryScale_
Length scale applied to deltaWet_ to determine when a wet.
A class for handling words, derived from Foam::string.
tmp< scalarField > qconvw(const label patchi) const
Return the convective heat energy from film to wall.
volScalarField kappa_
Thermal conductivity [W/m/K].
const PtrList< volScalarField > & YPrimary() const
Specie mass fractions [0-1].
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package, and provides:
scalar hydrophilicWetScale_
Length scale applied to deltaWet_ to determine when a dry.
virtual const volScalarField & Ts() const
Return the film surface temperature [K].
const phaseChangeModel & phaseChange() const
Return const access to the phase change model.
const SLGThermo & thermo_
Reference to the SLGThermo.
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.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
volScalarField primaryEnergyTrans_
Film energy transfer.
virtual void correctThermoFields()
Correct the thermo fields.
autoPtr< filmRadiationModel > radiation_
Radiation.
virtual bool read()
Read control parameters from dictionary.
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'.
volScalarField Cp_
Specific heat capacity [J/kg/K].
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
virtual ~thermoSingleLayer()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
virtual void preEvolveRegion()
Pre-evolve film hook.
PtrList< volScalarField > YPrimary_
List of specie mass fractions [0-1].
virtual const volScalarField & hs() const
Return the film sensible enthalpy [J/kg].
autoPtr< filmViscosityModel > viscosity_
Viscosity model.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type.
A class for managing temporary objects.
const filmRadiationModel & radiation() const
Return const access to the radiation model.
Base class for film radiation models.
scalarMinMax Tbounds_
Temperature limits (optional)
const SLGThermo & thermo() const
Return const reference to the SLGThermo object.
virtual void correctHsForMappedT()
Correct sensible enthalpy for mapped temperature fields.
volScalarField hs_
Sensible enthalpy [J/kg].
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.
virtual const volScalarField & T() const
Return the film mean temperature [K].
virtual const volScalarField & Tw() const
Return the film wall temperature [K].