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 33 of file PressureGradientForce.C.
PressureGradientForce | ( | const PressureGradientForce< CloudType > & | pgf | ) |
Construct copy.
Definition at line 48 of file PressureGradientForce.C.
|
virtual |
Destructor.
Definition at line 62 of file PressureGradientForce.C.
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.
|
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.
|
virtual |
Cache fields.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 69 of file PressureGradientForce.C.
References Foam::fvc::ddt(), Foam::fvc::grad(), and regIOobject::store().
Referenced by VirtualMassForce< CloudType >::cacheFields().
|
virtual |
Calculate the non-coupled force.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 119 of file PressureGradientForce.C.
References p, forceSuSp::Su(), and Foam::Zero.
Referenced by VirtualMassForce< CloudType >::calcCoupled().
|
virtual |
Return the added mass.
Reimplemented from ParticleForce< CloudType >.
Reimplemented in VirtualMassForce< CloudType >.
Definition at line 145 of file PressureGradientForce.C.
|
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.