All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
flexible_body_1s_21_ancf.h
1 /* Copyright (C) 2004-2014 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_1S_21_ANCF_H_
21 #define _FLEXIBLE_BODY_1S_21_ANCF_H_
22 
23 #include "mbsimFlexibleBody/flexible_body/flexible_body_1s.h"
24 
25 namespace MBSimFlexibleBody {
26 
27  class NodeFrame;
28 
44 
45  public:
51  FlexibleBody1s21ANCF(const std::string &name, bool openStructure);
52 
53  /* INHERITED INTERFACE OF FLEXIBLE BODY */
54  virtual void updateM() { }
55  virtual void updateLLM() { }
56 
57  virtual void BuildElements();
58 
59  virtual void GlobalVectorContribution(int n, const fmatvec::Vec& locVec, fmatvec::Vec& gloVec);
60  virtual void GlobalMatrixContribution(int n, const fmatvec::Mat& locMat, fmatvec::Mat& gloMat);
61  virtual void GlobalMatrixContribution(int n, const fmatvec::SymMat& locMat, fmatvec::SymMat& gloMat);
62 
63  virtual void updatePositions(Frame1s* frame);
64  virtual void updateVelocities(Frame1s* frame);
65  virtual void updateAccelerations(Frame1s* frame);
66  virtual void updateJacobians(Frame1s* frame, int j=0);
67  virtual void updateGyroscopicAccelerations(Frame1s* frame);
68 
69  virtual void updatePositions(NodeFrame* frame);
70  virtual void updateVelocities(NodeFrame* frame);
71  virtual void updateAccelerations(NodeFrame* frame);
72  virtual void updateJacobians(NodeFrame* frame, int j=0);
73  virtual void updateGyroscopicAccelerations(NodeFrame* frame);
74  /****************************************/
75 
76  /* INHERITED INTERFACE OF OBJECT */
77  virtual void init(InitStage stage, const MBSim::InitConfigSet &config);
78  /***************************************************/
79 
80  /* INHERITED INTERFACE OF ELEMENT */
81  virtual void plot();
82  /***************************************************/
83 
84  /* GETTER / SETTER */
85  void setNumberElements(int n);
86  void setEModul(double E_) { E = E_; }
87  void setCrossSectionalArea(double A_) { A = A_; }
88  void setMomentInertia(double I_) { I = I_; }
89  void setDensity(double rho_) { rho = rho_; }
90  void setCurlRadius(double rc_);
91  void setMaterialDamping(double deps_, double dkappa_);
92  void setEulerPerspective(bool Euler_, double v0_);
93  int getNumberElements(){ return Elements; }
94  /***************************************************/
95 
99  void initInfo();
100 
105  void initRelaxed(double alpha);
106 
107  private:
111  int Elements;
112 
116  double l0;
117 
121  double E;
122 
126  double A;
127 
131  double I;
132 
136  double rho;
137 
141  double rc;
142 
146  double deps;
147 
151  double dkappa;
152 
157 
161  double v0;
162 
166  bool Euler;
167 
171  void initM();
172 
179  void BuildElement(const double& sGlobal, double& sLocal, int& currentElement);
180 
181  fmatvec::Vec3 X;
182  double sOld;
183  };
184 
185 }
186 
187 #endif /* _FLEXIBLE_BODY_1S_21_ANCF_H_ */
double deps
coefficient of material longitudinal damping
Definition: flexible_body_1s_21_ancf.h:146
FlexibleBody1s21ANCF(const std::string &name, bool openStructure)
constructor:
Definition: flexible_body_1s_21_ancf.cc:38
double dkappa
coefficient of material longitudinal damping
Definition: flexible_body_1s_21_ancf.h:151
void initInfo()
initialise beam only for giving information with respect to state, number elements, length, (not for simulation)
Definition: flexible_body_1s_21_ancf.cc:301
tbd
Definition: flexible_body_1s.h:33
Definition: frame_1s.h:27
double rho
material density
Definition: flexible_body_1s_21_ancf.h:136
bool initialised
flag for testing if beam is initialised
Definition: flexible_body_1s_21_ancf.h:156
double I
moment of inertia of cross-section
Definition: flexible_body_1s_21_ancf.h:131
double l0
length of one finite element
Definition: flexible_body_1s_21_ancf.h:116
void BuildElement(const double &sGlobal, double &sLocal, int &currentElement)
detect current finite element
Definition: flexible_body_1s_21_ancf.cc:272
double A
cross-section area
Definition: flexible_body_1s_21_ancf.h:126
void initM()
initialize mass matrix and calculate Cholesky decomposition
Definition: flexible_body_1s_21_ancf.cc:288
bool openStructure
flag for open (cantilever beam) or closed (rings) structures
Definition: flexible_body_1s.h:73
int Elements
number of finite elements used for discretisation
Definition: flexible_body_1s_21_ancf.h:111
void initRelaxed(double alpha)
initialise beam state concerning a straight cantilever setting or a circle shaped ring ...
Definition: flexible_body_1s_21_ancf.cc:312
double E
modulus of linear elasticity
Definition: flexible_body_1s_21_ancf.h:121
virtual void BuildElements()
references finite element coordinates to assembled coordinates
Definition: flexible_body_1s_21_ancf.cc:254
std::vector< Frame * > frame
virtual void GlobalMatrixContribution(int n, const fmatvec::Mat &locMat, fmatvec::Mat &gloMat)
insert &#39;local&#39; information in global matrices
Definition: flexible_body_1s_21_ancf.cc:52
double v0
Euler perspective: constant longitudinal velocity.
Definition: flexible_body_1s_21_ancf.h:161
Absolute Nodal Coordinate Formulation for flexible planar beams.
Definition: flexible_body_1s_21_ancf.h:43
virtual void GlobalVectorContribution(int n, const fmatvec::Vec &locVec, fmatvec::Vec &gloVec)
insert &#39;local&#39; information in global vectors
Definition: flexible_body_1s_21_ancf.cc:40
double rc
radius of undeformed shape
Definition: flexible_body_1s_21_ancf.h:141
bool Euler
Euler perspective: true if set.
Definition: flexible_body_1s_21_ancf.h:166
cartesian frame on nodes of flexible bodies
Definition: node_frame.h:31

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Home