Detailed Description

PFC style damping.

This kernel requires the following particle accessor interface

const walberla::mesa_pd::Vec3& getLinearVelocity(const size_t p_idx) const;
void setLinearVelocity(const size_t p_idx, const walberla::mesa_pd::Vec3& v);
const walberla::mesa_pd::Vec3& getForce(const size_t p_idx) const;
void setForce(const size_t p_idx, const walberla::mesa_pd::Vec3& v);
const walberla::mesa_pd::data::particle_flags::FlagT& getFlags(const size_t p_idx) const;
const walberla::mesa_pd::Vec3& getAngularVelocity(const size_t p_idx) const;
void setAngularVelocity(const size_t p_idx, const walberla::mesa_pd::Vec3& v);
const walberla::mesa_pd::Vec3& getTorque(const size_t p_idx) const;
void setTorque(const size_t p_idx, const walberla::mesa_pd::Vec3& v);

#include <PFCDamping.h>

Public Member Functions

 PFCDamping (const real_t alpha)
 
template<typename Accessor >
void operator() (const size_t p_idx, Accessor &ac) const
 

Private Attributes

real_t alpha_ = 0_r
 

Constructor & Destructor Documentation

◆ PFCDamping()

walberla::mesa_pd::kernel::PFCDamping::PFCDamping ( const real_t  alpha)
inline

Member Function Documentation

◆ operator()()

template<typename Accessor >
void walberla::mesa_pd::kernel::PFCDamping::operator() ( const size_t  p_idx,
Accessor &  ac 
) const
inline

Member Data Documentation

◆ alpha_

real_t walberla::mesa_pd::kernel::PFCDamping::alpha_ = 0_r
private

The documentation for this class was generated from the following file:
Definition: Flags.h:33