|
waLBerla 7.2
|
#include <Box.h>
Inheritance diagram for walberla::mesa_pd::data::Box:Public Member Functions | |
| Box (const Vec3 &edgeLength=Vec3(real_t(1))) | |
| const Vec3 & | getEdgeLength () const |
| real_t | getVolume () const override |
| void | updateMassAndInertia (const real_t density) override |
| Updates mass and inertia according to the actual shape. | |
| Vec3 | support (const Vec3 &bfD) 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_t & | getMass () const |
| const real_t & | getInvMass () const |
| const Mat3 & | getInertiaBF () const |
| const Mat3 & | getInvInertiaBF () const |
| const ShapeTypeT & | getShapeType () const |
Static Public Attributes | |
| static constexpr int | SHAPE_TYPE = 3 |
| Unique shape type identifier for boxes. | |
Static Public Attributes inherited from walberla::mesa_pd::data::BaseShape | |
| static const int | INVALID_SHAPE = -1 |
| Unique invalid shape type identifier. | |
Private Attributes | |
| Vec3 | edgeLength_ |
| edge length of the box | |
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 | |
| real_t | invMass_ = real_t(0) |
| inverse mass | |
| Mat3 | inertiaBF_ = Mat3(real_t(0)) |
| inertia matrix in the body frame | |
| Mat3 | invInertiaBF_ = Mat3(real_t(0)) |
| inverse inertia matrix in the body frame | |
| ShapeTypeT | shapeType_ = INVALID_SHAPE |
|
inline |
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
inlineoverridevirtual |
Updates mass and inertia according to the actual shape.
Reimplemented from walberla::mesa_pd::data::BaseShape.
|
private |
edge length of the box