core 1.5.0
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

|{phi < 0}|

Definition at line 49 of file body_properties.hpp.

◆ mass

density * volume

Definition at line 50 of file body_properties.hpp.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.


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