mbsimflexiblebody  4.0.0
angles.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 ANGLES_H_
00021 #define ANGLES_H_
00022 
00023 #include <mbsim/functions/function.h>
00024 
00025 namespace MBSimFlexibleBody {
00026 
00035   class Angles : public MBSim::Function<fmatvec::RotMat3(fmatvec::VecV, double)> {
00036     public:
00040       Angles();
00044       virtual ~Angles();
00045 
00046       /* INTERFACE OF ROTATION */
00047       virtual fmatvec::RotMat3 operator()(const fmatvec::VecV &q, const double &t);
00048       /***************************************************/
00049 
00050       /* INTERFACE */
00054       virtual fmatvec::Vec3 computet(const fmatvec::Vec& q) const = 0;
00055 
00060       virtual fmatvec::Vec3 computen(const fmatvec::Vec& q) const = 0;
00061 
00066       virtual fmatvec::Vec3 computeb(const fmatvec::Vec& q) const = 0;
00067 
00072       virtual fmatvec::Vec computentil(const fmatvec::Vec& q) const = 0;                
00073 
00078       virtual fmatvec::Vec computebtil(const fmatvec::Vec& q) const = 0;        
00079 
00084       virtual fmatvec::SqrMat computetq(const fmatvec::Vec& q) const = 0;               
00085 
00090       virtual fmatvec::SqrMat computenq(const fmatvec::Vec& q) const = 0;               
00091 
00096       virtual fmatvec::SqrMat computebq(const fmatvec::Vec& q) const = 0;
00097 
00102       virtual fmatvec::SqrMat computentilq(const fmatvec::Vec& q) const = 0;            
00103 
00108       virtual fmatvec::SqrMat computebtilq(const fmatvec::Vec& q) const = 0;
00109 
00114       virtual fmatvec::Mat computetq2(const fmatvec::Vec& q) const = 0;         
00115 
00120       virtual fmatvec::Mat computenq2(const fmatvec::Vec& q) const = 0;         
00121 
00126       virtual fmatvec::Mat computebq2(const fmatvec::Vec& q) const = 0;
00127 
00132       virtual fmatvec::Mat computentilq2(const fmatvec::Vec& q) const = 0;              
00133 
00138       virtual fmatvec::Mat computebtilq2(const fmatvec::Vec& q) const = 0;
00139       /********************************************************/
00140 
00141       /* NODAL FUNCTIONS */
00147       fmatvec::Vec computett(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;               
00148 
00154       fmatvec::Vec computent(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;               
00155 
00161       fmatvec::Vec computebt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00162 
00168       fmatvec::Vec computentilt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;            
00169 
00175       fmatvec::Vec computebtilt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00176 
00182       fmatvec::SqrMat computetqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00183 
00189       fmatvec::SqrMat computenqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00190 
00196       fmatvec::SqrMat computebqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00197 
00203       fmatvec::SqrMat computentilqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00204 
00210       fmatvec::SqrMat computebtilqt(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00211 
00217       virtual fmatvec::Vec computeOmega(const fmatvec::Vec& q,const fmatvec::Vec& qt) const;
00218 
00223       virtual fmatvec::SqrMat computeT(const fmatvec::Vec& q) const; // JacobianOfRotation = G
00224       /********************************************************/
00225   };
00226 
00227 }
00228 
00229 #endif /*ANGLES_H_*/
00230