fixedRhoFvPatchScalarField Class Reference

Foam::fixedRhoFvPatchScalarField. More...

Inheritance diagram for fixedRhoFvPatchScalarField:
Collaboration diagram for fixedRhoFvPatchScalarField:

Public Member Functions

 TypeName ("fixedRho")
 Runtime type information. 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 &, const DimensionedField< scalar, volMesh > &)
 Copy constructor 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...
 

Detailed Description

Foam::fixedRhoFvPatchScalarField.

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

\[ \rho = \psi p \]

where

$ p $ = pressure [Pa]
$ \rho $ = density [kg/m^3]
Usage
Property Description Required Default value
p Pressure field name no p
psi Compressibility field name no psi

Example of the boundary condition specification:

    <patchName>
    {
        type            fixedRho;
    }
Source files

Definition at line 100 of file fixedRhoFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ fixedRhoFvPatchScalarField() [1/3]

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

Construct from patch, internal field and dictionary.

Definition at line 33 of file fixedRhoFvPatchScalarField.C.

Referenced by fixedRhoFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ fixedRhoFvPatchScalarField() [2/3]

fixedRhoFvPatchScalarField ( const fixedRhoFvPatchScalarField ptf,
const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF,
const fvPatchFieldMapper mapper 
)

Construct by mapping given fixedRhoFvPatchScalarField.

onto a new patch

Definition at line 46 of file fixedRhoFvPatchScalarField.C.

◆ fixedRhoFvPatchScalarField() [3/3]

fixedRhoFvPatchScalarField ( const fixedRhoFvPatchScalarField frpsf,
const DimensionedField< scalar, volMesh > &  iF 
)

Copy constructor setting internal field reference.

Definition at line 60 of file fixedRhoFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fixedRho"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 147 of file fixedRhoFvPatchScalarField.H.

References fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Definition at line 74 of file fixedRhoFvPatchScalarField.C.

References Foam::operator==().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 93 of file fixedRhoFvPatchScalarField.C.

References fvPatchField< Type >::write(), and Foam::writeEntry().

Here is the call graph for this function:

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