totalPressureVelocityLagrangianVectorFieldSource Class Reference

This source condition provides a velocity in a given direction with a magnitude calculated from the difference between a specified upstream pressure and the local interpolated pressure. More...

Inheritance diagram for totalPressureVelocityLagrangianVectorFieldSource:
Collaboration diagram for totalPressureVelocityLagrangianVectorFieldSource:

Public Member Functions

 TypeName ("totalPressureVelocity")
 Runtime type information. More...
 
 totalPressureVelocityLagrangianVectorFieldSource (const regIOobject &, const dictionary &dict)
 Construct from internal field and dictionary. More...
 
 totalPressureVelocityLagrangianVectorFieldSource (const totalPressureVelocityLagrangianVectorFieldSource &, const regIOobject &)
 Copy constructor setting the internal field reference. More...
 
virtual autoPtr< LagrangianVectorFieldSource > clone (const regIOobject &iIo) const
 Construct and return a clone setting the internal field reference. More...
 
virtual ~totalPressureVelocityLagrangianVectorFieldSource ()
 Destructor. More...
 
virtual tmp< LagrangianSubVectorFieldvalue (const LagrangianInjection &, const LagrangianSubMesh &) const
 Return the value for an instantaneous injection. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

This source condition provides a velocity in a given direction with a magnitude calculated from the difference between a specified upstream pressure and the local interpolated pressure.

Usage
Property Description Required? Default
direction The velocity direction yes
p0 The upstream total pressure yes
pc The name of the carrier pressure field no p

Example specification:

    <LagrangianModelName>
    {
        type            totalPressureVelocity;
        direction       (1 0 0);
        p0              1 [bar];
    }
See also
Foam::Function1s
Source files

Definition at line 93 of file totalPressureVelocityLagrangianVectorFieldSource.H.

Constructor & Destructor Documentation

◆ totalPressureVelocityLagrangianVectorFieldSource() [1/2]

Construct from internal field and dictionary.

Definition at line 33 of file totalPressureVelocityLagrangianVectorFieldSource.C.

Referenced by totalPressureVelocityLagrangianVectorFieldSource::clone().

Here is the caller graph for this function:

◆ totalPressureVelocityLagrangianVectorFieldSource() [2/2]

Copy constructor setting the internal field reference.

Definition at line 74 of file totalPressureVelocityLagrangianVectorFieldSource.C.

◆ ~totalPressureVelocityLagrangianVectorFieldSource()

Member Function Documentation

◆ TypeName()

TypeName ( "totalPressureVelocity"  )

Runtime type information.

◆ clone()

virtual autoPtr<LagrangianVectorFieldSource> clone ( const regIOobject iIo) const
inlinevirtual

Construct and return a clone setting the internal field reference.

Definition at line 151 of file totalPressureVelocityLagrangianVectorFieldSource.H.

References totalPressureVelocityLagrangianVectorFieldSource::totalPressureVelocityLagrangianVectorFieldSource().

Here is the call graph for this function:

◆ value()

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 194 of file totalPressureVelocityLagrangianVectorFieldSource.C.

References coupled::carrierName(), Foam::dimless, Foam::dimPressure, 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: