mbsimflexiblebody  3.2.0
finite_element_1s_21_ancf.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  *          rzander@users.berlios.de
00019  */
00020 
00021 #ifndef _FINITE_ELEMENT_1S_21_ANCF_H_
00022 #define _FINITE_ELEMENT_1S_21_ANCF_H_
00023 
00024 #include "fmatvec/fmatvec.h"
00025 
00026 namespace MBSimFlexibleBody {
00027 
00036   class FiniteElement1s21ANCF
00037   {
00038     protected:
00039       static const int NodeDOFs;
00040       static const int ElementalDOFs;
00041 
00042     public:
00043       double l0, Arho, EA, EI;
00044       double wss0;
00045       double depsilon;
00046       fmatvec::Vec g;
00047 
00048       double l0h2;
00049 
00050       FiniteElement1s21ANCF();
00051       ~FiniteElement1s21ANCF();
00052       //        (double l0, double Arho, double EA, double EI, double g);
00053       FiniteElement1s21ANCF(double   , double     , double   , double   , fmatvec::Vec  );
00054 
00055       //              (fmatvec::Vec qElement, fmatvec::Vec qpElement);
00056       void berechneM();
00057       void berechneh(fmatvec::Vec qElement, fmatvec::Vec qpElement);
00058 
00059       void setCurleRadius(double){};
00060       void setMaterialDamping(double){};//, const double&);
00061       void setLehrDamping(double){};
00062 
00063       fmatvec::SymMat M;
00064       fmatvec::Vec h;
00065 
00066       bool implicit;
00067       void Implicit(bool implicit_) {implicit = implicit_;}
00068       fmatvec::SqrMat Dhq, Dhqp;
00069 
00070       fmatvec::SqrMat Damp;
00071 
00072       // Balkenort
00073       fmatvec::Vec LocateBalken(fmatvec::Vec&,double&);      // globale Koordinaten
00074 
00075       fmatvec::Vec StateBalken (fmatvec::Vec&,fmatvec::Vec&,double&); // Zustand - global
00076       //Tangente an s
00077       fmatvec::Vec Tangente    (fmatvec::Vec&,double&);
00078       // Eingriffsmatrizen
00079       fmatvec::Mat JGeneralized(fmatvec::Vec&,const double&);
00080 
00081       // Mechanik des Elements mit diesen Koordinaten/Geschwindigkeiten 
00082       fmatvec::Vec ElementData(fmatvec::Vec qElement, fmatvec::Vec qpElement) {return fmatvec::Vec(0);}
00083 
00084     private:
00085       static const double NumPrec   ;// = 1.e-12;
00086       static const double epsRel   ;// = 1.e-12;
00087       static const int    Iterations;// = 24;
00088 
00089   };
00090 
00091 }
00092 
00093 #endif