1235 {
1237 int row_nb_dofs = row_data.
getIndices().size();
1238 int col_nb_dofs = col_data.
getIndices().size();
1241
1242 &
m(r + 0,
c + 0), &
m(r + 0,
c + 1), &
m(r + 0,
c + 2),
1243
1244 &
m(r + 1,
c + 0), &
m(r + 1,
c + 1), &
m(r + 1,
c + 2),
1245
1246 &
m(r + 2,
c + 0), &
m(r + 2,
c + 1), &
m(r + 2,
c + 2),
1247
1248 &
m(r + 3,
c + 0), &
m(r + 3,
c + 1), &
m(r + 3,
c + 2),
1249
1250 &
m(r + 4,
c + 0), &
m(r + 4,
c + 1), &
m(r + 4,
c + 2),
1251
1252 &
m(r + 5,
c + 0), &
m(r + 5,
c + 1), &
m(r + 5,
c + 2)
1253
1254 );
1255 };
1260
1261 auto v = getVolume();
1262 auto t_w = getFTensor0IntegrationWeight();
1263 auto t_P = getFTensor2FromMat<3, 3>(
dataAtPts->approxPAtPts);
1265 auto t_diff_u =
1266 getFTensor4DdgFromMat<3, 3, 1>(
dataAtPts->diffStreachTensorAtPts);
1267
1268 int row_nb_base_functions = row_data.
getN().size2();
1270
1271 int nb_integration_pts = row_data.
getN().size1();
1272
1273 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1275
1277 t_RT_domega_P(
i,
j,
m) = t_diff_R(
k,
i,
m) * t_P(
k,
j);
1280 for (int ii = 0; ii != 3; ++ii)
1281 for (int jj = ii; jj != 3; ++jj)
1282 for (int mm = 0; mm != 3; ++mm)
1283 for (int nn = 0; nn != 3; ++nn)
1284 for (int kk = 0; kk != 3; ++kk)
1286 t_diff_u(mm, nn, ii, jj) * t_RT_domega_P(mm, nn, kk);
1287
1288 int rr = 0;
1289 for (; rr != row_nb_dofs / 6; ++rr) {
1291 auto t_m = get_ftensor3(
K, 6 * rr, 0);
1292 for (int cc = 0; cc != col_nb_dofs / 3; ++cc) {
1293
1294 double v =
a * t_row_base_fun * t_col_base_fun;
1296
1297 ++t_m;
1298 ++t_col_base_fun;
1299 }
1300
1301 ++t_row_base_fun;
1302 }
1303
1304 for (; rr != row_nb_base_functions; ++rr)
1305 ++t_row_base_fun;
1306
1307 ++t_w;
1308 ++t_P;
1309 ++t_diff_R;
1310 ++t_diff_u;
1311 }
1312
1314}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'm', SPACE_DIM > m
FTensor::Index< 'i', SPACE_DIM > i
const double c
speed of light (cm/ns)
const double v
phase velocity of light in medium (cm/ns)
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
FTensor::Tensor3< FTensor::PackPtr< double *, 1 >, 3, 3, 3 > getFTensor3FromMat(MatrixDouble &m)
constexpr double t
plate stiffness
MatrixDouble K
local tangent matrix
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorInt & getIndices() const
Get global indices of dofs on entity.