mbsimflexiblebody  4.0.0
MBSim Flexible Body Module
2s_13_mfr_mindlin.h
1/* Copyright (C) 2004-2015 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 _FINITE_ELEMENT_2S_13_MFR_MINDLIN_H_
21#define _FINITE_ELEMENT_2S_13_MFR_MINDLIN_H_
22
23#include "mbsimFlexibleBody/discretization_interface.h"
24#include<cmath>
25
26namespace MBSimFlexibleBody {
27
37 public:
46 FiniteElement2s13MFRMindlin(double E_,double nu_,double rho_,double d0_,double d1_,double d2_,const fmatvec::Vec &NodeCoordinates);
47
52
53 /* INTERFACE OF DISCRETIZATIONINTERFACE */
54 const fmatvec::Vec& geth() const override;
55 const fmatvec::SqrMat& getdhdq() const override;
56 const fmatvec::SqrMat& getdhdu() const override;
57 inline int getqSize() const override { return RefDofs + 4*NodeDofs; }
58 inline int getuSize() const override { return RefDofs + 4*NodeDofs; }
59 void computeM(const fmatvec::Vec& q) override;
60 void computeh(const fmatvec::Vec& q,const fmatvec::Vec& u) override;
61 void computedhdz(const fmatvec::Vec& q,const fmatvec::Vec& u) override;
62 double computeKineticEnergy(const fmatvec::Vec& q,const fmatvec::Vec& u) override;
63 double computeGravitationalEnergy(const fmatvec::Vec& q) override;
64 double computeElasticEnergy(const fmatvec::Vec& q) override;
65 virtual fmatvec::Vec3 getPosition(const fmatvec::Vec& qElement, const fmatvec::Vec2 &s);
66 virtual fmatvec::SqrMat3 getOrientation(const fmatvec::Vec& qElement, const fmatvec::Vec2 &s);
67 virtual fmatvec::Vec3 getVelocity (const fmatvec::Vec& qElement, const fmatvec::Vec& qpElement, const fmatvec::Vec2 &s);
68 virtual fmatvec::Vec3 getAngularVelocity(const fmatvec::Vec& qElement, const fmatvec::Vec& qpElement, const fmatvec::Vec2 &s);
69 virtual fmatvec::Mat getJacobianOfMotion(const fmatvec::Vec& qElement, const fmatvec::Vec2 &s);
70 /***************************************************/
71
72 /* GETTER / SETTER */
73 const fmatvec::SymMat& getM() const override;
74 const fmatvec::SymMat& getK() const { return *K; }
75 const fmatvec::SymMat& getM_RR() const { return *M_RR; }
76 const fmatvec::Mat& getN_compl() const { return *N_compl; }
77 const fmatvec::SqrMat& getN_ij(int i, int j) const { return *(N_ij[i][j]); }
78 const fmatvec::RowVec& getNR_ij(int i, int j) const { return *(NR_ij[i][j]); }
79 const fmatvec::Vec& getR_compl() const { return *R_compl; }
80 const fmatvec::SymMat& getR_ij() const { return *R_ij; }
81 void setEModul(double E_) { E = E_; }
82 void setPoissonRatio(double nu_) { nu = nu_; }
83 void setDensity(double rho_) { rho = rho_; }
84 void setShearCorrectionFactor(double alphaS_) { alphaS = alphaS_; }
85 /***************************************************/
86
87 /* Freeer */
88 void freeK() { delete K; K=nullptr; }
89 void freeM_RR() { delete M_RR; M_RR=nullptr; }
90 void freeN_ij(int i, int j) { delete N_ij[i][j]; N_ij[i][j]=nullptr; }
91 void freeN_compl() { delete N_compl; N_compl=nullptr; }
92 void freeNR_ij(int i, int j) { delete NR_ij[i][j]; NR_ij[i][j]=nullptr; }
93 void freeR_compl() { delete R_compl; R_compl=nullptr; }
94 void freeR_ij() { delete R_ij; R_ij=nullptr; }
95 /***************************************************/
96
101
105 void computeM_RR();
106
110 void computeN_compl();
111
116 void computeN_ij(int i, int j);
117 void computeN_11();
118 void computeN_12();
119 void computeN_13();
120 void computeN_21();
121 void computeN_22();
122 void computeN_23();
123 void computeN_31();
124 void computeN_32();
125 void computeN_33();
126
131 void computeNR_ij(int i, int j);
132 void computeNR_11();
133 void computeNR_12();
134 void computeNR_13();
135 void computeNR_21();
136 void computeNR_22();
137 void computeNR_23();
138 void computeNR_31();
139 void computeNR_32();
140 void computeNR_33();
141
145 void computeR_compl();
146
150 void computeR_ij();
151
161 fmatvec::Vector<fmatvec::Fixed<6>, double> getPositions(const fmatvec::Vec &NodeCoordinates, const fmatvec::Vec &qElement, const fmatvec::Vec2 &s, double d1, double d2);
162
163 fmatvec::Vector<fmatvec::Fixed<6>, double> getVelocities(const fmatvec::Vec &NodeCoordinates, const fmatvec::Vec &qElement, const fmatvec::Vec &qpElement, const fmatvec::Vec2 &s, double d1, double d2);
164
170 fmatvec::Mat JGeneralized(const fmatvec::Vec &NodeCoordinates,const fmatvec::Vec2 &s);
171
172 private:
176 double E;
177
181 double nu;
182
186 double G;
187
191 double d0, d1, d2;
192
196 double rho;
197
201 double alphaS;
202
207
212
216 int Nodes;
217
221 fmatvec::Vec NodeCoordinates;
222
226 fmatvec::SymMat *K;
227
231 fmatvec::SymMat *M_RR;
232
236 fmatvec::Mat *N_compl;
237
241 fmatvec::SqrMat *N_ij[3][3];
242
246 fmatvec::RowVec *NR_ij[3][3];
247
251 fmatvec::Vec *R_compl;
252
256 fmatvec::SymMat *R_ij;
257 };
258
259}
260
261#endif /* _FINITE_ELEMENT_2S_13_MFR_MINDLIN_H_ */
262
discretization interface for flexible systems
Definition: discretization_interface.h:36
FE for Reissner-Mindlin Plate using MFR.
Definition: 2s_13_mfr_mindlin.h:36
void computeNR_ij(int i, int j)
computes a part of the mass matrix
Definition: 2s_13_mfr_mindlin.cc:149
double d0
geometric factors of the disk
Definition: 2s_13_mfr_mindlin.h:191
double E
Young's modulus.
Definition: 2s_13_mfr_mindlin.h:176
void computeR_ij()
computes a part of the mass matrix
Definition: R_ij.cc:29
int getuSize() const override
Definition: 2s_13_mfr_mindlin.h:58
~FiniteElement2s13MFRMindlin() override
destructor
Definition: 2s_13_mfr_mindlin.cc:55
fmatvec::SqrMat * N_ij[3][3]
part of the mass matrix
Definition: 2s_13_mfr_mindlin.h:241
const fmatvec::Vec & geth() const override
Definition: 2s_13_mfr_mindlin.cc:89
fmatvec::Mat JGeneralized(const fmatvec::Vec &NodeCoordinates, const fmatvec::Vec2 &s)
compute Jacobian of contact description at contour point
Definition: 2s_13_mfr_mindlin.cc:145
fmatvec::SymMat * K
stiffness matrix
Definition: 2s_13_mfr_mindlin.h:226
void computeM_RR()
computes a part of the mass matrix
Definition: M_RR.cc:29
double rho
density
Definition: 2s_13_mfr_mindlin.h:196
double computeGravitationalEnergy(const fmatvec::Vec &q) override
compute gravitational energy
Definition: 2s_13_mfr_mindlin.cc:117
const fmatvec::SqrMat & getdhdu() const override
Definition: 2s_13_mfr_mindlin.cc:97
fmatvec::Vec NodeCoordinates
radial and azimuthal coordinates of corner nodes
Definition: 2s_13_mfr_mindlin.h:221
void computedhdz(const fmatvec::Vec &q, const fmatvec::Vec &u) override
compute Jacobian for implicit integration
Definition: 2s_13_mfr_mindlin.cc:109
double nu
Poisson ratio.
Definition: 2s_13_mfr_mindlin.h:181
double computeKineticEnergy(const fmatvec::Vec &q, const fmatvec::Vec &u) override
compute kinetic energy
Definition: 2s_13_mfr_mindlin.cc:113
double alphaS
shear correction factor
Definition: 2s_13_mfr_mindlin.h:201
fmatvec::SymMat * R_ij
part of the mass matrix
Definition: 2s_13_mfr_mindlin.h:256
double computeElasticEnergy(const fmatvec::Vec &q) override
compute elastic energy
Definition: 2s_13_mfr_mindlin.cc:121
fmatvec::SymMat * M_RR
part of the mass matrix
Definition: 2s_13_mfr_mindlin.h:231
fmatvec::Vec * R_compl
part of the mass matrix
Definition: 2s_13_mfr_mindlin.h:251
void computeN_ij(int i, int j)
computes a part of the mass matrix
Definition: 2s_13_mfr_mindlin.cc:68
double G
shear modulus
Definition: 2s_13_mfr_mindlin.h:186
int getqSize() const override
Definition: 2s_13_mfr_mindlin.h:57
int RefDofs
reference dof
Definition: 2s_13_mfr_mindlin.h:206
void computeStiffnessMatrix()
computes stiffnes matrix
Definition: K.cc:29
void computeh(const fmatvec::Vec &q, const fmatvec::Vec &u) override
compute smooth right hand side
Definition: 2s_13_mfr_mindlin.cc:105
fmatvec::RowVec * NR_ij[3][3]
part of the mass matrix
Definition: 2s_13_mfr_mindlin.h:246
fmatvec::Mat * N_compl
part of the mass matrix
Definition: 2s_13_mfr_mindlin.h:236
fmatvec::Vector< fmatvec::Fixed< 6 >, double > getPositions(const fmatvec::Vec &NodeCoordinates, const fmatvec::Vec &qElement, const fmatvec::Vec2 &s, double d1, double d2)
FiniteElement2s13MFRMindlin(double E_, double nu_, double rho_, double d0_, double d1_, double d2_, const fmatvec::Vec &NodeCoordinates)
constructor
Definition: 2s_13_mfr_mindlin.cc:33
void computeR_compl()
computes a part of the mass matrix
Definition: R_compl.cc:29
int NodeDofs
elastic dof per node
Definition: 2s_13_mfr_mindlin.h:211
void computeN_compl()
computes a part of the mass matrix
Definition: N_compl.cc:29
void computeM(const fmatvec::Vec &q) override
compute mass matrix
Definition: 2s_13_mfr_mindlin.cc:101
const fmatvec::SymMat & getM() const override
Definition: 2s_13_mfr_mindlin.cc:85
int Nodes
number of nodes
Definition: 2s_13_mfr_mindlin.h:216
const fmatvec::SqrMat & getdhdq() const override
Definition: 2s_13_mfr_mindlin.cc:93