|
mbsimflexiblebody
4.0.0
|
Linear models from external preprocessing, e.g. Finite Element model. More...
#include <flexible_body_linear_external.h>
Public Member Functions | |
| FlexibleBodyLinearExternal (const std::string &name) | |
| constructor | |
| virtual | ~FlexibleBodyLinearExternal () |
| destructor | |
| virtual std::string | getType () const |
| virtual void | init (InitStage stage) |
| virtual void | facLLM () |
| 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::Feature ff, MBSim::Frame *frame=0) |
| virtual void | updateJacobiansForFrame (MBSim::ContourPointData &data, MBSim::Frame *frame=0) |
| Jacobians and gyroscopes for contour or external frame are set by implementation class. | |
| void | readMassMatrix (const std::string &massfilename) |
| void | setMassMatrix (const fmatvec::SymMat &mat) |
| void | readStiffnessMatrix (const std::string &stiffnessfilename) |
| void | setStiffnessMatrix (const fmatvec::SqrMat &mat) |
| void | setProportionalDamping (const double &a, const double &b) |
| void | setWrON00 (const fmatvec::Vec &WrON00_) |
| fmatvec::Mat | computeJacobianMatrix (const MBSim::ContourPointData &CP) |
Protected Member Functions | |
| void | updateStateDependentVariables (double t) |
| void | updateContours (double t) |
| MBSim::ContourPointData | addInterface (const std::string &jacbifilename) |
| MBSim::ContourPointData | addInterface (const fmatvec::Mat &J, const fmatvec::Vec &r) |
| void | updateJh_internal (double t) |
Protected Attributes | |
| int | nContours |
| number of Contours directly asoziated to body | |
|
std::vector < MBSim::ContourPointData > | contourType |
| vector of ContourPointData controlling type of interface: node/interpolation | |
| fmatvec::Vec | WrON00 |
origin of model | |
Linear models from external preprocessing, e.g. Finite Element model.
Systems equation of motion:
with CONSTANT matrices
. The model uses n degrees of freedom (dimension of
) and d translational directions (dimension of Jacobi-matrizes
)
| MBSimFlexibleBody::FlexibleBodyLinearExternal::FlexibleBodyLinearExternal | ( | const std::string & | name | ) |
constructor
| name | of body |
| MBSim::ContourPointData MBSimFlexibleBody::FlexibleBodyLinearExternal::addInterface | ( | const std::string & | jacbifilename | ) | [protected] |
create interface in form of ContourPointData based on file
| jacbifilename | file containing interface data |
| MBSim::ContourPointData MBSimFlexibleBody::FlexibleBodyLinearExternal::addInterface | ( | const fmatvec::Mat & | J, |
| const fmatvec::Vec & | r | ||
| ) | [protected] |
create interface in form of ContourPointData based on Jacobian matrix and undeformed position
| J | Jacobian matrix |
| r | undeformed position in body coordinate system |
| virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::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::FlexibleBody.
| virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::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::FlexibleBody.
| virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::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::FlexibleBody.
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::readMassMatrix | ( | const std::string & | massfilename | ) |
read mass matrix: style e.g. for 2*2 matrix
n x n
[1.0 0.0
0.0 1.0]
| massfilename | name of file holding mass matrix |
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::readStiffnessMatrix | ( | const std::string & | stiffnessfilename | ) |
read stiffness matrix form given file readMassMatrix(const std::string &massfilename)
| stiffnessfilename | name of file holding stiffness matrix |
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::setMassMatrix | ( | const fmatvec::SymMat & | mat | ) |
set mass matrix:
| mat | mass matrix |
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::setProportionalDamping | ( | const double & | a, |
| const double & | b | ||
| ) |
set damping
proportional to mass and stiffness
| a_ | |
| b_ | |
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::setStiffnessMatrix | ( | const fmatvec::SqrMat & | mat | ) |
read stiffness matrix
| mat | stiffness matrix |
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::setWrON00 | ( | const fmatvec::Vec & | WrON00_ | ) | [inline] |
add Port using JACOBIAN matrix and frame location form given file n x d
[1.0
0.0 ]
d x 1
[1.0
0.0
0.0 ]
| name | name of Port create |
| jacobifilename | name of file holding matrices |
add Port using JACOBIAN matrix and location of reference point
| name | of Port to |
| J | Jacobian matrix create |
| r | undeformed reference point in body coordinate system |
add Contour using information given in file for JACOBIAN matrix and location of reference point
| contour | Contour to add |
| jacobifilename | name of file holding matrices |
add Contour using JACOBIAN matrix and location of reference point
| contour | Contour to add |
| J | Jacobian matrix |
| r | undeformed reference point in body coordinate system |
add a ContourInterpolation, no additional information needed
set origin BodyFlexibleLinearExternal::WrON00,
of model
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::updateContours | ( | double | t | ) | [protected] |
Kinematical update of postition and velocities of every Contour:
| t | time |
| virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::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::FlexibleBody.
| virtual void MBSimFlexibleBody::FlexibleBodyLinearExternal::updateKinematicsForFrame | ( | MBSim::ContourPointData & | cp, |
| MBSim::Frame::Feature | ff, | ||
| MBSim::Frame * | frame = 0 |
||
| ) | [virtual] |
Kinematical update of postition and velocities of every attached Frame:
| t | time |
| void MBSimFlexibleBody::FlexibleBodyLinearExternal::updateStateDependentVariables | ( | double | t | ) | [protected, virtual] |
update kinematical values
Call to updateFrames(double t) and updateContours(double t)
| t | time |
Reimplemented from MBSimFlexibleBody::FlexibleBody.
1.8.0