OpenLB 1.7
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
olb::particles::dynamics::torque_from_force< D, T > Struct Template Reference

#include <particleDynamicsFunctions.h>

+ Collaboration diagram for olb::particles::dynamics::torque_from_force< D, T >:

Static Public Member Functions

static constexpr Vector< T, utilities::dimensions::convert< D >::rotation > calculate (Vector< T, D > force, PhysR< T, D > lever)
 

Detailed Description

template<unsigned D, typename T>
struct olb::particles::dynamics::torque_from_force< D, T >

Definition at line 73 of file particleDynamicsFunctions.h.

Member Function Documentation

◆ calculate()

template<unsigned D, typename T >
static constexpr Vector< T, utilities::dimensions::convert< D >::rotation > olb::particles::dynamics::torque_from_force< D, T >::calculate ( Vector< T, D > force,
PhysR< T, D > lever )
inlinestaticconstexpr

Definition at line 74 of file particleDynamicsFunctions.h.

76 {
77 if constexpr (D==2){
78 return Vector<T,utilities::dimensions::convert<D>::rotation>( crossProduct( lever, force ) );
79 } else {
80 return crossProduct( lever, force );
81 }
82 }
auto crossProduct(const ScalarVector< T, D, IMPL > &a, const ScalarVector< T, D, IMPL_ > &b)
Definition vector.h:235

References olb::crossProduct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this struct was generated from the following file: