#include <users_modules/fracture_mechanics/AnalyticalFun.hpp>
Definition at line 117 of file AnalyticalFun.hpp.
◆ operator()()
virtual vector< VectorDouble > & FractureMechanics::AnalyticalDisp::operator() |
( |
const double |
X, |
|
|
const double |
Y, |
|
|
const double |
Z |
|
) |
| |
|
inlinevirtual |
Definition at line 121 of file AnalyticalFun.hpp.
122 {
123
124
127 }
128
131
132 double &x =
dIsp[0][0];
133 double &y =
dIsp[0][1];
134 double &z =
dIsp[0][2];
135
136
137
138 const double E = 1.0e5;
139 const double nu = 0;
140 const double pi = M_PI;
142
143 const double theta = atan2(Z, X * sin(alpha) + Y * cos(alpha));
144
145 const double ux =
147 sqrt(sqrt(pow(X * sin(alpha) + Y * cos(alpha), 2) + pow(Z, 2)) /
148 (2 * pi)) *
149 cos(theta / 2.) * (3 - 4 * nu - cos(theta)) *
150 sin(alpha);
151 const double uy =
153 sqrt(sqrt(pow(X * sin(alpha) + Y * cos(alpha), 2) + pow(Z, 2)) /
154 (2 * pi)) *
155 cos(theta / 2.) * (3 - 4 * nu - cos(theta)) * cos(alpha);
156 const double uz =
158 sqrt(sqrt(pow(X * sin(alpha) + Y * cos(alpha), 2) + pow(Z, 2)) /
159 (2 * pi)) *
160 sin(theta / 2.) * (3 - 4 * nu - cos(theta));
161
162 x = X + ux;
163 y = Y + uy;
164 z = Z + uz;
165
167 }
vector< VectorDouble > dIsp
PetscErrorCode getOptions()
◆ dIsp
vector<VectorDouble> FractureMechanics::AnalyticalDisp::dIsp |
The documentation for this struct was generated from the following file: