Public Member Functions | Private Attributes
fixedRhoFvPatchScalarField Class Reference

Foam::fixedRhoFvPatchScalarField. More...

Inheritance diagram for fixedRhoFvPatchScalarField:
Inheritance graph
[legend]
Collaboration diagram for fixedRhoFvPatchScalarField:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("fixedRho")
 Runtime type information. More...
 
 fixedRhoFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. More...
 
 fixedRhoFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 fixedRhoFvPatchScalarField (const fixedRhoFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given fixedRhoFvPatchScalarField. More...
 
 fixedRhoFvPatchScalarField (const fixedRhoFvPatchScalarField &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 fixedRhoFvPatchScalarField (const fixedRhoFvPatchScalarField &, 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 updateCoeffs ()
 Update the coefficients associated with the patch field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Private Attributes

word pName_
 Pressure field name, default = "p". More...
 
word psiName_
 Compressibility field name, default = "thermo:psi". More...
 

Detailed Description

Foam::fixedRhoFvPatchScalarField.

This boundary condition provides a fixed density inlet condition for compressible solvers, where the density of calculated using:

\f{ \rho = \psi p \f]

where

$ p $ = pressure [Pa]
$ \rho $ = density [kg/m3]


Patch usage

Property Description Required Default value
pName Pressure field name no p
psiName Compressibility field name no thermo:psi

Example of the boundary condition specification:

    myPatch
    {
        type            fixedRho;
    }
Source files

Definition at line 104 of file fixedRhoFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ fixedRhoFvPatchScalarField() [1/5]

fixedRhoFvPatchScalarField ( const fvPatch ,
const DimensionedField< scalar, volMesh > &   
)

Construct from patch and internal field.

Referenced by fixedRhoFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ fixedRhoFvPatchScalarField() [2/5]

fixedRhoFvPatchScalarField ( const fvPatch ,
const DimensionedField< scalar, volMesh > &  ,
const dictionary  
)

Construct from patch, internal field and dictionary.

◆ fixedRhoFvPatchScalarField() [3/5]

fixedRhoFvPatchScalarField ( const fixedRhoFvPatchScalarField ,
const fvPatch ,
const DimensionedField< scalar, volMesh > &  ,
const fvPatchFieldMapper  
)

Construct by mapping given fixedRhoFvPatchScalarField.

onto a new patch

◆ fixedRhoFvPatchScalarField() [4/5]

Construct as copy.

◆ fixedRhoFvPatchScalarField() [5/5]

Construct as copy setting internal field reference.

Member Function Documentation

◆ TypeName()

TypeName ( "fixedRho"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 160 of file fixedRhoFvPatchScalarField.H.

References fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField().

Here is the call graph for this function:

◆ 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 177 of file fixedRhoFvPatchScalarField.H.

References fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

virtual void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

◆ write()

virtual void write ( Ostream ) const
virtual

Write.

Field Documentation

◆ pName_

word pName_
private

Pressure field name, default = "p".

Definition at line 114 of file fixedRhoFvPatchScalarField.H.

◆ psiName_

word psiName_
private

Compressibility field name, default = "thermo:psi".

Definition at line 117 of file fixedRhoFvPatchScalarField.H.


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