|
mbsimflexiblebody
4.0.0
|
00001 /* Copyright (C) 2004-2011 MBSim Development Team 00002 * 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 * Contact: thorsten.schindler@mytum.de 00018 */ 00019 00020 #ifndef _FLEXIBLE_BODY_2S_13_MFR_MINDLIN_H_ 00021 #define _FLEXIBLE_BODY_2S_13_MFR_MINDLIN_H_ 00022 00023 #include "mbsimFlexibleBody/flexible_body/flexible_body_2s_13.h" 00024 #include "mbsimFlexibleBody/flexible_body/finite_elements/finite_element_2s_13_mfr_mindlin.h" 00025 00026 namespace MBSimFlexibleBody { 00027 00037 class FlexibleBody2s13MFRMindlin : public FlexibleBody2s13 { 00038 public: 00043 FlexibleBody2s13MFRMindlin(const std::string &name, const int & DEBUGLEVEL_ = 0); 00044 00048 virtual ~FlexibleBody2s13MFRMindlin(); 00049 00050 /* INHERITED INTERFACE OF FLEXIBLE BODY CONTINUUM */ 00051 using FlexibleBodyContinuum<fmatvec::Vec>::addFrame; 00052 /***************************************************/ 00053 00054 /* INHERITED INTERFACE OF OBJECTINTERFACE */ 00055 virtual void updateM(double t, int k=0); 00056 /***************************************************/ 00057 00058 /* INHERITED INTERFACE OF FLEXIBLE BODY */ 00059 virtual void BuildElements(); 00060 virtual void GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec); 00061 virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat); 00062 virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat); 00063 virtual void updateKinematicsForFrame(MBSim::ContourPointData &cp, MBSim::Frame::Feature ff, MBSim::Frame *frame=0); 00064 virtual void updateJacobiansForFrame(MBSim::ContourPointData &data, MBSim::Frame *frame=0); 00065 /***************************************************/ 00066 00067 /* INHERITED INTERFACE OF OBJECT */ 00068 virtual void init(InitStage stage); 00069 /***************************************************/ 00070 00071 /* INHERITED INTERFACE OF ELEMENT */ 00072 virtual std::string getType() const { return "FlexibleBody2s13MFRMindlin"; } 00073 /***************************************************/ 00074 00075 /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */ 00076 virtual fmatvec::Vec transformCW(const fmatvec::Vec& WrPoint); 00077 /***************************************************/ 00078 00079 protected: 00080 /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */ 00081 virtual void initMatrices(); 00082 virtual void updateAG(); 00083 /***************************************************/ 00084 00088 void computeStiffnessMatrix(); 00089 00093 void computeConstantMassMatrixParts(); 00094 00098 fmatvec::Mat* N_compl; 00099 00103 fmatvec::SqrMat* N_ij[3][3]; 00104 00108 fmatvec::RowVec* NR_ij[3][3]; 00109 00113 fmatvec::Vec* R_compl; 00114 00118 fmatvec::SymMat* R_ij; 00119 }; 00120 00121 inline void FlexibleBody2s13MFRMindlin::GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13MFRMindlin::GlobalVectorContribution): Not implemented!"); } 00122 inline void FlexibleBody2s13MFRMindlin::GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13MFRMindlin::GlobalMatrixContribution): Not implemented!"); } 00123 inline void FlexibleBody2s13MFRMindlin::GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13MFRMindlin::GlobalMatrixContribution): Not implemented!"); } 00124 00125 } 00126 00127 #endif /* _FLEXIBLE_BODY_2S_13_MFR_MINDLIN_H_ */ 00128
1.8.0