39 #ifndef thermoSingleLayer_H 40 #define thermoSingleLayer_H 49 namespace regionModels
51 namespace surfaceFilmModels
55 class filmViscosityModel;
56 class heatTransferModel;
57 class phaseChangeModel;
58 class filmRadiationModel;
245 const word& modelType,
248 const word& regionType,
323 const scalar massSource,
324 const vector& momentumSource,
325 const scalar pressureSource,
326 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 bewteen wall and film [W/m2/K].
virtual void correctAlpha()
Correct film coverage field.
virtual const volScalarField & Cp() const
Return the film specific heat capacity [J/kg/K].
volScalarField TPrimary_
Temperature / [K].
virtual const volScalarField & kappa() const
Return the film thermal conductivity [W/m/K].
autoPtr< phaseChangeModel > phaseChange_
Phase change.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void resetPrimaryRegionSourceTerms()
Reset source term fields.
scalar Tmax_
Maximum temperature limit (optional)
virtual void transferPrimaryRegionSourceFields()
Transfer source fields from the primary region to the film region.
const volScalarField & TPrimary() const
Temperature / [K].
virtual tmp< DimensionedField< scalar, volMesh > > Sh() const
Return enthalpy source - Eulerian phase only.
const dimensionedVector & g() const
Return the accleration due to gravity.
bool hydrophilic_
Activation flag.
const volScalarField & hsSp() const
Energy / [J/m2/s].
virtual void transferPrimaryRegionThermoFields()
Transfer thermo fields from the primary region to the film region.
virtual void solveEnergy()
Solve energy equation.
const volScalarField & hsSpPrimary() const
Energy / [J/m2/s].
autoPtr< heatTransferModel > htcs_
Heat transfer coefficient bewteen film surface and primary.
virtual tmp< DimensionedField< scalar, volMesh > > Srho() const
Return total mass source - Eulerian phase only.
virtual void updateSurfaceTemperatures()
Correct the film surface and wall temperatures.
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.
volScalarField primaryEnergyPCTrans_
Film energy evolved via phase change.
virtual void info()
Provide some feedback.
volScalarField hsSp_
Energy / [J/m2/s].
virtual void updateSubmodels()
Update the film sub-models.
tmp< scalarField > Qconvp(const label patchi) const
Return the convective heat energy from primary region to film.
volScalarField T_
Temperature - mean / [K].
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.
virtual tmp< fvScalarMatrix > q(volScalarField &hs) const
Return the wall/surface heat transfer term for the enthalpy equation.
volScalarField kappa_
Thermal conductivity / [W/m/K].
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.
const SLGThermo & thermo() const
Return const reference to the SLGThermo object.
scalar Tmin_
Minimum temperature limit (optional)
virtual tmp< volScalarField > primaryMassTrans() const
Return mass transfer source - Eulerian phase only.
const SLGThermo & thermo_
Reference to the SLGThermo.
virtual const volScalarField & T() const
Return the film mean temperature [K].
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.
const PtrList< volScalarField > & YPrimary() const
Specie mass fractions / [0-1].
const filmRadiationModel & radiation() const
Return const access to the radiation model.
virtual void correctThermoFields()
Correct the thermo fields.
autoPtr< filmRadiationModel > radiation_
Radiation.
virtual bool read()
Read control parameters from dictionary.
virtual const volScalarField & Tw() const
Return the film wall temperature [K].
scalar deltaWet_
Threshold film thickness beyond which the film is considered 'wet'.
volScalarField Cp_
Specific heat capacity / [J/kg/K].
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.
const heatTransferModel & htcs() const
Return const access to the (surface) heat transfer model.
virtual const volScalarField & Ts() const
Return the film surface temperature [K].
PtrList< volScalarField > YPrimary_
List of specie mass fractions / [0-1].
const heatTransferModel & htcw() const
Return const access to the (wall) heat transfer model.
virtual const volScalarField & hs() const
Return the film sensible enthalpy [J/kg].
autoPtr< filmViscosityModel > viscosity_
Viscosity model.
volScalarField primaryMassPCTrans_
Film mass evolved via phase change.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
virtual void correctHsForMappedT()
Correct sensible enthalpy for mapped temperature fields.
volScalarField hs_
Sensible enthalpy / [J/kg].
tmp< scalarField > Qconvw(const label patchi) const
Return the convective heat energy from film to wall.
const phaseChangeModel & phaseChange() const
Return const access to the phase change model.