forceSuSp Class Reference

Helper container for force Su and Sp terms. More...

Inheritance diagram for forceSuSp:
[legend]
Collaboration diagram for forceSuSp:
[legend]

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 vectorSu () 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...
 
vectorSu ()
 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 vectorfirst () const noexcept
 Return first. More...
 
vectorfirst () 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...
 

Detailed Description

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

Source files

Definition at line 64 of file forceSuSp.H.

Constructor & Destructor Documentation

◆ forceSuSp() [1/5]

forceSuSp ( )
default

Default construct.

◆ forceSuSp() [2/5]

forceSuSp ( const Foam::zero  )
inline

Construct zero-initialized content.

Definition at line 31 of file forceSuSpI.H.

◆ forceSuSp() [3/5]

forceSuSp ( const Tuple2< vector, scalar > &  susp)
inline

Construct given Tuple2.

Definition at line 38 of file forceSuSpI.H.

◆ forceSuSp() [4/5]

forceSuSp ( const vector Su,
const scalar  Sp 
)
inline

Construct given two components.

Definition at line 46 of file forceSuSpI.H.

References Sp, and Su.

◆ forceSuSp() [5/5]

forceSuSp ( Istream is)
inlineexplicit

Construct from Istream.

Definition at line 53 of file forceSuSpI.H.

Member Function Documentation

◆ Su() [1/2]

◆ Sp() [1/2]

Foam::scalar Sp ( ) const
inline

Return const access to the implicit coefficient [kg/s].

Definition at line 67 of file forceSuSpI.H.

Referenced by SprayParcel< ParcelType >::calcBreakup(), SphereDragForce< CloudType >::calcCoupled(), DistortedSphereDragForce< CloudType >::calcCoupled(), NonSphereDragForce< CloudType >::calcCoupled(), ParticleForce< CloudType >::calcCoupled(), ParticleForce< CloudType >::calcNonCoupled(), and KinematicParcel< ParcelType >::calcVelocity().

Here is the caller graph for this function:

◆ Su() [2/2]

Foam::vector & Su ( )
inline

Return reference to the explicit contribution.

Definition at line 73 of file forceSuSpI.H.

◆ Sp() [2/2]

Foam::scalar & Sp ( )
inline

Return reference to the implicit coefficient.

Definition at line 79 of file forceSuSpI.H.

◆ operator+=()

void operator+= ( const forceSuSp susp)
inline

Addition.

Definition at line 87 of file forceSuSpI.H.

References Tuple2< T1, T2 >::first(), and Tuple2< T1, T2 >::second().

Here is the call graph for this function:

◆ operator-=()

void operator-= ( const forceSuSp susp)
inline

Subtraction.

Definition at line 94 of file forceSuSpI.H.

References Tuple2< T1, T2 >::first(), and Tuple2< T1, T2 >::second().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator* [1/2]

forceSuSp operator* ( const forceSuSp susp1,
const forceSuSp susp2 
)
friend

Addition.

◆ operator* [2/2]

forceSuSp operator* ( const scalar  s,
const forceSuSp susp 
)
friend

Multiplication.


The documentation for this class was generated from the following files: