mbsimflexiblebody  3.0.0
finite_element_1s_21_ancf.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  * rzander@users.berlios.de
19  */
20 
21 #ifndef _FINITE_ELEMENT_1S_21_ANCF_H_
22 #define _FINITE_ELEMENT_1S_21_ANCF_H_
23 
24 #include "fmatvec.h"
25 
26 namespace MBSimFlexibleBody {
27 
37  {
38  protected:
39  static const int NodeDOFs;
40  static const int ElementalDOFs;
41 
42  public:
43  double l0, Arho, EA, EI;
44  double wss0;
45  double depsilon;
46  fmatvec::Vec g;
47 
48  double l0h2;
49 
52  // (double l0, double Arho, double EA, double EI, double g);
53  FiniteElement1s21ANCF(double , double , double , double , fmatvec::Vec );
54 
55  // (fmatvec::Vec qElement, fmatvec::Vec qpElement);
56  void berechneM();
57  void berechneh(fmatvec::Vec qElement, fmatvec::Vec qpElement);
58 
59  void setCurleRadius(double){};
60  void setMaterialDamping(double){};//, const double&);
61  void setLehrDamping(double){};
62 
63  fmatvec::SymMat M;
64  fmatvec::Vec h;
65 
66  bool implicit;
67  void Implicit(bool implicit_) {implicit = implicit_;}
68  fmatvec::SqrMat Dhq, Dhqp;
69 
70  fmatvec::SqrMat Damp;
71 
72  // Balkenort
73  fmatvec::Vec LocateBalken(fmatvec::Vec&,double&); // globale Koordinaten
74 
75  fmatvec::Vec StateBalken (fmatvec::Vec&,fmatvec::Vec&,double&); // Zustand - global
76  //Tangente an s
77  fmatvec::Vec Tangente (fmatvec::Vec&,double&);
78  // Eingriffsmatrizen
79  fmatvec::Mat JGeneralized(fmatvec::Vec&,const double&);
80 
81  // Mechanik des Elements mit diesen Koordinaten/Geschwindigkeiten
82  fmatvec::Vec ElementData(fmatvec::Vec qElement, fmatvec::Vec qpElement) {return fmatvec::Vec(0);}
83 
84  private:
85  static const double NumPrec ;// = 1.e-12;
86  static const double epsRel ;// = 1.e-12;
87  static const int Iterations;// = 24;
88 
89  };
90 
91 }
92 
93 #endif