|
mbsimflexiblebody
4.0.0
|
finite element for spatial beam using Cosserat model More...
#include <flexible_body_1s_33_cosserat.h>
Public Member Functions | |
| FlexibleBody1s33Cosserat (const std::string &name, bool openStructure) | |
| constructor | |
| virtual | ~FlexibleBody1s33Cosserat () |
| destructor | |
| 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 | updateKinematicsAtNode (NodeFrame *frame, MBSim::Frame::Feature ff) |
| cartesian kinematic on a node | |
| virtual void | updateJacobiansAtNode (NodeFrame *frame, MBSim::Frame::Feature ff) |
| 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_, double I2_, double I0_) |
| void | setCurlRadius (double R1_, double R2_) |
| void | setMaterialDamping (double cEps0D_, double cEps1D_, double cEps2D_) |
| virtual int | getNumberOfElementDOF () const |
| int | getNumberElements () const |
| int | getNumberDOFs () const |
| double | getLength () const |
| bool | isOpenStructure () const |
| 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) | |
| void | BuildElementTranslation (const double &sGlobal, double &sLocal, int ¤tElementTranslation) |
detect current finite element (t
ifdef HAVE_OPENMBVCPPINTERFACEvoid setOpenMBVSpineExtrusion(OpenMBV::SpineExtrusion* spineExtrusion) { openMBVSpineExtrusion = spineExtrusion; } OpenMBV::Body* getOpenMBVSpineExtrusion() { return openMBVSpineExtrusion; }endifranslation) | |
Protected Member Functions | |
| FlexibleBody1s33Cosserat (const FlexibleBody1s33Cosserat &) | |
| FlexibleBody1s33Cosserat & | operator= (const FlexibleBody1s33Cosserat &) |
| 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 | |
Protected Attributes | |
| bool | JTransInterp |
| marker if Jacobians already interpolated | |
| double | I2 |
| area moments of inertia I0: around torsional axis I1: in t-b-plane I2: in t-n-plane | |
| double | I0 |
| double | R2 |
| radius of undeformed shape R1: in t-b-plane R2: in t-n-plane | |
| double | cEps2D |
| strain damping | |
finite element for spatial beam using Cosserat model
compute boundary conditions TODO
check open structure in contact kinematics TODO
Cosserat model based on H. Lang, J. Linn, M. Arnold: Multi-body dynamics simulation of geometrically exact Cosserat rods but with
| MBSimFlexibleBody::FlexibleBody1s33Cosserat::FlexibleBody1s33Cosserat | ( | const std::string & | name, |
| bool | openStructure | ||
| ) |
constructor
| name | of body |
| bool | to specify open (cantilever) or closed (ring) structure |
| void MBSimFlexibleBody::FlexibleBody1s33Cosserat::BuildElementTranslation | ( | const double & | sGlobal, |
| double & | sLocal, | ||
| int & | currentElementTranslation | ||
| ) | [virtual] |
detect current finite element (t
| global | parametrisation |
| local | parametrisation |
| finite | element number |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| fmatvec::Vec3 MBSimFlexibleBody::FlexibleBody1s33Cosserat::computeAngles | ( | double | sGlobal, |
| const fmatvec::Vec & | vec | ||
| ) | [virtual] |
compute angles at Lagrangian coordinate in local FE coordinates
| Lagrangian | coordinate |
| vector | to be interpolated |
Implements MBSimFlexibleBody::FlexibleBody1sCosserat.
| fmatvec::Vec MBSimFlexibleBody::FlexibleBody1s33Cosserat::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::FlexibleBody1s33Cosserat::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.
| virtual void MBSimFlexibleBody::FlexibleBody1s33Cosserat::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::FlexibleBody1s33Cosserat::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::FlexibleBody1s33Cosserat::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::FlexibleBody1s33Cosserat::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::FlexibleBody1s33Cosserat::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.
| virtual void MBSimFlexibleBody::FlexibleBody1s33Cosserat::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::FlexibleBody1s33Cosserat::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