core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::geom::BodyProperties< Real > Struct Template Reference

#include <body_properties.hpp>

Public Attributes

Real volume = 0
 |{phi < 0}|
Real mass = 0
 density * volume
Vec3< Real > com {0, 0, 0}
 centre of mass, input frame
Real inertia [3][3] = {}
 full tensor about the COM, input frame, at the given density
Real principal [3] = {}
 principal moments; principal[k] pairs with column k of R
Real rotation [3][3] = {}
 columns = principal axes in the input frame
Quat< Real > quat {0, 0, 0, 1}
 the same rotation, p_input = com + rotate(quat, p_body)

Detailed Description

template<class Real>
struct peclet::core::geom::BodyProperties< Real >

Definition at line 48 of file body_properties.hpp.

Member Data Documentation

◆ volume

template<class Real>
Real peclet::core::geom::BodyProperties< Real >::volume = 0

|{phi < 0}|

Definition at line 49 of file body_properties.hpp.

Referenced by peclet::core::geom::bodyProperties().

◆ mass

template<class Real>
Real peclet::core::geom::BodyProperties< Real >::mass = 0

density * volume

Definition at line 50 of file body_properties.hpp.

Referenced by peclet::core::geom::bodyProperties().

◆ com

template<class Real>
Vec3<Real> peclet::core::geom::BodyProperties< Real >::com {0, 0, 0}

centre of mass, input frame

Definition at line 51 of file body_properties.hpp.

Referenced by peclet::core::geom::bodyProperties().

◆ inertia

template<class Real>
Real peclet::core::geom::BodyProperties< Real >::inertia[3][3] = {}

full tensor about the COM, input frame, at the given density

Definition at line 52 of file body_properties.hpp.

Referenced by peclet::core::geom::bodyProperties(), and peclet::core::geom::body_detail::principalFrame().

◆ principal

template<class Real>
Real peclet::core::geom::BodyProperties< Real >::principal[3] = {}

principal moments; principal[k] pairs with column k of R

Definition at line 53 of file body_properties.hpp.

Referenced by peclet::core::geom::body_detail::principalFrame().

◆ rotation

template<class Real>
Real peclet::core::geom::BodyProperties< Real >::rotation[3][3] = {}

columns = principal axes in the input frame

Definition at line 54 of file body_properties.hpp.

Referenced by peclet::core::geom::body_detail::principalFrame().

◆ quat

template<class Real>
Quat<Real> peclet::core::geom::BodyProperties< Real >::quat {0, 0, 0, 1}

the same rotation, p_input = com + rotate(quat, p_body)

Definition at line 55 of file body_properties.hpp.

Referenced by peclet::core::geom::body_detail::principalFrame().


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