|
mbsimflexiblebody
4.0.0
|
00001 /* 00002 * contour_2s_neutral_linear_external_FFR.h 00003 * 00004 * Created on: 25.10.2013 00005 * Author: zwang 00006 */ 00007 00008 #ifndef CONTOUR_2S_NEUTRAL_LINEAR_EXTERNAL_FFR_H_ 00009 #define CONTOUR_2S_NEUTRAL_LINEAR_EXTERNAL_FFR_H_ 00010 00011 #include <mbsimFlexibleBody/flexible_body/flexible_body_linear_external_ffr.h> 00012 #include "mbsimFlexibleBody/pointer.h" 00013 #include <mbsimFlexibleBody/contours/contour_2s_neutral_factory.h> 00014 #include "neutral_contour_components/neutral_nurbs_velocity_2s.h" 00015 #include "neutral_contour_components/neutral_nurbs_position_2s.h" 00016 #include "neutral_contour_components/neutral_nurbs_local_position_2s.h" 00017 00018 namespace MBSimFlexibleBody { 00019 00020 class Contour2sNeutralLinearExternalFFR : public MBSimFlexibleBody::Contour2sNeutralFactory { 00021 public: 00025 Contour2sNeutralLinearExternalFFR(const std::string &name_); 00026 00030 Contour2sNeutralLinearExternalFFR(const std::string &name_, FlexibleBodyLinearExternalFFR* parent_, const MatVI & transNodes_, double nodeOffset_, int degU_, int degV_, bool openStructure_); 00031 00035 virtual ~Contour2sNeutralLinearExternalFFR(); 00036 00037 /*INHERITED INTERFACE */ 00038 virtual void init(InitStage stage); 00039 virtual void updateKinematicsForFrame(MBSim::ContourPointData &cp, MBSim::Frame::Feature ff); 00040 virtual void updateJacobiansForFrame(MBSim::ContourPointData &cp, int j = 0); 00041 virtual void updateStateDependentVariables(double t); 00042 00043 00044 /* GETTER / SETTER*/ 00045 int getNumberOfTransNodesU(); 00046 int getNumberOfTransNodesV(); 00047 00053 void setTransNodes(const fmatvec::MatVI & transNodes); 00054 00061 void readTransNodes(std::string file); 00062 00066 fmatvec::MatVI getTransNodes(); 00067 00068 00072 void setdegU(int deg); 00073 00077 void setdegV(int deg); 00078 00082 void setOpenStructure(bool openstructure); 00083 00087 bool getOpenStructure(); 00088 00089 protected: 00090 virtual NeutralNurbsVelocity2s* createNeutralVelocity(); 00091 virtual NeutralNurbsPosition2s* createNeutralPosition(); 00092 virtual NeutralNurbsLocalPosition2s* createNeutralLocalPosition(); 00093 virtual void createNeutralModeShape(); 00094 00101 fmatvec::MatVI transNodes; 00102 00106 double nodeOffset; 00107 00111 // fmatvec::GeneralMatrix<ContourPointData> transContourPoints; 00112 Vec uk; 00113 Vec vl; 00114 int degU; 00115 int degV; 00116 bool openStructure; 00117 00118 NeutralNurbsPosition2s* NP; 00119 NeutralNurbsLocalPosition2s* NLP; 00120 NeutralNurbsVelocity2s* NV; 00121 00122 int qSize; 00123 00124 std::vector<MBSim::NurbsSurface> surfaceModeShape; // size = number of elastic coordinates 00125 00126 }; 00127 00128 } /* namespace MBSimFlexibleBody */ 00129 #endif
1.8.0