|
MoorDyn
|
Macros | |
| #define | MAKE_EULER_ROT(a, b, c) |
| Create the Euler rotations, like RotXYZ, RotXZX, RotZYX... More... | |
Functions | |
| moordyn::real | moordyn::unitvector (vec &u, const vec &r1, const vec &r2) |
| Normalized direction vector. More... | |
| template<typename T > | |
| void | moordyn::scalevector (const vec &u, T newlength, vec &y) |
| Compute a vector with the same direction but different length. More... | |
| mat | moordyn::getH (vec r) |
| Produce alternator matrix. More... | |
| mat6 | moordyn::translateMass (vec r, mat M) |
| Compute the mass matrix on an offset point. More... | |
| mat6 | moordyn::translateMass6 (vec r, mat6 M) |
| Compute the mass matrix on an offset point. More... | |
| mat | moordyn::rotateMass (mat R, mat M) |
| rotation to a 3x3 mass matrix or any other second order tensor More... | |
| mat6 | moordyn::rotateMass6 (mat R, mat6 M) |
| rotation to a 6x6 mass/inertia tensor More... | |
| void | moordyn::transformKinematics (const vec &rRelBody, const mat &M, const vec &r, const vec6 &rd, vec &rOut, vec &rdOut) |
| calculate position and velocity of point based on its position relative to moving 6DOF body More... | |
| mat | moordyn::RotX (real rads) |
| Rotation matrix around x axis. More... | |
| mat | moordyn::RotY (real rads) |
| Rotation matrix around y axis. More... | |
| mat | moordyn::RotZ (real rads) |
| Rotation matrix around z axis. More... | |
| std::pair< real, real > | moordyn::orientationAngles (vec q) |
| Get the spherical angles for a vector. More... | |
| moordyn::real | moordyn::GetCurvature (moordyn::real length, const vec &q1, const vec &q2) |
| Convenience function to calculate curvature based on adjacent segments' direction vectors and their combined length. More... | |
| #define MAKE_EULER_ROT | ( | a, | |
| b, | |||
| c | |||
| ) |
| moordyn::real moordyn::GetCurvature | ( | moordyn::real | length, |
| const vec & | q1, | ||
| const vec & | q2 | ||
| ) |
Convenience function to calculate curvature based on adjacent segments' direction vectors and their combined length.
| length | The length of the 2 segments |
| q1 | First direction vector |
| q2 | Second direction vector |

Produce alternator matrix.
This is the cross product represented as a matrix r x a = getH(r) * a
See "anti-symmetric tensor components" from Sadeghi and Incecik
| r | Offset vector |

Get the spherical angles for a vector.
| q | The vector |
| nan_error | If the provided vector is too small or null |

rotation to a 3x3 mass matrix or any other second order tensor
| R | Rotation matrix |
| M | Mass matrix |

rotation to a 6x6 mass/inertia tensor
see Sadeghi and Incecik 2005 for theory
| R | Rotation matrix |
| M | Mass & Inertia matrix |


Rotation matrix around x axis.
| rads | The angle in radians |
Rotation matrix around y axis.
| rads | The angle in radians |

Rotation matrix around z axis.
| rads | The angle in radians |

Compute a vector with the same direction but different length.
| u | The input vector |
| newlength | The new length of the output vector |
| y | The output vector |
newlength is provided 

| void moordyn::transformKinematics | ( | const vec & | rRelBody, |
| const mat & | M, | ||
| const vec & | r, | ||
| const vec6 & | rd, | ||
| vec & | rOut, | ||
| vec & | rdOut | ||
| ) |
calculate position and velocity of point based on its position relative to moving 6DOF body
| rRelBody | The point in the body local system of reference |
| M | The rotation matrix |
| r | The position of the local system origin |
| rd | The velocity of the local system origin |
| rOut | The output position with respect the global system of reference |
| rdOut | The output velocity with respect the global system of reference |

Compute the mass matrix on an offset point.
| r | Offset |
| M | Mass matrix |


Compute the mass matrix on an offset point.
| r | Offset |
| M | Mass & Inertia matrix |


|
inline |
Normalized direction vector.
| u | The output normalized direction vector |
| r1 | The orig point |
| r2 | The dest point |

