mbsimflexiblebody  3.0.0
angles.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 ANGLES_H_
21 #define ANGLES_H_
22 
23 #include "mbsim/kinematics.h"
24 #include "fmatvec.h"
25 
26 namespace MBSimFlexibleBody {
27 
36  class Angles : public MBSim::Rotation {
37  public:
41  Angles();
45  virtual ~Angles();
46 
47  /* INTERFACE OF ROTATION */
48  virtual fmatvec::SqrMat operator()(const fmatvec::Vec &q, const double &t, const void * =NULL);
49  /***************************************************/
50 
51  /* INTERFACE */
55  virtual fmatvec::Vec computet(const fmatvec::Vec& q) const = 0;
56 
61  virtual fmatvec::Vec computen(const fmatvec::Vec& q) const = 0;
62 
67  virtual fmatvec::Vec computeb(const fmatvec::Vec& q) const = 0;
68 
73  virtual fmatvec::Vec computentil(const fmatvec::Vec& q) const = 0;
74 
79  virtual fmatvec::Vec computebtil(const fmatvec::Vec& q) const = 0;
80 
85  virtual fmatvec::SqrMat computetq(const fmatvec::Vec& q) const = 0;
86 
91  virtual fmatvec::SqrMat computenq(const fmatvec::Vec& q) const = 0;
92 
97  virtual fmatvec::SqrMat computebq(const fmatvec::Vec& q) const = 0;
98 
103  virtual fmatvec::SqrMat computentilq(const fmatvec::Vec& q) const = 0;
104 
109  virtual fmatvec::SqrMat computebtilq(const fmatvec::Vec& q) const = 0;
110 
115  virtual fmatvec::Mat computetq2(const fmatvec::Vec& q) const = 0;
116 
121  virtual fmatvec::Mat computenq2(const fmatvec::Vec& q) const = 0;
122 
127  virtual fmatvec::Mat computebq2(const fmatvec::Vec& q) const = 0;
128 
133  virtual fmatvec::Mat computentilq2(const fmatvec::Vec& q) const = 0;
134 
139  virtual fmatvec::Mat computebtilq2(const fmatvec::Vec& q) const = 0;
140  /********************************************************/
141 
142  /* NODAL FUNCTIONS */
148  fmatvec::Vec computett(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
149 
155  fmatvec::Vec computent(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
156 
162  fmatvec::Vec computebt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
163 
169  fmatvec::Vec computentilt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
170 
176  fmatvec::Vec computebtilt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
177 
183  fmatvec::SqrMat computetqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
184 
190  fmatvec::SqrMat computenqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
191 
197  fmatvec::SqrMat computebqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
198 
204  fmatvec::SqrMat computentilqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
205 
211  fmatvec::SqrMat computebtilqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
212 
218  fmatvec::Vec computeOmega(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
219 
224  fmatvec::SqrMat computeT(const fmatvec::Vec& q) const;
225  /********************************************************/
226  };
227 
228 }
229 
230 #endif /*ANGLES_H_*/
231