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:
Collaboration diagram for fixedFluxPressureFvPatchScalarField:

Public Member Functions

 TypeName ("fixedFluxPressure")
 Runtime type information. More...
 
 fixedFluxPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, const fvPatch &, const DimensionedField< scalar, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given fixedFluxPressureFvPatchScalarField onto. More...
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &)=delete
 Disallow copy without setting internal field reference. More...
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, 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 (const scalarField &snGradp)
 Update the patch pressure gradient field from the given snGradp. More...
 
virtual void updateCoeffs ()
 Update the patch pressure gradient field. More...
 
virtual void write (Ostream &) const
 Write. More...
 

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 62 of file fixedFluxPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

◆ fixedFluxPressureFvPatchScalarField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 34 of file fixedFluxPressureFvPatchScalarField.C.

References dict, fvPatchField< Type >::operator=(), p, and Foam::Zero.

Referenced by fixedFluxPressureFvPatchScalarField::clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fixedFluxPressureFvPatchScalarField() [2/4]

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

Construct by mapping given fixedFluxPressureFvPatchScalarField onto.

a new patch

Definition at line 57 of file fixedFluxPressureFvPatchScalarField.C.

◆ fixedFluxPressureFvPatchScalarField() [3/4]

Disallow copy without setting internal field reference.

◆ fixedFluxPressureFvPatchScalarField() [4/4]

Copy constructor setting internal field reference.

Definition at line 70 of file fixedFluxPressureFvPatchScalarField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fixedFluxPressure"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Reimplemented in fixedFluxExtrapolatedPressureFvPatchScalarField.

Definition at line 112 of file fixedFluxPressureFvPatchScalarField.H.

References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().

Here is the call graph for this function:

◆ updateCoeffs() [1/2]

void updateCoeffs ( const scalarField snGradp)
virtual

Update the patch pressure gradient field from the given snGradp.

Definition at line 83 of file fixedFluxPressureFvPatchScalarField.C.

◆ updateCoeffs() [2/2]

void updateCoeffs ( )
virtual

Update the patch pressure gradient field.

Definition at line 100 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

Write.

Definition at line 117 of file fixedFluxPressureFvPatchScalarField.C.

References 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: