walberla::lbm_mesapd_coupling::AddVirtualForceTorqueKernel Class Reference

Detailed Description

Kernel that sets a virtual force and torque on particles.

It accesses a virtual mass and inertia, which have to be set beforehand using InitializeVirtualMassKernel. During the calculation of virtual force and torque linear and angular accelerations are used, for which acceleration estimators need to be supplied.

This kernel requires the following particle attributes: ps.addProperty("virtualMass", "walberla::real_t", defValue="real_t(0)", syncMode="ON_OWNERSHIP_CHANGE") ps.addProperty("virtualInertiaBF", "walberla::mesa_pd::Mat3", defValue="real_t(0)", syncMode="ON_OWNERSHIP_CHANGE") ps.add_property("oldLinearAcceleration", "walberla::mesa_pd::Vec3", defValue="real_t(0)", syncMode="ON_OWNERSHIP_CHANGE") ps.add_property("oldAngularAcceleration", "walberla::mesa_pd::Vec3", defValue="real_t(0)", syncMode="ON_OWNERSHIP_CHANGE")

#include <AddVirtualForceTorqueKernel.h>

Public Member Functions

 AddVirtualForceTorqueKernel (shared_ptr< mesa_pd::data::ParticleStorage > ps)
 
template<typename Accessor_T >
void operator() (const size_t idx, Accessor_T &ac)
 

Private Attributes

const shared_ptr< mesa_pd::data::ParticleStorageps_
 

Constructor & Destructor Documentation

◆ AddVirtualForceTorqueKernel()

walberla::lbm_mesapd_coupling::AddVirtualForceTorqueKernel::AddVirtualForceTorqueKernel ( shared_ptr< mesa_pd::data::ParticleStorage ps)
inlineexplicit

Member Function Documentation

◆ operator()()

template<typename Accessor_T >
void walberla::lbm_mesapd_coupling::AddVirtualForceTorqueKernel::operator() ( const size_t  idx,
Accessor_T &  ac 
)
inline

Member Data Documentation

◆ ps_

const shared_ptr<mesa_pd::data::ParticleStorage> walberla::lbm_mesapd_coupling::AddVirtualForceTorqueKernel::ps_
private

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