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

Apply external acceleration (e.g. for apply gravity) More...

#include <particleTasks.h>

+ Collaboration diagram for olb::particles::apply_external_acceleration_parallel< T, PARTICLETYPE >:

Static Public Member Functions

static auto execute (SuperParticleSystem< T, PARTICLETYPE > &sParticleSystem, Particle< T, PARTICLETYPE > &particle, Vector< T, PARTICLETYPE::d > externalAcceleration, T timeStepSize, int globiC=0)
 

Static Public Attributes

static constexpr bool latticeCoupling = false
 
static constexpr bool particleLoop = true
 

Detailed Description

template<typename T, typename PARTICLETYPE>
struct olb::particles::apply_external_acceleration_parallel< T, PARTICLETYPE >

Apply external acceleration (e.g. for apply gravity)

Definition at line 304 of file particleTasks.h.

Member Function Documentation

◆ execute()

template<typename T , typename PARTICLETYPE >
static auto olb::particles::apply_external_acceleration_parallel< T, PARTICLETYPE >::execute ( SuperParticleSystem< T, PARTICLETYPE > & sParticleSystem,
Particle< T, PARTICLETYPE > & particle,
Vector< T, PARTICLETYPE::d > externalAcceleration,
T timeStepSize,
int globiC = 0 )
inlinestatic

Definition at line 305 of file particleTasks.h.

310 {
311 using namespace descriptors;
312 //Apply acceleration
313 Vector<T,PARTICLETYPE::d> force = particle.template getField<FORCING,FORCE>();
314 T mass = particle.template getField<PHYSPROPERTIES,MASS>();
315 force += externalAcceleration * mass;
316 particle.template setField<FORCING,FORCE>( force );
317 }

Member Data Documentation

◆ latticeCoupling

template<typename T , typename PARTICLETYPE >
constexpr bool olb::particles::apply_external_acceleration_parallel< T, PARTICLETYPE >::latticeCoupling = false
staticconstexpr

Definition at line 318 of file particleTasks.h.

◆ particleLoop

template<typename T , typename PARTICLETYPE >
constexpr bool olb::particles::apply_external_acceleration_parallel< T, PARTICLETYPE >::particleLoop = true
staticconstexpr

Definition at line 319 of file particleTasks.h.


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