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...


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< LagrangianSubVectorField > | value (const LagrangianInjection &, const LagrangianSubMesh &) const |
| Return the value for an instantaneous injection. More... | |
| virtual void | write (Ostream &) const |
| Write. More... | |
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.
| 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];
}Definition at line 94 of file totalPressureVelocityLagrangianVectorFieldSource.H.
| totalPressureVelocityLagrangianVectorFieldSource | ( | const regIOobject & | iIo, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 31 of file totalPressureVelocityLagrangianVectorFieldSource.C.
Referenced by totalPressureVelocityLagrangianVectorFieldSource::clone().

| totalPressureVelocityLagrangianVectorFieldSource | ( | const totalPressureVelocityLagrangianVectorFieldSource & | field, |
| const regIOobject & | iIo | ||
| ) |
Copy constructor setting the internal field reference.
Definition at line 60 of file totalPressureVelocityLagrangianVectorFieldSource.C.
|
virtual |
Destructor.
Definition at line 81 of file totalPressureVelocityLagrangianVectorFieldSource.C.
| TypeName | ( | "totalPressureVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting the internal field reference.
Definition at line 138 of file totalPressureVelocityLagrangianVectorFieldSource.H.
References totalPressureVelocityLagrangianVectorFieldSource::totalPressureVelocityLagrangianVectorFieldSource().

|
virtual |
Return the value for an instantaneous injection.
Definition at line 89 of file totalPressureVelocityLagrangianVectorFieldSource.C.
References Foam::dimless, and Foam::normalised().

|
virtual |
Write.
Definition at line 101 of file totalPressureVelocityLagrangianVectorFieldSource.C.
References Foam::units::none, Foam::dimensions::time, totalPressureVelocityMagnitudeLagrangianScalarFieldSource::write(), Foam::vtkWriteOps::write(), and Foam::writeEntry().
