uniformInletOutletEnergyTemperatureFvScalarFieldSource Class Reference

This source condition is applied to the temperature field, but provides a uniform fixed energy into the energy equation when the source is positive, and the internal value when it is negative (i.e., a sink) More...

Inheritance diagram for uniformInletOutletEnergyTemperatureFvScalarFieldSource:
Collaboration diagram for uniformInletOutletEnergyTemperatureFvScalarFieldSource:

Public Member Functions

 TypeName ("uniformInletOutletEnergyTemperature")
 Runtime type information. More...
 
 uniformInletOutletEnergyTemperatureFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 uniformInletOutletEnergyTemperatureFvScalarFieldSource (const uniformInletOutletEnergyTemperatureFvScalarFieldSource &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual autoPtr< fvScalarFieldSource > clone (const DimensionedField< scalar, volMesh > &iF) const
 Construct and return a clone setting internal field reference. More...
 
virtual ~uniformInletOutletEnergyTemperatureFvScalarFieldSource ()
 Destructor. More...
 
virtual tmp< scalarFieldsourceHeValue (const fvSource &) const
 Return the source energy value. More...
 
virtual tmp< scalarFieldinternalCoeff (const fvSource &) const
 Return the internal coefficient. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from energyCalculatedTemperatureFvScalarFieldSource
 TypeName ("energyCalculatedTemperature")
 Runtime type information. More...
 
 energyCalculatedTemperatureFvScalarFieldSource (const DimensionedField< scalar, volMesh > &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 energyCalculatedTemperatureFvScalarFieldSource (const energyCalculatedTemperatureFvScalarFieldSource &, const DimensionedField< scalar, volMesh > &)
 Copy constructor setting internal field reference. More...
 
virtual ~energyCalculatedTemperatureFvScalarFieldSource ()
 Destructor. More...
 
virtual tmp< scalarFieldsourceValue (const fvSource &) const
 Return the source value. Not implemented. More...
 

Detailed Description

This source condition is applied to the temperature field, but provides a uniform fixed energy into the energy equation when the source is positive, and the internal value when it is negative (i.e., a sink)

Usage
Property Description Required Default value
uniformInletHe uniform inlet energy value yes

Example of the boundary condition specification:

    <patchName>
    {
        type            uniformInletOutletEnergyTemperature;
        uniformInletHe  3700000;
    }
Source files

Definition at line 77 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.H.

Constructor & Destructor Documentation

◆ uniformInletOutletEnergyTemperatureFvScalarFieldSource() [1/2]

Construct from internal field and dictionary.

Definition at line 34 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.C.

◆ uniformInletOutletEnergyTemperatureFvScalarFieldSource() [2/2]

Copy constructor setting internal field reference.

Definition at line 55 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.C.

◆ ~uniformInletOutletEnergyTemperatureFvScalarFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "uniformInletOutletEnergyTemperature"  )

Runtime type information.

◆ clone()

virtual autoPtr<fvScalarFieldSource> clone ( const DimensionedField< scalar, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 112 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.H.

◆ sourceHeValue()

Foam::tmp< Foam::scalarField > sourceHeValue ( const fvSource source) const
virtual

Return the source energy value.

Implements energyCalculatedTemperatureFvScalarFieldSource.

Definition at line 77 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.C.

References fvSource::nCells().

Here is the call graph for this function:

◆ internalCoeff()

Foam::tmp< Foam::scalarField > internalCoeff ( const fvSource source) const
virtual

Return the internal coefficient.

Definition at line 88 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.C.

References Foam::name(), fvSource::nCells(), Foam::neg0(), and fvSource::source().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 99 of file uniformInletOutletEnergyTemperatureFvScalarFieldSource.C.

References Foam::dimEnergy, Foam::dimMass, Foam::vtkWriteOps::write(), and Foam::writeEntry().

Here is the call graph for this function:

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