-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelasticTwistingForce.h
49 lines (40 loc) · 1022 Bytes
/
elasticTwistingForce.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef ELASTICTWISTINGFORCE_H
#define ELASTICTWISTINGFORCE_H
#include "eigenIncludes.h"
#include "elasticRod.h"
#include "timeStepper.h"
class elasticTwistingForce
{
public:
elasticTwistingForce(elasticRod &m_rod, timeStepper &m_stepper);
~elasticTwistingForce();
void computeFt();
void computeJt();
VectorXd ForceVec;
private:
elasticRod *rod;
timeStepper *stepper;
int ci, ind, ind1, ind2;
double norm_e, norm_f;
double norm2_e, norm2_f;
double value, chi, milen;
Vector3d t0, t1;
Vector3d te, tf;
Vector3d kbLocal;
Vector3d tilde_t;
VectorXd theta_f;
VectorXd theta_e;
VectorXd deltam;
VectorXd gradTwistLocal;
VectorXd getUndeformedTwist;
VectorXd f;
Matrix3d D2mDe2, D2mDf2, D2mDeDf, D2mDfDe;
Matrix3d teMatrix;
Matrix<double, 11, 11> J;
Matrix<double, 11, 11> DDtwist;
Matrix<double, 11, 11> Jtt;
MatrixXd gradTwist;
double GJ, GJ2;
void crossMat(const Vector3d &a, Matrix3d &b);
};
#endif