|
mbsimflexiblebody
4.0.0
|
flexible body for planar beam using Cosserat model More...
#include <flexible_body_1s_21_cosserat.h>
Public Member Functions | |
| FlexibleBody1s21Cosserat (const std::string &name, bool openStructure) | |
| constructor | |
| virtual | ~FlexibleBody1s21Cosserat () |
| destructor | |
| virtual void | updateM (double t, int k=0) |
| virtual void | BuildElements () |
| references finite element coordinates to assembled coordinates | |
| virtual void | GlobalVectorContribution (int n, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec) |
| insert 'local' information in global vectors | |
| virtual void | GlobalMatrixContribution (int n, const fmatvec::Mat &locMat, fmatvec::Mat &gloMat) |
| insert 'local' information in global matrices | |
| virtual void | GlobalMatrixContribution (int n, const fmatvec::SymMat &locMat, fmatvec::SymMat &gloMat) |
| insert 'local' information in global matrices | |
| virtual void | updateKinematicsForFrame (MBSim::ContourPointData &cp, MBSim::Frame::Frame::Feature ff, MBSim::Frame *frame=0) |
| cartesian kinematic for contour or external frame (normal, tangent, binormal) is set by implementation class | |
| virtual void | updateJacobiansForFrame (MBSim::ContourPointData &data, MBSim::Frame *frame=0) |
| Jacobians and gyroscopes for contour or external frame are set by implementation class. | |
| virtual void | exportPositionVelocity (const std::string &filenamePos, const std::string &filenameVel=std::string(), const int °=3, const bool &writePsFile=false) |
| interpolates the position and optional the velocity coordinates of the flexible body with Nurbs-package and exports the nurbs curve in the specified file | |
| virtual void | importPositionVelocity (const std::string &filenamePos, const std::string &filenameVel=std::string()) |
| imports the interpolated position and optional the velocity files (created with exportPositionVelocity) and fits the rigid and flexible coordinate dofs and optional the translatory velocity components of flexible body to the imported nurbs curve | |
| virtual void | init (InitStage stage) |
| virtual double | computePotentialEnergy () |
| virtual void | facLLM (int i=0) |
| virtual void | updateh (double t, int i=0) |
| virtual void | updateStateDependentVariables (double t) |
| virtual void | plot (double t, double dt=1) |
| virtual std::string | getType () const |
| void | setNumberElements (int n) |
| void | setMomentsInertia (double I1_) |
| void | setCurlRadius (double R1_) |
| void | setMaterialDamping (double cEps0D_, double cEps1D_) |
| int | getNumberElements () const |
| double | getLength () const |
| bool | isOpenStructure () const |
| void | enablePOD (const std::string &h5Path, int reduceMode=0, int POMSize=0) |
| fmatvec::Vec | computeState (double s) |
| compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates | |
| fmatvec::Vec3 | computeAngles (double sGlobal, const fmatvec::Vec &vec) |
| compute angles at Lagrangian coordinate in local FE coordinates | |
| void | initInfo () |
| initialise beam only for giving information with respect to state, number elements, length, (not for simulation) | |
Protected Member Functions | |
| FlexibleBody1s21Cosserat (const FlexibleBody1s21Cosserat &) | |
| FlexibleBody1s21Cosserat & | operator= (const FlexibleBody1s21Cosserat &) |
| void | BuildElementTranslation (const double &sGlobal, double &sLocal, int ¤tElementTranslation) |
| detect current finite element (translation) | |
| void | initM () |
| initialize translational part of mass matrix and calculate Cholesky decomposition | |
| void | computeBoundaryCondition () |
| compute boundary conditions for rotation grid first and last finite difference rotation beam element refer to values not directly given by dof in open structure they have to be estimated in the following function | |
| void | GlobalVectorContributionRotation (int n, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec) |
| insert 'local' information in global vectors for rotation grid | |
| fmatvec::Mat | readPositionMatrix (const std::string &h5File, const std::string &job) |
| read position matrix of other simulation for POD-reduction | |
| int | findPOMSize (const fmatvec::Mat &POM, const fmatvec::Mat &SVD, double precission=1-1.e-3) |
| find reduction order for POM | |
Protected Attributes | |
| fmatvec::SymMat | MConst |
| constant mass matrix | |
| fmatvec::SymMat | LLMConst |
| constant decomposed mass matrix | |
| bool | JInterp |
| marker if Jacobians already interpolated | |
| bool | PODreduced |
| bool true: execute POD, false: without POD | |
| fmatvec::Mat | U |
| POM projection matrix. | |
| fmatvec::Vec | qFull |
| vector of position-DOFs of full system | |
| fmatvec::Vec | uFull |
| vector of velocity-DOFs of full system | |
| fmatvec::Vec | hFull |
| vector of smooth right-hand side of full system | |
flexible body for planar beam using Cosserat model
compute boundary conditions TODO
open structure TODO
Cosserat model based on H. Lang, J. Linn, M. Arnold: Multi-body dynamics simulation of geometrically exact Cosserat rods but with
| MBSimFlexibleBody::FlexibleBody1s21Cosserat::FlexibleBody1s21Cosserat | ( | const std::string & | name, |
| bool | openStructure | ||
| ) |
constructor
| name | of body |
| bool | to specify open (cantilever) or closed (ring) structure |
| void MBSimFlexibleBody::FlexibleBody1s21Cosserat::BuildElementTranslation | ( | const double & | sGlobal, |
| double & | sLocal, | ||
| int & | currentElementTranslation | ||
| ) | [protected, virtual] |
detect current finite element (translation)
| global | parametrisation |
| local | parametrisation |
| finite | element number |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| fmatvec::Vec3 MBSimFlexibleBody::FlexibleBody1s21Cosserat::computeAngles | ( | double | sGlobal, |
| const fmatvec::Vec & | vec | ||
| ) | [virtual] |
compute angles at Lagrangian coordinate in local FE coordinates
| Lagrangian | coordinate |
| vector | to interpolate linearily |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| fmatvec::Vec MBSimFlexibleBody::FlexibleBody1s21Cosserat::computeState | ( | double | s | ) | [virtual] |
compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates
| Lagrangian | coordinate |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::exportPositionVelocity | ( | const std::string & | filenamePos, |
| const std::string & | filenameVel = std::string(), |
||
| const int & | deg = 3, |
||
| const bool & | writePsFile = false |
||
| ) | [virtual] |
interpolates the position and optional the velocity coordinates of the flexible body with Nurbs-package and exports the nurbs curve in the specified file
| filenamePos | Name of the exported position curve file |
| filenameVel | Name of the exported velocity curve file |
| deg | Degree of Nurbs interpolation |
| writePsFile | A Postscript-file of the curve profile is created |
Remark: the knot vector is parametrized between [0,L]
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| int MBSimFlexibleBody::FlexibleBody1s21Cosserat::findPOMSize | ( | const fmatvec::Mat & | POM, |
| const fmatvec::Mat & | SVD, | ||
| double | precission = 1-1.e-3 |
||
| ) | [protected] |
find reduction order for POM
| POM | POM-Matrix (matrix of the different states) |
| SVD | SVD-Matrix (single-valued decomposed matrix) |
| precission | value of how precise the reduction should be |
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::GlobalMatrixContribution | ( | int | CurrentElement, |
| const fmatvec::Mat & | locMat, | ||
| fmatvec::Mat & | gloMat | ||
| ) | [virtual] |
insert 'local' information in global matrices
| CurrentElement | number of current finite element |
| locMat | local matrix |
| gloMat | global matrix |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::GlobalMatrixContribution | ( | int | CurrentElement, |
| const fmatvec::SymMat & | locMat, | ||
| fmatvec::SymMat & | gloMat | ||
| ) | [virtual] |
insert 'local' information in global matrices
| CurrentElement | number of current finite element |
| locMat | local matrix |
| gloMat | global matrix |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::GlobalVectorContribution | ( | int | CurrentElement, |
| const fmatvec::Vec & | locVec, | ||
| fmatvec::Vec & | gloVec | ||
| ) | [virtual] |
insert 'local' information in global vectors
| number | of finite element |
| local | vector |
| global | vector |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| void MBSimFlexibleBody::FlexibleBody1s21Cosserat::GlobalVectorContributionRotation | ( | int | n, |
| const fmatvec::Vec & | locVec, | ||
| fmatvec::Vec & | gloVec | ||
| ) | [protected, virtual] |
insert 'local' information in global vectors for rotation grid
| number | of finite element |
| local | vector |
| global | vector |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::importPositionVelocity | ( | const std::string & | filenamePos, |
| const std::string & | filenameVel = std::string() |
||
| ) | [virtual] |
imports the interpolated position and optional the velocity files (created with exportPositionVelocity) and fits the rigid and flexible coordinate dofs and optional the translatory velocity components of flexible body to the imported nurbs curve
| filenamePos | Name of the imported position curve file |
| filenameVel | Name of the imported velocity curve file |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| fmatvec::Mat MBSimFlexibleBody::FlexibleBody1s21Cosserat::readPositionMatrix | ( | const std::string & | h5File, |
| const std::string & | job | ||
| ) | [protected] |
read position matrix of other simulation for POD-reduction
| h5File | path to h5-file |
| job | defines the matrix, that should be used for the reduction |
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::updateJacobiansForFrame | ( | MBSim::ContourPointData & | data, |
| MBSim::Frame * | frame = 0 |
||
| ) | [virtual] |
Jacobians and gyroscopes for contour or external frame are set by implementation class.
| data | contour parameter |
| frame,: | optional external frame, otherwise contour parameters are changed |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1s21Cosserat::updateKinematicsForFrame | ( | MBSim::ContourPointData & | data, |
| MBSim::Frame::Frame::Feature | ff, | ||
| MBSim::Frame * | frame = 0 |
||
| ) | [virtual] |
cartesian kinematic for contour or external frame (normal, tangent, binormal) is set by implementation class
| data | contour parameter |
| ff | selection of specific calculations for frames |
| frame | optional: external frame, otherwise contour parameters are changed |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
1.8.0