walberla::lbm_mesapd_coupling::InitializeVirtualMassKernel Class Reference

Detailed Description

This kernel calculates virtual mass and inertia and sets them as attributes on a particle.

It requires the following particle attributes: ps.addProperty("virtualMass", "walberla::real_t", defValue="real_t(0)", syncMode="ON_OWNERSHIP_CHANGE") ps.addProperty("invMassIncludingVirtual", "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.addProperty("invInertiaBFIncludingVirtual", "walberla::mesa_pd::Mat3", defValue="real_t(0)", syncMode="ON_OWNERSHIP_CHANGE")

#include <InitializeVirtualMassKernel.h>

Public Member Functions

 InitializeVirtualMassKernel ()=default
 
template<typename Accessor >
void operator() (size_t i, Accessor &ac, real_t C_v, real_t C_v_omega, real_t fluidDensity) const
 

Constructor & Destructor Documentation

◆ InitializeVirtualMassKernel()

walberla::lbm_mesapd_coupling::InitializeVirtualMassKernel::InitializeVirtualMassKernel ( )
default

Member Function Documentation

◆ operator()()

template<typename Accessor >
void walberla::lbm_mesapd_coupling::InitializeVirtualMassKernel::operator() ( size_t  i,
Accessor &  ac,
real_t  C_v,
real_t  C_v_omega,
real_t  fluidDensity 
) const
inline

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