walberla::mesa_pd::data::CylindricalBoundary Class Reference

#include <CylindricalBoundary.h>

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

Public Member Functions

 CylindricalBoundary (const real_t &radius, const Vec3 &axis)
const real_tgetRadius () const
const Vec3getAxis () const
real_t getVolume () const override
void updateMassAndInertia (const real_t density) override
 Updates mass and inertia according to the actual shape. More...
- Public Member Functions inherited from walberla::mesa_pd::data::BaseShape
 BaseShape (const int shapeType)
virtual ~BaseShape ()=default
const real_tgetMass () const
const real_tgetInvMass () const
const Mat3getInertiaBF () const
const Mat3getInvInertiaBF () const
const int & getShapeType () const
virtual Vec3 support (const Vec3 &) const

Static Public Attributes

static constexpr int SHAPE_TYPE = 2
 Unique shape type identifier for cylindrical boundaries. 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

real_t radius_
 radius of the cylinder More...
Vec3 axis_
 axis of the cylinder More...

Additional Inherited Members

- 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...
int shapeType_ = INVALID_SHAPE

Constructor & Destructor Documentation

walberla::mesa_pd::data::CylindricalBoundary::CylindricalBoundary ( const real_t radius,
const Vec3 axis 

Member Function Documentation

const Vec3& walberla::mesa_pd::data::CylindricalBoundary::getAxis ( ) const
const real_t& walberla::mesa_pd::data::CylindricalBoundary::getRadius ( ) const
real_t walberla::mesa_pd::data::CylindricalBoundary::getVolume ( ) const
void walberla::mesa_pd::data::CylindricalBoundary::updateMassAndInertia ( const real_t  density)

Updates mass and inertia according to the actual shape.

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

Member Data Documentation

Vec3 walberla::mesa_pd::data::CylindricalBoundary::axis_

axis of the cylinder

real_t walberla::mesa_pd::data::CylindricalBoundary::radius_

radius of the cylinder

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