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")
 Runtime type information. More...
 
 fixedFluxPressureFvPatchScalarField (const fvPatch &, const DimensionedField< scalar, volMesh > &)
 Construct from patch and internal field. 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 &)
 Construct as copy. More...
 
virtual tmp< fvPatchScalarFieldclone () const
 Construct and return a clone. More...
 
 fixedFluxPressureFvPatchScalarField (const fixedFluxPressureFvPatchScalarField &, 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 (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:

myPatch
{
    type            fixedFluxPressure;
}
See also
Foam::fixedGradientFvPatchField
Source files

Definition at line 65 of file fixedFluxPressureFvPatchScalarField.H.

Constructor & Destructor Documentation

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

Construct from patch and internal field.

Definition at line 35 of file fixedFluxPressureFvPatchScalarField.C.

Referenced by fixedFluxPressureFvPatchScalarField::clone(), and fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().

Here is the caller graph for this function:

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

Construct from patch, internal field and dictionary.

Definition at line 77 of file fixedFluxPressureFvPatchScalarField.C.

References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField(), dictionary::found(), scalarField(), and fvPatch::size().

Here is the call graph for this function:

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 46 of file fixedFluxPressureFvPatchScalarField.C.

References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField(), Foam::notNull(), and List< Type >::size().

Here is the call graph for this function:

Construct as copy.

Definition at line 103 of file fixedFluxPressureFvPatchScalarField.C.

References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().

Here is the call graph for this function:

Construct as copy setting internal field reference.

Definition at line 113 of file fixedFluxPressureFvPatchScalarField.C.

References fixedFluxPressureFvPatchScalarField::updateCoeffs().

Here is the call graph for this function:

Member Function Documentation

TypeName ( "fixedFluxPressure"  )

Runtime type information.

virtual tmp<fvPatchScalarField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 115 of file fixedFluxPressureFvPatchScalarField.H.

References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField().

Here is the call graph for this function:

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

Construct and return a clone setting internal field reference.

Definition at line 132 of file fixedFluxPressureFvPatchScalarField.H.

References fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField(), Foam::setSnGrad(), fixedFluxPressureFvPatchScalarField::updateCoeffs(), and fixedFluxPressureFvPatchScalarField::write().

Here is the call graph for this function:

void updateCoeffs ( const scalarField snGradp)
virtual

Update the patch pressure gradient field from the given snGradp.

Definition at line 126 of file fixedFluxPressureFvPatchScalarField.C.

void updateCoeffs ( )
virtual

Update the patch pressure gradient field.

Definition at line 142 of file fixedFluxPressureFvPatchScalarField.C.

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

Referenced by fixedFluxPressureFvPatchScalarField::clone(), fixedFluxPressureFvPatchScalarField::fixedFluxPressureFvPatchScalarField(), and Foam::setSnGrad().

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( Ostream os) const
virtual

Write.

Definition at line 159 of file fixedFluxPressureFvPatchScalarField.C.

References Foam::makePatchTypeField(), and write().

Referenced by fixedFluxPressureFvPatchScalarField::clone().

Here is the call graph for this function:

Here is the caller graph for this function:


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