Go to the documentation of this file.
43 #ifndef thermoSingleLayer_H
44 #define thermoSingleLayer_H
53 namespace regionModels
55 namespace surfaceFilmModels
59 class filmViscosityModel;
60 class heatTransferModel;
61 class phaseChangeModel;
62 class filmRadiationModel;
244 const word& modelType,
247 const word& regionType,
315 const scalar massSource,
316 const vector& momentumSource,
317 const scalar pressureSource,
318 const scalar energySource
TypeName("thermoSingleLayer")
Runtime type information.
virtual void solveEnergy()
Solve energy equation.
volScalarField Tw_
Temperature - wall [K].
virtual bool read()
Read control parameters from dictionary.
virtual void resetPrimaryRegionSourceTerms()
Reset source term fields.
virtual void info()
Provide some feedback.
virtual const volScalarField & hs() const
Return the film sensible enthalpy [J/kg].
A class for handling words, derived from Foam::string.
virtual void correctHsForMappedT()
Correct sensible enthalpy for mapped temperature fields.
Base class for film heat transfer models.
const PtrList< volScalarField > & YPrimary() const
Specie mass fractions [0-1].
virtual ~thermoSingleLayer()
Destructor.
Thermo package for (S)olids (L)iquids and (G)ases Takes reference to thermo package,...
autoPtr< filmViscosityModel > viscosity_
Viscosity model.
autoPtr< heatTransferModel > htcs_
Heat transfer coefficient between film surface and primary.
A class for managing temporary objects.
const heatTransferModel & htcs() const
Return const access to the (surface) heat transfer model.
volScalarField primaryEnergyTrans_
Film energy transfer.
const SLGThermo & thermo() const
Return const reference to the SLGThermo object.
autoPtr< phaseChangeModel > phaseChange_
Phase change.
virtual const volScalarField & Cp() const
Return the film specific heat capacity [J/kg/K].
Kinematic form of single-cell layer surface film model.
virtual const volScalarField & kappa() const
Return the film thermal conductivity [W/m/K].
volScalarField T_
Temperature - mean [K].
volScalarField Cp_
Specific heat capacity [J/kg/K].
scalar hydrophilicDryScale_
Length scale applied to deltaWet_ to determine when a wet.
tmp< scalarField > qconvp(const label patchi) const
Return the convective heat energy from primary region to film.
const filmRadiationModel & radiation() const
Return const access to the radiation model.
const dimensionedVector & g() const
Return the acceleration due to gravity.
virtual void correctThermoFields()
Correct the thermo fields.
virtual void evolveRegion()
Evolve the film equations.
scalar deltaWet_
Threshold film thickness beyond which the film is considered 'wet'.
volScalarField hsSp_
Energy [J/m2/s].
virtual void transferPrimaryRegionThermoFields()
Transfer thermo fields from the primary region to the film region.
Thermodynamic form of single-cell layer surface film model.
const SLGThermo & thermo_
Reference to the SLGThermo.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
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 Ts_
Temperature - surface [K].
virtual void updateSubmodels()
Update the film sub-models.
virtual const volScalarField & T() const
Return the film mean temperature [K].
PtrList< volScalarField > YPrimary_
List of specie mass fractions [0-1].
volScalarField TPrimary_
Temperature [K].
Mesh data needed to do the Finite Volume discretisation.
scalar Tmin_
Minimum temperature limit (optional)
virtual tmp< fvScalarMatrix > q(volScalarField &hs) const
Return the wall/surface heat transfer term for the enthalpy equation.
virtual void preEvolveRegion()
Pre-evolve film hook.
const volScalarField & hsSp() const
Energy [J/m2/s].
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
volScalarField hsSpPrimary_
Energy [J/m2/s].
volScalarField hs_
Sensible enthalpy [J/kg].
const volScalarField & hsSpPrimary() const
Energy [J/m2/s].
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const phaseChangeModel & phaseChange() const
Return const access to the phase change model.
scalar Tmax_
Maximum temperature limit (optional)
virtual tmp< volScalarField::Internal > Srho() const
Return total mass source - Eulerian phase only.
const heatTransferModel & htcw() const
Return const access to the (wall) heat transfer model.
tmp< scalarField > qconvw(const label patchi) const
Return the convective heat energy from film to wall.
volScalarField kappa_
Thermal conductivity [W/m/K].
bool hydrophilic_
Activation flag.
autoPtr< filmRadiationModel > radiation_
Radiation.
virtual void correctAlpha()
Correct film coverage field.
scalar hydrophilicWetScale_
Length scale applied to deltaWet_ to determine when a dry.
const volScalarField & TPrimary() const
Temperature [K].
virtual tmp< volScalarField::Internal > Sh() const
Return enthalpy source - Eulerian phase only.
virtual const volScalarField & Tw() const
Return the film wall temperature [K].
autoPtr< heatTransferModel > htcw_
Heat transfer coefficient between wall and film [W/m2/K].
virtual const volScalarField & Ts() const
Return the film surface temperature [K].
Base class for film radiation models.
virtual void updateSurfaceTemperatures()
Correct the film surface and wall temperatures.
virtual void transferPrimaryRegionSourceFields()
Transfer source fields from the primary region to the film region.
Base class for surface film phase change models.