Helper container for force Su and Sp terms. More...
Public Member Functions | |
forceSuSp ()=default | |
Default construct. More... | |
forceSuSp (const Foam::zero) | |
Construct zero-initialized content. More... | |
forceSuSp (const Tuple2< vector, scalar > &susp) | |
Construct given Tuple2. More... | |
forceSuSp (const vector &Su, const scalar Sp) | |
Construct given two components. More... | |
forceSuSp (Istream &is) | |
Construct from Istream. More... | |
const vector & | Su () const |
Return const access to the explicit contribution [kg.m/s2]. More... | |
scalar | Sp () const |
Return const access to the implicit coefficient [kg/s]. More... | |
vector & | Su () |
Return reference to the explicit contribution. More... | |
scalar & | Sp () |
Return reference to the implicit coefficient. More... | |
void | operator+= (const forceSuSp &susp) |
Addition. More... | |
void | operator-= (const forceSuSp &susp) |
Subtraction. More... | |
Public Member Functions inherited from Tuple2< vector, scalar > | |
Tuple2 ()=default | |
Default construct. More... | |
Tuple2 (const vector &f, const scalar &s) | |
Copy construct from components. More... | |
Tuple2 (vector &&f, scalar &&s) | |
Move construct from components. More... | |
Tuple2 (const std::pair< vector, scalar > &vals) | |
Copy construct from std::pair. More... | |
Tuple2 (std::pair< vector, scalar > &&vals) | |
Move construct from std::pair. More... | |
Tuple2 (Istream &is) | |
Construct from Istream. More... | |
const vector & | first () const noexcept |
Return first. More... | |
vector & | first () noexcept |
Return first. More... | |
const scalar & | second () const noexcept |
Return second. More... | |
scalar & | second () noexcept |
Return second. More... | |
Friends | |
forceSuSp | operator* (const forceSuSp &susp1, const forceSuSp &susp2) |
Addition. More... | |
forceSuSp | operator* (const scalar s, const forceSuSp &susp) |
Multiplication. More... | |
Additional Inherited Members | |
Public Types inherited from Tuple2< vector, scalar > | |
typedef vector | first_type |
Type of member first, the first template parameter (T1) More... | |
typedef scalar | second_type |
Type of member second, the second template parameter (T2) More... | |
Helper container for force Su and Sp terms.
F = Sp(U - Up) + Su
Explicit contribution, Su specified as a force Implicit coefficient, Sp specified as force/velocity
Definition at line 64 of file forceSuSp.H.
|
default |
Default construct.
|
inline |
Construct zero-initialized content.
Definition at line 31 of file forceSuSpI.H.
Construct given Tuple2.
Definition at line 37 of file forceSuSpI.H.
Construct from Istream.
Definition at line 53 of file forceSuSpI.H.
|
inline |
Return const access to the explicit contribution [kg.m/s2].
Definition at line 61 of file forceSuSpI.H.
Referenced by LiftForce< CloudType >::calcCoupled(), ParticleForce< CloudType >::calcCoupled(), PressureGradientForce< CloudType >::calcCoupled(), VirtualMassForce< CloudType >::calcCoupled(), BrownianMotionForce< CloudType >::calcCoupled(), GravityForce< CloudType >::calcNonCoupled(), InterfaceForce< CloudType >::calcNonCoupled(), NonInertialFrameForce< CloudType >::calcNonCoupled(), ParamagneticForce< CloudType >::calcNonCoupled(), SRFForce< CloudType >::calcNonCoupled(), KinematicParcel< ParcelType >::calcVelocity(), and ParticleForce< KinematicCloud< Foam::DSMCCloud > >::ParticleForce().
|
inline |
Return const access to the implicit coefficient [kg/s].
Definition at line 67 of file forceSuSpI.H.
Referenced by SprayParcel< ParcelType >::calcBreakup(), ParticleForce< CloudType >::calcCoupled(), and KinematicParcel< ParcelType >::calcVelocity().
|
inline |
Return reference to the explicit contribution.
Definition at line 73 of file forceSuSpI.H.
|
inline |
Return reference to the implicit coefficient.
Definition at line 79 of file forceSuSpI.H.
|
inline |
Addition.
Definition at line 87 of file forceSuSpI.H.
References Tuple2< T1, T2 >::first(), and Tuple2< T1, T2 >::second().
|
inline |
Subtraction.
Definition at line 94 of file forceSuSpI.H.
References Tuple2< T1, T2 >::first(), and Tuple2< T1, T2 >::second().