Calculates particle pressure gradient force. More...
Public Member Functions | |
TypeName ("pressureGradient") | |
Runtime type information. More... | |
PressureGradientForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType=typeName) | |
Construct from mesh. More... | |
PressureGradientForce (const PressureGradientForce &pgf) | |
Construct copy. More... | |
virtual autoPtr< ParticleForce< CloudType > > | clone () const |
Construct and return a clone. More... | |
virtual | ~PressureGradientForce () |
Destructor. More... | |
const interpolation< vector > & | DUcDtInterp () const |
Return the rate of change of carrier phase velocity interpolator. More... | |
virtual void | cacheFields (const bool store) |
Cache fields. More... | |
virtual forceSuSp | calcCoupled (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const |
Calculate the non-coupled force. More... | |
virtual scalar | massAdd (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const |
Return the added mass. More... | |
Public Member Functions inherited from ParticleForce< CloudType > | |
TypeName ("particleForce") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, ParticleForce, dictionary,(CloudType &owner, const fvMesh &mesh, const dictionary &dict),(owner, mesh, dict)) | |
Declare runtime constructor selection table. More... | |
ParticleForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs) | |
Construct from mesh. More... | |
ParticleForce (const ParticleForce &pf) | |
Construct copy. More... | |
virtual | ~ParticleForce () |
Destructor. More... | |
const CloudType & | owner () const |
Return const access to the cloud owner. More... | |
CloudType & | owner () |
Return references to the cloud owner. More... | |
const fvMesh & | mesh () const |
Return the mesh database. More... | |
const dictionary & | coeffs () const |
Return the force coefficients dictionary. More... | |
virtual forceSuSp | calcNonCoupled (const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const |
Calculate the non-coupled force. More... | |
Protected Attributes | |
const word | UName_ |
Name of velocity field. More... | |
autoPtr< interpolation< vector > > | DUcDtInterpPtr_ |
Rate of change of carrier phase velocity interpolator. More... | |
Additional Inherited Members | |
Public Types inherited from ParticleForce< CloudType > | |
typedef VectorSpace< Vector< vector >, vector, 2 > | returnType |
Convenience typedef for return type. More... | |
Static Public Member Functions inherited from ParticleForce< CloudType > | |
static autoPtr< ParticleForce< CloudType > > | New (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType) |
Selector. More... | |
Calculates particle pressure gradient force.
Definition at line 52 of file PressureGradientForce.H.
PressureGradientForce | ( | CloudType & | owner, |
const fvMesh & | mesh, | ||
const dictionary & | dict, | ||
const word & | forceType = typeName |
||
) |
Construct from mesh.
Definition at line 34 of file PressureGradientForce.C.
PressureGradientForce | ( | const PressureGradientForce< CloudType > & | pgf | ) |
Construct copy.
Definition at line 49 of file PressureGradientForce.C.
|
virtual |
Destructor.
Definition at line 62 of file PressureGradientForce.C.
Referenced by PressureGradientForce< CloudType >::clone().
TypeName | ( | "pressureGradient" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 88 of file PressureGradientForce.H.
References PressureGradientForce< CloudType >::cacheFields(), PressureGradientForce< CloudType >::calcCoupled(), PressureGradientForce< CloudType >::DUcDtInterp(), PressureGradientForce< CloudType >::massAdd(), p, Foam::Re(), and PressureGradientForce< CloudType >::~PressureGradientForce().
|
inline |
Return the rate of change of carrier phase velocity interpolator.
Definition at line 30 of file PressureGradientForceI.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
Referenced by PressureGradientForce< CloudType >::clone().
|
virtual |
Cache fields.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 69 of file PressureGradientForce.C.
References PressureGradientForce< CloudType >::calcCoupled(), Foam::fvc::ddt(), Foam::fvc::grad(), and mesh.
Referenced by PressureGradientForce< CloudType >::clone().
|
virtual |
Calculate the non-coupled force.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 120 of file PressureGradientForce.C.
References PressureGradientForce< CloudType >::massAdd(), forceSuSp::Su(), and Foam::Zero.
Referenced by PressureGradientForce< CloudType >::cacheFields(), and PressureGradientForce< CloudType >::clone().
|
virtual |
Return the added mass.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 142 of file PressureGradientForce.C.
Referenced by PressureGradientForce< CloudType >::calcCoupled(), and PressureGradientForce< CloudType >::clone().
|
protected |
Name of velocity field.
Definition at line 61 of file PressureGradientForce.H.
|
protected |
Rate of change of carrier phase velocity interpolator.
Definition at line 64 of file PressureGradientForce.H.