Mix-in for source conditions that compute the velocity magnitude from the difference between a specified upstream pressure and the local interpolated pressure. More...

Public Member Functions | |
| totalPressureVelocityMagnitudeLagrangianScalarFieldSource (const LagrangianFieldSourceBase &, const cloudLagrangianFieldSource &, const dictionary &dict) | |
| Construct from a dictionary. More... | |
| totalPressureVelocityMagnitudeLagrangianScalarFieldSource (const totalPressureVelocityMagnitudeLagrangianScalarFieldSource &, const LagrangianFieldSourceBase &, const cloudLagrangianFieldSource &) | |
| Copy constructor. More... | |
| ~totalPressureVelocityMagnitudeLagrangianScalarFieldSource () | |
| Destructor. More... | |
| tmp< LagrangianSubScalarField > | Umag (const LagrangianInjection &, const LagrangianSubMesh &) const |
| Return the value for an instantaneous injection. More... | |
| void | write (Ostream &) const |
| Write. More... | |
Mix-in for source conditions that compute the velocity magnitude from the difference between a specified upstream pressure and the local interpolated pressure.
Definition at line 54 of file totalPressureVelocityMagnitudeLagrangianScalarFieldSource.H.
| totalPressureVelocityMagnitudeLagrangianScalarFieldSource | ( | const LagrangianFieldSourceBase & | field, |
| const cloudLagrangianFieldSource & | cloudField, | ||
| const dictionary & | dict | ||
| ) |
Construct from a dictionary.
Definition at line 36 of file totalPressureVelocityMagnitudeLagrangianScalarFieldSource.C.
| totalPressureVelocityMagnitudeLagrangianScalarFieldSource | ( | const totalPressureVelocityMagnitudeLagrangianScalarFieldSource & | tpvmlsfs, |
| const LagrangianFieldSourceBase & | field, | ||
| const cloudLagrangianFieldSource & | cloudField | ||
| ) |
Copy constructor.
Definition at line 67 of file totalPressureVelocityMagnitudeLagrangianScalarFieldSource.C.
Destructor.
Definition at line 86 of file totalPressureVelocityMagnitudeLagrangianScalarFieldSource.C.
| Foam::tmp< Foam::LagrangianSubScalarField > Umag | ( | const LagrangianInjection & | injection, |
| const LagrangianSubMesh & | subMesh | ||
| ) | const |
Return the value for an instantaneous injection.
Definition at line 94 of file totalPressureVelocityMagnitudeLagrangianScalarFieldSource.C.
References DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::dimKinematicPressure, Foam::dimPressure, Foam::exit(), Foam::FatalError, FatalErrorInFunction, objectRegistry::lookupObject(), Foam::max(), LagrangianSubMesh::mesh(), IOobject::name(), Function1< Type >::New(), LagrangianMesh::poly(), massive::rho, coupledToConstantDensityFluid::rhoByRhoc, Foam::sqrt(), and Function1LagrangianFieldSource::value().

| void write | ( | Ostream & | os | ) | const |
Write.
Definition at line 193 of file totalPressureVelocityMagnitudeLagrangianScalarFieldSource.C.
References Foam::units::any, carried::nameToCarrierName(), and Foam::writeEntry().
Referenced by totalPressureConeVelocityLagrangianVectorFieldSource::write(), and totalPressureVelocityLagrangianVectorFieldSource::write().

