mappedFlowRateVelocityFvPatchVectorField Class Reference

This boundary condition maps the flow rate from a neighbouring patch to this patch, then uses it to set a corresponding velocity in a direction normal to the patch. More...

Inheritance diagram for mappedFlowRateVelocityFvPatchVectorField:
Collaboration diagram for mappedFlowRateVelocityFvPatchVectorField:

Public Member Functions

 TypeName ("mappedFlowRateVelocity")
 Runtime type information. More...
 
 mappedFlowRateVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 mappedFlowRateVelocityFvPatchVectorField (const mappedFlowRateVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 Construct by mapping given. More...
 
 mappedFlowRateVelocityFvPatchVectorField (const mappedFlowRateVelocityFvPatchVectorField &)=delete
 Disallow copy without setting internal field reference. More...
 
 mappedFlowRateVelocityFvPatchVectorField (const mappedFlowRateVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &)
 Copy constructor 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...
 

Detailed Description

This boundary condition maps the flow rate from a neighbouring patch to this patch, then uses it to set a corresponding velocity in a direction normal to the patch.

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

Example of the boundary condition specification:

    <patchName>
    {
        type            mappedFlowRateVelocity;
        value           uniform (0 0 0);
    }

This boundary condition can only be applied to patches that are of mappedPatchBase type.

See also
Foam::mappedPatchBase Foam::mappedPolyPatch Foam::mappedFvPatch Foam::fixedValueFvPatchVectorField
Source files

Definition at line 95 of file mappedFlowRateVelocityFvPatchVectorField.H.

Constructor & Destructor Documentation

◆ mappedFlowRateVelocityFvPatchVectorField() [1/4]

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

Construct from patch, internal field and dictionary.

Definition at line 35 of file mappedFlowRateVelocityFvPatchVectorField.C.

References dict, mappedPatchBase::from::differentPatch, and mappedPatchBase::validateMapForField().

Referenced by mappedFlowRateVelocityFvPatchVectorField::clone().

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

◆ mappedFlowRateVelocityFvPatchVectorField() [2/4]

Construct by mapping given.

mappedFlowRateVelocityFvPatchVectorField onto a new patch

Definition at line 58 of file mappedFlowRateVelocityFvPatchVectorField.C.

◆ mappedFlowRateVelocityFvPatchVectorField() [3/4]

Disallow copy without setting internal field reference.

◆ mappedFlowRateVelocityFvPatchVectorField() [4/4]

Copy constructor setting internal field reference.

Definition at line 74 of file mappedFlowRateVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "mappedFlowRateVelocity"  )

Runtime type information.

◆ clone()

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

Construct and return a clone setting internal field reference.

Definition at line 152 of file mappedFlowRateVelocityFvPatchVectorField.H.

References mappedFlowRateVelocityFvPatchVectorField::mappedFlowRateVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 152 of file mappedFlowRateVelocityFvPatchVectorField.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: