function1Temperature Class Reference

Saturation vapour temperature in terms of the vapour pressure (in Pa). The saturation temperature in Kelvins is specified as a Foam::Function1 type, to enable use of, e.g. constant, polynomial, table values. More...

Inheritance diagram for function1Temperature:
Collaboration diagram for function1Temperature:

Public Member Functions

 TypeName ("function1")
 Runtime type information. More...
 
 function1Temperature (const dictionary &dict)
 Construct from a dictionary and an interface. More...
 
virtual ~function1Temperature ()
 Destructor. More...
 
virtual tmp< scalarFieldTsat (const scalarField &p) const
 Saturation temperature for scalarField. More...
 
virtual tmp< scalarFieldTsatPrime (const scalarField &p) const
 Saturation temperature derivative w.r.t. pressure for scalarField. More...
 
- Public Member Functions inherited from saturationTemperatureModel
 TypeName ("saturationTemperatureModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, saturationTemperatureModel, dictionary,(const dictionary &dict),(dict))
 Declare runtime construction. More...
 
 saturationTemperatureModel ()
 Default construct. More...
 
virtual ~saturationTemperatureModel ()
 Destructor. More...
 
virtual tmp< volScalarField::InternalTsat (const volScalarField::Internal &p) const
 Saturation temperature for volScalarField::Internal. More...
 
virtual tmp< volScalarField::InternalTsatPrime (const volScalarField::Internal &p) const
 
virtual tmp< volScalarFieldTsat (const volScalarField &p) const
 Saturation temperature for volScalarField. More...
 
virtual tmp< volScalarFieldTsatPrime (const volScalarField &p) const
 
template<class FieldType >
Foam::tmp< FieldType > Tsat (const FieldType &p) const
 
template<class FieldType >
Foam::tmp< FieldType > TsatPrime (const FieldType &p) const
 

Additional Inherited Members

- Static Public Member Functions inherited from saturationTemperatureModel
static autoPtr< saturationTemperatureModelNew (const dictionary &dict)
 Select with dictionary. More...
 
static autoPtr< saturationTemperatureModelNew (const word &name, const dictionary &dict)
 Select with name within a dictionary. More...
 

Detailed Description

Saturation vapour temperature in terms of the vapour pressure (in Pa). The saturation temperature in Kelvins is specified as a Foam::Function1 type, to enable use of, e.g. constant, polynomial, table values.

Examples:

    type function1;
    function polynomial
    (
        308.0422
        0.0015096
        -1.61589e-8
        1.114106e-13
        -4.52216e-19
        1.05192e-24
        -1.2953e-30
        6.5365e-37
    );
    type function1;
    function
    {
        type                table;
        file                "filename.csv";
        format              csv;
        nHeaderLine         1;
        columns             (0 1);
        separator           ",";
        mergeSeparators     no;
        outOfBounds         clamp;
        interpolationScheme linear;
    }
Source files

Definition at line 86 of file function1Temperature.H.

Constructor & Destructor Documentation

◆ function1Temperature()

function1Temperature ( const dictionary dict)

Construct from a dictionary and an interface.

Definition at line 48 of file function1Temperature.C.

◆ ~function1Temperature()

~function1Temperature ( )
virtual

Destructor.

Definition at line 63 of file function1Temperature.C.

Member Function Documentation

◆ TypeName()

TypeName ( "function1"  )

Runtime type information.

◆ Tsat()

Foam::tmp< Foam::scalarField > Tsat ( const scalarField p) const
virtual

Saturation temperature for scalarField.

Implements saturationTemperatureModel.

Definition at line 70 of file function1Temperature.C.

References p.

◆ TsatPrime()

Foam::tmp< Foam::scalarField > TsatPrime ( const scalarField p) const
virtual

Saturation temperature derivative w.r.t. pressure for scalarField.

Implements saturationTemperatureModel.

Definition at line 80 of file function1Temperature.C.

References Foam::gAverage(), and p.

Here is the call graph for this function:

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