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 93 of file totalPressureVelocityLagrangianVectorFieldSource.H.
| totalPressureVelocityLagrangianVectorFieldSource | ( | const regIOobject & | iIo, |
| const dictionary & | dict | ||
| ) |
Construct from internal field and dictionary.
Definition at line 33 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 74 of file totalPressureVelocityLagrangianVectorFieldSource.C.
|
virtual |
Destructor.
Definition at line 94 of file totalPressureVelocityLagrangianVectorFieldSource.C.
| TypeName | ( | "totalPressureVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone setting the internal field reference.
Definition at line 151 of file totalPressureVelocityLagrangianVectorFieldSource.H.
References totalPressureVelocityLagrangianVectorFieldSource::totalPressureVelocityLagrangianVectorFieldSource().

|
virtual |
Return the value for an instantaneous injection.
Definition at line 102 of file totalPressureVelocityLagrangianVectorFieldSource.C.
References DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::dimKinematicPressure, Foam::dimless, Foam::dimPressure, Foam::exit(), Foam::FatalError, FatalErrorInFunction, objectRegistry::lookupObject(), Foam::max(), LagrangianMesh::mesh(), LagrangianSubMesh::mesh(), IOobject::name(), Function1< Type >::New(), Foam::normalised(), massive::rho, coupledToIncompressibleFluid::rhoByRhoc, Foam::sqrt(), LagrangianMesh::time(), and Time::userUnits().

|
virtual |
Write.
Definition at line 194 of file totalPressureVelocityLagrangianVectorFieldSource.C.
References coupled::carrierName(), Foam::dimless, Foam::dimPressure, Foam::vtkWriteOps::write(), and Foam::writeEntry().
