20 #ifndef FLEXIBLEBODY2S13_H_
21 #define FLEXIBLEBODY2S13_H_
23 #include "mbsimFlexibleBody/flexible_body.h"
25 namespace MBSimFlexibleBody {
32 enum LockType { innerring,outerring };
40 fmatvec::Mat condenseMatrixRows(fmatvec::Mat A, fmatvec::Index I);
48 fmatvec::Mat condenseMatrixCols(fmatvec::Mat A, fmatvec::Index I);
56 fmatvec::SymMat condenseMatrix(fmatvec::SymMat A,fmatvec::Index I);
62 void MapleOutput(fmatvec::Mat A, std::string MatName, std::string file);
68 void MapleOutput(fmatvec::SymMat C, std::string MatName, std::string file);
94 virtual void updateh(
double t,
int j=0);
95 virtual void updatedhdz(
double t);
96 virtual void updateStateDependentVariables(
double t);
100 virtual void facLLM() {};
103 virtual void plot(
double t,
double dt=1);
104 virtual std::string getType()
const {
return "FlexibleBody2s13"; }
108 void setRadius(
double Ri_,
double Ra_) {
Ri = Ri_; Ra = Ra_; }
109 void setEModul(
double E_) {
E = E_; }
110 void setPoissonRatio(
double nu_) {
nu = nu_; }
111 void setThickness(
const fmatvec::Vec &d_) {
d = d_; }
112 fmatvec::Vec getThickness()
const {
return d; }
113 void setDensity(
double rho_) {
rho = rho_; }
114 int getReferenceDegreesOfFreedom()
const {
return RefDofs; }
115 int getRadialNumberOfElements()
const {
return nr; }
116 int getAzimuthalNumberOfElements()
const {
return nj; }
117 double getInnerRadius()
const {
return Ri; }
118 double getOuterRadius()
const {
return Ra; }
119 double getAzimuthalDegree()
const {
return degU; }
120 double getRadialDegree()
const {
return degV; }
121 fmatvec::SqrMat getA()
const {
return A; }
122 fmatvec::SqrMat getG()
const {
return G; }
123 void setReferenceInertia(
double m0_, fmatvec::SymMat J0_) {
m0 = m0_;
J0 = J0_; }
124 void setLockType(LockType LT_) {
LType = LT_; }
144 virtual fmatvec::Vec
transformCW(
const fmatvec::Vec& WrPoint) = 0;