21 #ifndef BODY_FLEXIBLE_1S_01_TORSION_H_
22 #define BODY_FLEXIBLE_1S_01_TORSION_H_
24 #include "body_flexible.h"
38 double E, rho, A, I , l;
50 void init(InitStage stage);
53 void updateStateDependentVariables(
double t);
54 void updatePorts(
double t);
58 void updateh(
double t);
92 Mat computeJacobianMatrix(
const ContourPointData &S_);
94 Mat computeWt (
const ContourPointData &S_){
return Axis; }
95 Vec computeWn (
const ContourPointData &S_){
return Vec(3); }
96 Vec computeWrOC(
const ContourPointData &S_){
return WrON00 + S_.alpha(0) * Axis;}
97 Vec computeWvC (
const ContourPointData &S_){
return Vec(3); }
108 void setJR(
const Vec &JR_) {assert(JR_.cols()==1); JR = JR_; Axis = JR_;};
112 void setWrON00(
const Vec &WrON00_) {WrON00 = WrON00_;}