mbsimflexiblebody  4.0.0
flexible_body_2s_13_disk.h
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_DISK_H_
00021 #define _FLEXIBLE_BODY_2S_13_DISK_H_
00022 
00023 #include "mbsimFlexibleBody/flexible_body/flexible_body_2s_13.h"
00024 #include "mbsimFlexibleBody/flexible_body/finite_elements/finite_element_2s_13_disk.h"
00025 
00026 namespace MBSimFlexibleBody {
00027 
00040   class FlexibleBody2s13Disk : public FlexibleBody2s13 {
00041     public:
00046       FlexibleBody2s13Disk(const std::string &name);
00047 
00051       virtual ~FlexibleBody2s13Disk() {}
00052 
00053       /* INHERITED INTERFACE OF OBJECTINTERFACE */
00054       virtual void updateM(double t, int j=0);
00055       /***************************************************/
00056 
00057       /* INHERITED INTERFACE OF FLEXIBLE BODY */
00058       virtual void BuildElements();
00059       virtual void GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec);
00060       virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat);
00061       virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat);
00062       virtual void updateKinematicsForFrame(MBSim::ContourPointData &cp, MBSim::Frame::Frame::Feature ff, MBSim::Frame *frame=0);
00063       virtual void updateJacobiansForFrame(MBSim::ContourPointData &data, MBSim::Frame *frame=0);
00064       /***************************************************/
00065 
00066       /* INHERITED INTERFACE OF OBJECT */
00067       virtual void init(InitStage stage);
00068       /***************************************************/
00069 
00070       /* INHERITED INTERFACE OF ELEMENT */
00071       virtual std::string getType() const { return "FlexibleBody2s13Disk"; }
00072       /***************************************************/
00073 
00074       /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */
00075       virtual fmatvec::Vec transformCW(const fmatvec::Vec& WrPoint);
00076       /***************************************************/
00077 
00078     protected:
00079       /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */
00080       virtual void initMatrices();
00081       virtual void updateAG();
00082       /***************************************************/
00083 
00084   };
00085 
00086   inline void FlexibleBody2s13Disk::GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13Disk::GlobalVectorContribution): Not implemented!"); }
00087   inline void FlexibleBody2s13Disk::GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13Disk::GlobalMatrixContribution): Not implemented!"); }
00088   inline void FlexibleBody2s13Disk::GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13Disk::GlobalMatrixContribution): Not implemented!"); }
00089 
00090 }
00091 
00092 #endif /* _FLEXIBLE_BODY_2S_13_DISK_H_ */
00093