Public Member Functions | List of all members
fixedFluxPressureFvPatchScalarField Class Reference

This boundary condition sets the pressure gradient to the provided value such that the flux on the boundary is that specified by the velocity boundary condition. More...

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

Public Member Functions

 TypeName ("fixedFluxPressure")
 
 fixedFluxPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 
 fixedFluxPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &)
 
virtual tmp< fvPatchScalarFieldclone () const
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, const DimensionedField< scalar, volMesh > &)
 
virtual tmp< fvPatchScalarFieldclone (const DimensionedField< scalar, volMesh > &iF) const
 
virtual void updateSnGrad (const scalarField &snGradp)
 
virtual void updateCoeffs ()
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from updateableSnGrad
 updateableSnGrad ()=default
 
virtual ~updateableSnGrad ()=default
 

Detailed Description

This boundary condition sets the pressure gradient to the provided value such that the flux on the boundary is that specified by the velocity boundary condition.

Example of the boundary condition specification:

<patchName>
{
    type            fixedFluxPressure;
}
See also
Foam::fixedGradientFvPatchField
Source files

Definition at line 65 of file fixedFluxPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ fixedFluxPressureFvPatchScalarField() [1/5]

fixedFluxPressureFvPatchScalarField ( const fvPatch p,
const DimensionedField< scalar, volMesh > &  iF 
)

Definition at line 31 of file fixedFluxPressureFvPatchScalarField.C.

Referenced by fixedFluxPressureFvPatchScalarField::clone().

Here is the caller graph for this function:

◆ fixedFluxPressureFvPatchScalarField() [2/5]

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

Definition at line 42 of file fixedFluxPressureFvPatchScalarField.C.

References dict, and p.

◆ fixedFluxPressureFvPatchScalarField() [3/5]

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

Definition at line 69 of file fixedFluxPressureFvPatchScalarField.C.

References Foam::notNull(), and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ fixedFluxPressureFvPatchScalarField() [4/5]

Definition at line 111 of file fixedFluxPressureFvPatchScalarField.C.

◆ fixedFluxPressureFvPatchScalarField() [5/5]

Definition at line 121 of file fixedFluxPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fixedFluxPressure"  )

◆ clone() [1/2]

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

◆ clone() [2/2]

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

◆ updateSnGrad()

void updateSnGrad ( const scalarField snGradp)
virtual

Implements updateableSnGrad.

Definition at line 134 of file fixedFluxPressureFvPatchScalarField.C.

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Definition at line 150 of file fixedFluxPressureFvPatchScalarField.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and timeIndex.

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Definition at line 167 of file fixedFluxPressureFvPatchScalarField.C.

References os(), and Foam::vtk::write().

Here is the call graph for this function:

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