Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
humidityTemperatureCoupledMixedFvPatchScalarField Class Reference
Inheritance diagram for humidityTemperatureCoupledMixedFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for humidityTemperatureCoupledMixedFvPatchScalarField:
Collaboration graph
[legend]

Public Types

enum  massTransferMode { mtConstantMass, mtCondensation, mtEvaporation, mtCondensationAndEvaporation }
 Modes of mass transfer. More...
 
- Public Types inherited from temperatureCoupledBase
enum  KMethodType { mtFluidThermo, mtSolidThermo, mtDirectionalSolidThermo, mtLookup }
 Type of supplied Kappa. More...
 

Public Member Functions

 TypeName ("humidityTemperatureCoupledMixed")
 Runtime type information. More...
 
 humidityTemperatureCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 humidityTemperatureCoupledMixedFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 humidityTemperatureCoupledMixedFvPatchScalarField (const humidityTemperatureCoupledMixedFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 humidityTemperatureCoupledMixedFvPatchScalarField (const humidityTemperatureCoupledMixedFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual void autoMap (const fvPatchFieldMapper &)
 Map (and resize as needed) from self given a mapping object. More...
 
virtual void rmap (const fvPatchScalarField &, const labelList &)
 Reverse map the given fvPatchField onto this fvPatchField. More...
 
const scalarField myKDelta () const
 Return myKDelta. More...
 
const scalarField mpCpTp () const
 Return mpCpTp. More...
 
const scalarField dmHfg () const
 Return dmHfg. More...
 
virtual void updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from temperatureCoupledBase
 temperatureCoupledBase (const fvPatch &patch, const word &calculationMethod, const word &kappaName, const word &alphaAniName)
 Construct from patch and K name. More...
 
 temperatureCoupledBase (const fvPatch &patch, const dictionary &dict)
 Construct from patch and dictionary. More...
 
 temperatureCoupledBase (const fvPatch &patch, const temperatureCoupledBase &base)
 Construct from patch and temperatureCoupledBase. More...
 
word KMethod () const
 Method to obtain K. More...
 
const wordkappaName () const
 Name of thermal conductivity field. More...
 
tmp< scalarFieldkappa (const scalarField &Tp) const
 Given patch temperature calculate corresponding K field. More...
 
void write (Ostream &) const
 Write. More...
 

Private Member Functions

scalar Sh (const scalar Re, const scalar Sc) const
 Calculation of Sh. More...
 
scalar htcCondensation (const scalar TSat, const scalar Re) const
 Calculation of htc from the condensed surface. More...
 
volScalarFieldthicknessField (const word &, const fvMesh &)
 Lookup (or create) thickness field for output. More...
 

Private Attributes

massTransferMode mode_
 Operating mode. More...
 
const word pName_
 Name of the pressure field. More...
 
const word UName_
 Name of the velocity field. More...
 
const word rhoName_
 Name of the density field. More...
 
const word muName_
 Name of the dynamic viscosity field. More...
 
const word TnbrName_
 Name of temperature field on the neighbour region. More...
 
const word QrNbrName_
 Name of the radiative heat flux in the neighbout region. More...
 
const word QrName_
 Name of the radiative heat flux field. More...
 
const word specieName_
 Name of the species on which the mass transfered (default H2O) More...
 
autoPtr< liquidPropertiesliquid_
 Liquid properties. More...
 
dictionary liquidDict_
 Liquid dictionary. More...
 
scalarField mass_
 Mass accumulated on faces. More...
 
scalar Tvap_
 Vaporization temperature. More...
 
scalarField myKDelta_
 Cache myDelta. More...
 
scalarField dmHfg_
 Phase change energy. More...
 
scalarField mpCpTp_
 Thermal inertia. More...
 
scalar Mcomp_
 Average molecular weight for the carrier mixture in the gas phase. More...
 
scalar L_
 Characteristic length scale. More...
 
bool fluid_
 Fluid side. More...
 
scalarField cp_
 Cp field for inert mode. More...
 
scalarField thickness_
 Thickness field for inert mode. More...
 
scalarField rho_
 Density field for inert mode. More...
 

Static Private Attributes

static const NamedEnum< massTransferMode, 4 > massModeTypeNames_
 

Additional Inherited Members

- Protected Attributes inherited from temperatureCoupledBase
const fvPatchpatch_
 Underlying patch. More...
 
const KMethodType method_
 How to get K. More...
 
const word kappaName_
 Name of thermal conductivity field (if looked up from database) More...
 
const word alphaAniName_
 Name of the non-Isotropic alpha (default: Anialpha) More...
 
- Static Protected Attributes inherited from temperatureCoupledBase
static const NamedEnum< KMethodType, 4 > KMethodTypeNames_
 

Detailed Description

Definition at line 180 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Member Enumeration Documentation

◆ massTransferMode

Modes of mass transfer.

Enumerator
mtConstantMass 
mtCondensation 
mtEvaporation 
mtCondensationAndEvaporation 

Definition at line 190 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ humidityTemperatureCoupledMixedFvPatchScalarField() [1/4]

Construct from patch and internal field.

Definition at line 139 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

◆ humidityTemperatureCoupledMixedFvPatchScalarField() [2/4]

humidityTemperatureCoupledMixedFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 213 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

References dict, dimensionedInternalField(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, Foam::compressible::New(), Foam::nl, p, readScalar, and scalarField().

Here is the call graph for this function:

◆ humidityTemperatureCoupledMixedFvPatchScalarField() [3/4]

Construct by mapping given.

turbulentTemperatureCoupledBaffleMixedFvPatchScalarField onto a new patch

Definition at line 177 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

◆ humidityTemperatureCoupledMixedFvPatchScalarField() [4/4]

Construct as copy setting internal field reference.

Definition at line 338 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

Member Function Documentation

◆ Sh()

Foam::scalar Sh ( const scalar  Re,
const scalar  Sc 
) const
private

Calculation of Sh.

Definition at line 64 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

References Foam::cbrt(), Foam::pow(), Foam::Re(), and Foam::sqrt().

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ htcCondensation()

Foam::scalar htcCondensation ( const scalar  TSat,
const scalar  Re 
) const
private

Calculation of htc from the condensed surface.

Definition at line 82 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the caller graph for this function:

◆ thicknessField()

Foam::volScalarField & thicknessField ( const word fieldName,
const fvMesh mesh 
)
private

Lookup (or create) thickness field for output.

Definition at line 100 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

References Foam::dimLength, mesh, and tmp::ptr().

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "humidityTemperatureCoupledMixed"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 324 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

◆ clone() [2/2]

virtual tmp<fvPatchScalarField> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 344 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

◆ autoMap()

void autoMap ( const fvPatchFieldMapper m)
virtual

Map (and resize as needed) from self given a mapping object.

Definition at line 373 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

◆ rmap()

void rmap ( const fvPatchScalarField ptf,
const labelList addr 
)
virtual

◆ myKDelta()

const scalarField myKDelta ( ) const
inline

Return myKDelta.

Definition at line 378 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

References humidityTemperatureCoupledMixedFvPatchScalarField::myKDelta_.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the caller graph for this function:

◆ mpCpTp()

const scalarField mpCpTp ( ) const
inline

Return mpCpTp.

Definition at line 384 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

References humidityTemperatureCoupledMixedFvPatchScalarField::mpCpTp_.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the caller graph for this function:

◆ dmHfg()

const scalarField dmHfg ( ) const
inline

Return dmHfg.

Definition at line 390 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

References humidityTemperatureCoupledMixedFvPatchScalarField::dmHfg_.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

Here is the caller graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 419 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

References Foam::constant::atomic::alpha, Foam::constant::physicoChemical::b, GeometricField::boundaryField(), Foam::constant::universal::c, Foam::cp(), humidityTemperatureCoupledMixedFvPatchScalarField::cp_, fvPatch::deltaCoeffs(), dimensionedInternalField(), mappedPatchBase::distribute(), humidityTemperatureCoupledMixedFvPatchScalarField::dmHfg(), humidityTemperatureCoupledMixedFvPatchScalarField::dmHfg_, Foam::endl(), humidityTemperatureCoupledMixedFvPatchScalarField::fluid_, forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), fixedGradientFvPatchField< Type >::gradient(), Foam::gSum(), humidityTemperatureCoupledMixedFvPatchScalarField::htcCondensation(), patchIdentifier::index(), Foam::Info, temperatureCoupledBase::kappa(), humidityTemperatureCoupledMixedFvPatchScalarField::L_, humidityTemperatureCoupledMixedFvPatchScalarField::liquid_, Foam::log(), fvPatch::lookupPatchField(), Foam::mag(), humidityTemperatureCoupledMixedFvPatchScalarField::mass_, Foam::max(), humidityTemperatureCoupledMixedFvPatchScalarField::Mcomp_, mesh, Foam::min(), humidityTemperatureCoupledMixedFvPatchScalarField::mode_, humidityTemperatureCoupledMixedFvPatchScalarField::mpCpTp(), humidityTemperatureCoupledMixedFvPatchScalarField::mpCpTp_, humidityTemperatureCoupledMixedFvPatchScalarField::mtCondensation, humidityTemperatureCoupledMixedFvPatchScalarField::mtCondensationAndEvaporation, humidityTemperatureCoupledMixedFvPatchScalarField::mtConstantMass, humidityTemperatureCoupledMixedFvPatchScalarField::mtEvaporation, humidityTemperatureCoupledMixedFvPatchScalarField::muName_, humidityTemperatureCoupledMixedFvPatchScalarField::myKDelta(), humidityTemperatureCoupledMixedFvPatchScalarField::myKDelta_, fvPatch::name(), IOobject::name(), Foam::nl, fvPatchField< Type >::patchInternalField(), humidityTemperatureCoupledMixedFvPatchScalarField::pName_, pSat, Qr(), humidityTemperatureCoupledMixedFvPatchScalarField::QrName_, humidityTemperatureCoupledMixedFvPatchScalarField::QrNbrName_, Foam::Re(), Foam::refCast(), RH(), humidityTemperatureCoupledMixedFvPatchScalarField::rho_, rhof(), humidityTemperatureCoupledMixedFvPatchScalarField::rhoName_, mappedPatchBase::sampleMesh(), mappedPatchBase::samplePolyPatch(), humidityTemperatureCoupledMixedFvPatchScalarField::Sh(), humidityTemperatureCoupledMixedFvPatchScalarField::specieName_, humidityTemperatureCoupledMixedFvPatchScalarField::thickness_, humidityTemperatureCoupledMixedFvPatchScalarField::thicknessField(), humidityTemperatureCoupledMixedFvPatchScalarField::TnbrName_, humidityTemperatureCoupledMixedFvPatchScalarField::Tvap_, Uf, and humidityTemperatureCoupledMixedFvPatchScalarField::UName_.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 734 of file humidityTemperatureCoupledMixedFvPatchScalarField.C.

References token::END_STATEMENT, Foam::nl, token::TAB, write(), temperatureCoupledBase::write(), and Ostream::writeKeyword().

Here is the call graph for this function:

Field Documentation

◆ massModeTypeNames_

◆ mode_

massTransferMode mode_
private

◆ pName_

const word pName_
private

◆ UName_

const word UName_
private

◆ rhoName_

const word rhoName_
private

◆ muName_

const word muName_
private

Name of the dynamic viscosity field.

Definition at line 221 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

◆ TnbrName_

const word TnbrName_
private

Name of temperature field on the neighbour region.

Definition at line 224 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

◆ QrNbrName_

const word QrNbrName_
private

Name of the radiative heat flux in the neighbout region.

Definition at line 227 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

◆ QrName_

const word QrName_
private

Name of the radiative heat flux field.

Definition at line 230 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

◆ specieName_

const word specieName_
private

Name of the species on which the mass transfered (default H2O)

Definition at line 233 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

◆ liquid_

autoPtr<liquidProperties> liquid_
private

◆ liquidDict_

dictionary liquidDict_
private

Liquid dictionary.

Definition at line 240 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

◆ mass_

scalarField mass_
private

◆ Tvap_

scalar Tvap_
private

◆ myKDelta_

scalarField myKDelta_
private

◆ dmHfg_

scalarField dmHfg_
private

◆ mpCpTp_

scalarField mpCpTp_
private

◆ Mcomp_

scalar Mcomp_
private

Average molecular weight for the carrier mixture in the gas phase.

Definition at line 258 of file humidityTemperatureCoupledMixedFvPatchScalarField.H.

Referenced by humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs().

◆ L_

scalar L_
private

◆ fluid_

bool fluid_
private

◆ cp_

scalarField cp_
private

◆ thickness_

scalarField thickness_
private

◆ rho_

scalarField rho_
private

The documentation for this class was generated from the following files: