walberla::mesa_pd::data::Ellipsoid Class Reference

#include <Ellipsoid.h>

+ Inheritance diagram for walberla::mesa_pd::data::Ellipsoid:

Public Member Functions

 Ellipsoid (const Vec3 &semiAxes=Vec3(real_t(1)))
 
const Vec3getSemiAxes () const
 
real_t getVolume () const override
 
void updateMassAndInertia (const real_t density) override
 Updates mass and inertia according to the actual shape. More...
 
Vec3 support (const Vec3 &d_loc) const override
 
void pack (walberla::mpi::SendBuffer &buf) override
 
void unpack (walberla::mpi::RecvBuffer &buf) override
 
- Public Member Functions inherited from walberla::mesa_pd::data::BaseShape
 BaseShape ()=default
 
 BaseShape (const int shapeType)
 
virtual ~BaseShape ()=default
 
const real_tgetMass () const
 
const real_tgetInvMass () const
 
const Mat3getInertiaBF () const
 
const Mat3getInvInertiaBF () const
 
const ShapeTypeTgetShapeType () const
 

Static Public Attributes

constexpr static int SHAPE_TYPE = 4
 Unique shape type identifier for boxes. More...
 
- Static Public Attributes inherited from walberla::mesa_pd::data::BaseShape
static const int INVALID_SHAPE = -1
 Unique invalid shape type identifier. More...
 

Private Attributes

Vec3 semiAxes_
 edge length of the box More...
 

Additional Inherited Members

- Public Types inherited from walberla::mesa_pd::data::BaseShape
using ShapeTypeT = int
 
- Protected Attributes inherited from walberla::mesa_pd::data::BaseShape
real_t mass_ = real_t(0)
 mass More...
 
real_t invMass_ = real_t(0)
 inverse mass More...
 
Mat3 inertiaBF_ = Mat3(real_t(0))
 inertia matrix in the body frame More...
 
Mat3 invInertiaBF_ = Mat3(real_t(0))
 inverse inertia matrix in the body frame More...
 
ShapeTypeT shapeType_ = INVALID_SHAPE
 

Constructor & Destructor Documentation

◆ Ellipsoid()

walberla::mesa_pd::data::Ellipsoid::Ellipsoid ( const Vec3 semiAxes = Vec3(real_t(1)))
inlineexplicit

Member Function Documentation

◆ getSemiAxes()

const Vec3& walberla::mesa_pd::data::Ellipsoid::getSemiAxes ( ) const
inline

◆ getVolume()

real_t walberla::mesa_pd::data::Ellipsoid::getVolume ( ) const
inlineoverridevirtual

◆ pack()

void walberla::mesa_pd::data::Ellipsoid::pack ( walberla::mpi::SendBuffer buf)
inlineoverridevirtual

◆ support()

Vec3 walberla::mesa_pd::data::Ellipsoid::support ( const Vec3 d_loc) const
inlineoverridevirtual

◆ unpack()

void walberla::mesa_pd::data::Ellipsoid::unpack ( walberla::mpi::RecvBuffer buf)
inlineoverridevirtual

◆ updateMassAndInertia()

void walberla::mesa_pd::data::Ellipsoid::updateMassAndInertia ( const real_t  density)
inlineoverridevirtual

Updates mass and inertia according to the actual shape.

Reimplemented from walberla::mesa_pd::data::BaseShape.

Member Data Documentation

◆ semiAxes_

Vec3 walberla::mesa_pd::data::Ellipsoid::semiAxes_
private

edge length of the box


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