|
mbsimflexiblebody
4.0.0
|
finite element for spatial beam using Cosserat model More...
#include <flexible_body_1s_cosserat.h>
Public Member Functions | |
| FlexibleBody1sCosserat (const std::string &name, bool openStructure) | |
| constructor | |
| virtual | ~FlexibleBody1sCosserat () |
| destructor | |
| virtual void | BuildElements ()=0 |
| references finite element coordinates to assembled coordinates | |
| virtual void | GlobalVectorContribution (int n, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec)=0 |
| insert 'local' information in global vectors | |
| virtual void | GlobalMatrixContribution (int n, const fmatvec::Mat &locMat, fmatvec::Mat &gloMat)=0 |
| insert 'local' information in global matrices | |
| virtual void | GlobalMatrixContribution (int n, const fmatvec::SymMat &locMat, fmatvec::SymMat &gloMat)=0 |
| insert 'local' information in global matrices | |
| virtual void | updateKinematicsForFrame (MBSim::ContourPointData &cp, MBSim::Frame::Frame::Feature ff, MBSim::Frame *frame=0)=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)=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)=0 |
| 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())=0 |
| 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)=0 |
| virtual double | computePotentialEnergy ()=0 |
| virtual void | facLLM (int i=0)=0 |
| virtual void | updateh (double t, int i=0) |
| virtual void | updateStateDependentVariables (double t) |
| virtual void | plot (double t, double dt=1)=0 |
| virtual std::string | getType () const |
| virtual void | setNumberElements (int n)=0 |
| void | setLength (double L_) |
| void | setEGModuls (double E_, double G_) |
| void | setDensity (double rho_) |
| void | setCrossSectionalArea (double A_) |
| virtual void | setMomentsInertia (double I1_, double I2_, double I0_) |
| virtual void | setMomentsInertia (double I1_) |
| virtual void | setCurlRadius (double R1_, double R2_) |
| virtual void | setCurlRadius (double R1_) |
| virtual void | setMaterialDamping (double cEps0D_, double cEps1D_, double cEps2D_) |
| virtual void | setMaterialDamping (double cEps0D_, double cEps1D_) |
| void | setCylinder (double cylinderRadius_) |
| void | setCuboid (double cuboidBreadth_, double cuboidHeight_) |
| int | getNumberElements () const |
| double | getLength () const |
| bool | isOpenStructure () const |
| virtual fmatvec::Vec | computeState (double s)=0 |
| compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates | |
| virtual fmatvec::Vec3 | computeAngles (double sGlobal, const fmatvec::Vec &vec)=0 |
| compute angles at Lagrangian coordinate in local FE coordinates | |
| virtual void | initInfo ()=0 |
| initialise beam only for giving information with respect to state, number elements, length, (not for simulation) | |
Protected Member Functions | |
| FlexibleBody1sCosserat (const FlexibleBody1sCosserat &) | |
| FlexibleBody1sCosserat & | operator= (const FlexibleBody1sCosserat &) |
| virtual void | BuildElementTranslation (const double &sGlobal, double &sLocal, int ¤tElementTranslation)=0 |
| detect current finite element (translation) | |
| virtual void | initM ()=0 |
| initialize translational part of mass matrix and calculate Cholesky decomposition | |
| virtual void | computeBoundaryCondition ()=0 |
| 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 | |
| virtual void | GlobalVectorContributionRotation (int n, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec)=0 |
| insert 'local' information in global vectors for rotation grid | |
Protected Attributes | |
|
std::vector < MBSim::DiscretizationInterface * > | rotationDiscretization |
| stl-vector of finite elements for rotation grid | |
| std::vector< fmatvec::Vec > | qRotationElement |
| stl-vector of finite element positions for rotation grid | |
| std::vector< fmatvec::Vec > | uRotationElement |
| stl-vector of finite element wise velocities for rotation grid | |
| CylinderFlexible * | cylinder |
| contours | |
| FlexibleBand * | top |
| FlexibleBand * | bottom |
| FlexibleBand * | left |
| FlexibleBand * | right |
| Contour1sFlexible * | neutralFibre |
| CardanPtr | angle |
| angle parametrisation | |
| int | Elements |
| number of translational elements | |
| int | rotationalElements |
| number of rotational elements =Elements (for a closed structure) or =Elements+1 (for an open structure) | |
| double | L |
| length of entire beam and finite elements | |
| double | l0 |
| double | E |
| elastic modules | |
| double | G |
| double | A |
| area of cross-section | |
| double | I1 |
| area moments of inertia I0: around torsional axis I1: in t-b-plane I2: in t-n-plane | |
| double | rho |
| density | |
| double | R1 |
| radius of undeformed shape R1: in t-b-plane R2: in t-n-plane | |
| double | cEps0D |
| strain damping | |
| double | cEps1D |
| bool | openStructure |
| open or closed beam structure | |
| bool | initialised |
| initialised FLAG | |
| fmatvec::Vec | bound_ang_start |
| 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 by the following values calculated in computeBoundaryCondition() | |
| fmatvec::Vec | bound_ang_end |
| fmatvec::Vec | bound_ang_vel_start |
| fmatvec::Vec | bound_ang_vel_end |
| double | cuboidBreadth |
| contour data | |
| double | cuboidHeight |
| double | cylinderRadius |
| NurbsCurve1s * | curve |
| contour for state description | |
finite element for spatial beam using Cosserat model
Cosserat model based on H. Lang, J. Linn, M. Arnold: Multi-body dynamics simulation of geometrically exact Cosserat rods but with
| MBSimFlexibleBody::FlexibleBody1sCosserat::FlexibleBody1sCosserat | ( | const std::string & | name, |
| bool | openStructure | ||
| ) |
constructor
| name | of body |
| bool | to specify open (cantilever) or closed (ring) structure |
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::BuildElementTranslation | ( | const double & | sGlobal, |
| double & | sLocal, | ||
| int & | currentElementTranslation | ||
| ) | [protected, pure virtual] |
detect current finite element (translation)
| global | parametrisation |
| local | parametrisation |
| finite | element number |
Implemented in MBSimFlexibleBody::FlexibleBody1s21Cosserat, and MBSimFlexibleBody::FlexibleBody1s33Cosserat.
| virtual fmatvec::Vec3 MBSimFlexibleBody::FlexibleBody1sCosserat::computeAngles | ( | double | sGlobal, |
| const fmatvec::Vec & | vec | ||
| ) | [pure virtual] |
compute angles at Lagrangian coordinate in local FE coordinates
| Lagrangian | coordinate |
Implemented in MBSimFlexibleBody::FlexibleBody1s21Cosserat, and MBSimFlexibleBody::FlexibleBody1s33Cosserat.
| virtual fmatvec::Vec MBSimFlexibleBody::FlexibleBody1sCosserat::computeState | ( | double | s | ) | [pure virtual] |
compute state (positions, angles, velocities, differentiated angles) at Lagrangian coordinate in local FE coordinates
| Lagrangian | coordinate |
Implemented in MBSimFlexibleBody::FlexibleBody1s21Cosserat, and MBSimFlexibleBody::FlexibleBody1s33Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::exportPositionVelocity | ( | const std::string & | filenamePos, |
| const std::string & | filenameVel = std::string( ), |
||
| const int & | deg = 3, |
||
| const bool & | writePsFile = false |
||
| ) | [pure 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]
Reimplemented from MBSimFlexibleBody::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::GlobalMatrixContribution | ( | int | CurrentElement, |
| const fmatvec::Mat & | locMat, | ||
| fmatvec::Mat & | gloMat | ||
| ) | [pure virtual] |
insert 'local' information in global matrices
| CurrentElement | number of current finite element |
| locMat | local matrix |
| gloMat | global matrix |
Implements MBSimFlexibleBody::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::GlobalMatrixContribution | ( | int | CurrentElement, |
| const fmatvec::SymMat & | locMat, | ||
| fmatvec::SymMat & | gloMat | ||
| ) | [pure virtual] |
insert 'local' information in global matrices
| CurrentElement | number of current finite element |
| locMat | local matrix |
| gloMat | global matrix |
Implements MBSimFlexibleBody::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::GlobalVectorContribution | ( | int | CurrentElement, |
| const fmatvec::Vec & | locVec, | ||
| fmatvec::Vec & | gloVec | ||
| ) | [pure virtual] |
insert 'local' information in global vectors
| number | of finite element |
| local | vector |
| global | vector |
Implements MBSimFlexibleBody::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::GlobalVectorContributionRotation | ( | int | n, |
| const fmatvec::Vec & | locVec, | ||
| fmatvec::Vec & | gloVec | ||
| ) | [protected, pure virtual] |
insert 'local' information in global vectors for rotation grid
| number | of finite element |
| local | vector |
| global | vector |
Implemented in MBSimFlexibleBody::FlexibleBody1s21Cosserat, and MBSimFlexibleBody::FlexibleBody1s33Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::importPositionVelocity | ( | const std::string & | filenamePos, |
| const std::string & | filenameVel = std::string( ) |
||
| ) | [pure 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 |
Reimplemented from MBSimFlexibleBody::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::updateJacobiansForFrame | ( | MBSim::ContourPointData & | data, |
| MBSim::Frame * | frame = 0 |
||
| ) | [pure 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::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
| virtual void MBSimFlexibleBody::FlexibleBody1sCosserat::updateKinematicsForFrame | ( | MBSim::ContourPointData & | data, |
| MBSim::Frame::Frame::Feature | ff, | ||
| MBSim::Frame * | frame = 0 |
||
| ) | [pure 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::FlexibleBody.
Implemented in MBSimFlexibleBody::FlexibleBody1s33Cosserat, and MBSimFlexibleBody::FlexibleBody1s21Cosserat.
1.8.0