mbsimflexiblebody  3.0.0
flexible_body_2s_13_mfr_mindlin.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_MFR_MINDLIN_H_
21 #define _FLEXIBLE_BODY_2S_13_MFR_MINDLIN_H_
22 
23 #include "mbsimFlexibleBody/flexible_body/flexible_body_2s_13.h"
24 #include "mbsimFlexibleBody/flexible_body/finite_elements/finite_element_2s_13_mfr_mindlin.h"
25 
26 namespace MBSimFlexibleBody {
27 
38  public:
43  FlexibleBody2s13MFRMindlin(const std::string &name, const int & DEBUGLEVEL_ = 0);
44 
49 
50  /* INHERITED INTERFACE OF FLEXIBLE BODY CONTINUUM */
52  /***************************************************/
53 
54  /* INHERITED INTERFACE OF OBJECTINTERFACE */
55  virtual void updateM(double t, int k=0);
56  /***************************************************/
57 
58  /* INHERITED INTERFACE OF FLEXIBLE BODY */
59  virtual void BuildElements();
60  virtual void GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec);
61  virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat);
62  virtual void GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat);
63  virtual void updateKinematicsForFrame(MBSim::ContourPointData &cp, MBSim::FrameFeature ff, MBSim::Frame *frame=0);
64  virtual void updateJacobiansForFrame(MBSim::ContourPointData &data, MBSim::Frame *frame=0);
65  /***************************************************/
66 
67  /* INHERITED INTERFACE OF OBJECT */
68  virtual void init(MBSim::InitStage stage);
69  /***************************************************/
70 
71  /* INHERITED INTERFACE OF ELEMENT */
72  virtual std::string getType() const { return "FlexibleBody2s13MFRMindlin"; }
73  /***************************************************/
74 
75  /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */
76  virtual fmatvec::Vec transformCW(const fmatvec::Vec& WrPoint);
77  /***************************************************/
78 
79  protected:
80  /* INHERITED INTERFACE OF FLEXIBLEBODY2s13 */
81  virtual void initMatrices();
82  virtual void updateAG();
83  /***************************************************/
84 
89 
94 
98  fmatvec::Mat* N_compl;
99 
103  fmatvec::SqrMat* N_ij[3][3];
104 
108  fmatvec::RowVec* NR_ij[3][3];
109 
113  fmatvec::Vec* R_compl;
114 
118  fmatvec::SymMat* R_ij;
119  };
120 
121  inline void FlexibleBody2s13MFRMindlin::GlobalVectorContribution(int CurrentElement, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13MFRMindlin::GlobalVectorContribution): Not implemented!"); }
122  inline void FlexibleBody2s13MFRMindlin::GlobalMatrixContribution(int CurrentElement, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13MFRMindlin::GlobalMatrixContribution): Not implemented!"); }
123  inline void FlexibleBody2s13MFRMindlin::GlobalMatrixContribution(int CurrentElement, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat) { throw MBSim::MBSimError("ERROR(FlexibleBody2s13MFRMindlin::GlobalMatrixContribution): Not implemented!"); }
124 
125 }
126 
127 #endif /* _FLEXIBLE_BODY_2S_13_MFR_MINDLIN_H_ */
128