|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Functions | |
| void | tetVolume (const FaVec3 &v1, const FaVec3 &v2, const FaVec3 &v3, const FaVec3 &v4, double &vol) |
| void | wedVolume (const FaVec3 &v1, const FaVec3 &v2, const FaVec3 &v3, const FaVec3 &v4, const FaVec3 &v5, const FaVec3 &v6, double &vol) |
| void | hexVolume (const FaVec3 &v1, const FaVec3 &v2, const FaVec3 &v3, const FaVec3 &v4, const FaVec3 &v5, const FaVec3 &v6, const FaVec3 &v7, const FaVec3 &v8, double &vol) |
| double | tetCenter (FaVec3 &v1, FaVec3 &v2, FaVec3 &v3, FaVec3 &v4, FaVec3 &vc) |
| double | wedCenter (FaVec3 &v1, FaVec3 &v2, FaVec3 &v3, FaVec3 &v4, FaVec3 &v5, FaVec3 &v6, FaVec3 &vc) |
| double | hexCenter (FaVec3 &v1, FaVec3 &v2, FaVec3 &v3, FaVec3 &v4, FaVec3 &v5, FaVec3 &v6, FaVec3 &v7, FaVec3 &v8, FaVec3 &vc) |
| void | tetMoment (const FaVec3 &v1, const FaVec3 &v2, const FaVec3 &v3, const FaVec3 &v4, FFaTensor3 &vm) |
| void | wedMoment (const FaVec3 &v1, const FaVec3 &v2, const FaVec3 &v3, const FaVec3 &v4, const FaVec3 &v5, const FaVec3 &v6, FFaTensor3 &vm) |
| void | hexMoment (const FaVec3 &v1, const FaVec3 &v2, const FaVec3 &v3, const FaVec3 &v4, const FaVec3 &v5, const FaVec3 &v6, const FaVec3 &v7, const FaVec3 &v8, FFaTensor3 &vm) |
A namespace with functions for calculation of volume, volume center and volume moment (inertia) for tetrahedron, wedge and hexahedron object.
| double FFaVolume::hexCenter | ( | FaVec3 & | v1, |
| FaVec3 & | v2, | ||
| FaVec3 & | v3, | ||
| FaVec3 & | v4, | ||
| FaVec3 & | v5, | ||
| FaVec3 & | v6, | ||
| FaVec3 & | v7, | ||
| FaVec3 & | v8, | ||
| FaVec3 & | vc | ||
| ) |
| void FFaVolume::hexMoment | ( | const FaVec3 & | v1, |
| const FaVec3 & | v2, | ||
| const FaVec3 & | v3, | ||
| const FaVec3 & | v4, | ||
| const FaVec3 & | v5, | ||
| const FaVec3 & | v6, | ||
| const FaVec3 & | v7, | ||
| const FaVec3 & | v8, | ||
| FFaTensor3 & | vm | ||
| ) |
| void FFaVolume::hexVolume | ( | const FaVec3 & | v1, |
| const FaVec3 & | v2, | ||
| const FaVec3 & | v3, | ||
| const FaVec3 & | v4, | ||
| const FaVec3 & | v5, | ||
| const FaVec3 & | v6, | ||
| const FaVec3 & | v7, | ||
| const FaVec3 & | v8, | ||
| double & | vol | ||
| ) |
Calculation of volume center. The input vertices are then shifted such that they become relative to the computed volume center. The volume of the object is retured.
| void FFaVolume::tetMoment | ( | const FaVec3 & | v1, |
| const FaVec3 & | v2, | ||
| const FaVec3 & | v3, | ||
| const FaVec3 & | v4, | ||
| FFaTensor3 & | vm | ||
| ) |
Calculation of volume moments (inertias). The input vertices are here assumed to be relative to the objects volume center. The moments are computed as a sum of pyramid and tetrahedron contributions, where the first vertex is at the volume center and the four/three other vertices are on a face.
| void FFaVolume::tetVolume | ( | const FaVec3 & | v1, |
| const FaVec3 & | v2, | ||
| const FaVec3 & | v3, | ||
| const FaVec3 & | v4, | ||
| double & | vol | ||
| ) |
Volume calculation. The volume of an object is computed as a sum of tetrahedron and pyramid contributions to account for possibly warped faces.
| double FFaVolume::wedCenter | ( | FaVec3 & | v1, |
| FaVec3 & | v2, | ||
| FaVec3 & | v3, | ||
| FaVec3 & | v4, | ||
| FaVec3 & | v5, | ||
| FaVec3 & | v6, | ||
| FaVec3 & | vc | ||
| ) |
| void FFaVolume::wedMoment | ( | const FaVec3 & | v1, |
| const FaVec3 & | v2, | ||
| const FaVec3 & | v3, | ||
| const FaVec3 & | v4, | ||
| const FaVec3 & | v5, | ||
| const FaVec3 & | v6, | ||
| FFaTensor3 & | vm | ||
| ) |