mbsimflexiblebody  3.0.0
flexible_body_2s_13_disk.h
1 /* Copyright (C) 2004-2011 MBSim Development Team
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16  *
17  * Contact: thorsten.schindler@mytum.de
18  */
19 
20 #ifndef _FLEXIBLE_BODY_2S_13_DISK_H_
21 #define _FLEXIBLE_BODY_2S_13_DISK_H_
22 
23 #include "mbsimFlexibleBody/flexible_body/flexible_body_2s_13.h"
24 #include "mbsimFlexibleBody/flexible_body/finite_elements/finite_element_2s_13_disk.h"
25 
26 namespace MBSimFlexibleBody {
27 
41  public:
46  FlexibleBody2s13Disk(const std::string &name);
47 
51  virtual ~FlexibleBody2s13Disk() {}
52 
53  /* INHERITED INTERFACE OF OBJECTINTERFACE */
54  virtual void updateM(double t, int j=0);
55  /***************************************************/
56 
57  /* INHERITED INTERFACE OF FLEXIBLE BODY */
58  virtual void BuildElements();
59  virtual void GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec);
60  virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat);
61  virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat);
62  virtual void updateKinematicsForFrame(MBSim::ContourPointData &cp, MBSim::FrameFeature ff, MBSim::Frame *frame=0);
63  virtual void updateJacobiansForFrame(MBSim::ContourPointData &data, MBSim::Frame *frame=0);
64  /***************************************************/
65 
66  /* INHERITED INTERFACE OF OBJECT */
67  virtual void init(MBSim::InitStage stage);
68  /***************************************************/
69 
70  /* INHERITED INTERFACE OF ELEMENT */
71  virtual std::string getType() const { return "FlexibleBody2s13Disk"; }
72  /***************************************************/
73 
74  /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */
75  virtual fmatvec::Vec transformCW(const fmatvec::Vec& WrPoint);
76  /***************************************************/
77 
78  protected:
79  /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */
80  virtual void initMatrices();
81  virtual void updateAG();
82  /***************************************************/
83 
84  };
85 
86  inline void FlexibleBody2s13Disk::GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13Disk::GlobalVectorContribution): Not implemented!"); }
87  inline void FlexibleBody2s13Disk::GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13Disk::GlobalMatrixContribution): Not implemented!"); }
88  inline void FlexibleBody2s13Disk::GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13Disk::GlobalMatrixContribution): Not implemented!"); }
89 
90 }
91 
92 #endif /* _FLEXIBLE_BODY_2S_13_DISK_H_ */
93