Public Member Functions | Private Attributes
mappedFlowRateFvPatchVectorField Class Reference

Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area. More...

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

Public Member Functions

 TypeName ("mappedFlowRate")
 Runtime type information. More...
 
 mappedFlowRateFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 mappedFlowRateFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 mappedFlowRateFvPatchVectorField (const mappedFlowRateFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 mappedFlowRateFvPatchVectorField (const mappedFlowRateFvPatchVectorField &)
 Construct as copy. More...
 
virtual tmp< fvPatchVectorFieldclone () const
 Construct and return a clone. More...
 
 mappedFlowRateFvPatchVectorField (const mappedFlowRateFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Construct as copy setting internal field reference. More...
 
virtual tmp< fvPatchVectorFieldclone (const DimensionedField< vector, 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 nbrPhiName_
 Name of the neighbor flux setting the inlet mass flux. More...
 
word phiName_
 Name of the local mass flux. More...
 
word rhoName_
 Name of the density field used to normalize the mass flux. More...
 

Detailed Description

Describes a volumetric/mass flow normal vector boundary condition by its magnitude as an integral over its area.

The inlet mass flux is taken from the neighbour region.

The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi. The current density is used to correct the velocity when applying the mass basis.


Patch usage

Property Description Required Default value
phi flux field name no phi
rho density field name no rho
neigPhi name of flux field on neighbour mesh yes

Example of the boundary condition specification:

    myPatch
    {
        type            mappedFlowRate;
        phi             phi;
        rho             rho;
        neigPhi         phi;
        value           uniform (0 0 0); // placeholder
    }
Source files

Definition at line 98 of file mappedFlowRateFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ mappedFlowRateFvPatchVectorField() [1/5]

Construct from patch and internal field.

Definition at line 36 of file mappedFlowRateFvPatchVectorField.C.

Referenced by mappedFlowRateFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ mappedFlowRateFvPatchVectorField() [2/5]

mappedFlowRateFvPatchVectorField ( const fvPatch p,
const DimensionedField< vector, volMesh > &  iF,
const dictionary dict 
)

Construct from patch, internal field and dictionary.

Definition at line 64 of file mappedFlowRateFvPatchVectorField.C.

◆ mappedFlowRateFvPatchVectorField() [3/5]

Construct by mapping given.

mappedFlowRateFvPatchVectorField onto a new patch

Definition at line 49 of file mappedFlowRateFvPatchVectorField.C.

◆ mappedFlowRateFvPatchVectorField() [4/5]

Construct as copy.

Definition at line 78 of file mappedFlowRateFvPatchVectorField.C.

◆ mappedFlowRateFvPatchVectorField() [5/5]

Construct as copy setting internal field reference.

Definition at line 90 of file mappedFlowRateFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "mappedFlowRate"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 155 of file mappedFlowRateFvPatchVectorField.H.

References mappedFlowRateFvPatchVectorField::mappedFlowRateFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 172 of file mappedFlowRateFvPatchVectorField.H.

References mappedFlowRateFvPatchVectorField::mappedFlowRateFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 184 of file mappedFlowRateFvPatchVectorField.C.

References token::END_STATEMENT, Foam::nl, fvPatchField::write(), and Ostream::writeKeyword().

Here is the call graph for this function:

Field Documentation

◆ nbrPhiName_

word nbrPhiName_
private

Name of the neighbor flux setting the inlet mass flux.

Definition at line 105 of file mappedFlowRateFvPatchVectorField.H.

Referenced by mappedFlowRateFvPatchVectorField::updateCoeffs().

◆ phiName_

word phiName_
private

Name of the local mass flux.

Definition at line 108 of file mappedFlowRateFvPatchVectorField.H.

Referenced by mappedFlowRateFvPatchVectorField::updateCoeffs().

◆ rhoName_

word rhoName_
private

Name of the density field used to normalize the mass flux.

Definition at line 111 of file mappedFlowRateFvPatchVectorField.H.

Referenced by mappedFlowRateFvPatchVectorField::updateCoeffs().


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