template<int DIM_0, int DIM_1>
struct OpCalculateDeformationGradient< DIM_0, DIM_1 >
- Examples
- mofem/tutorials/adv-4_dynamic_first_order_con_law/dynamic_first_order_con_law.cpp.
Definition at line 335 of file dynamic_first_order_con_law.cpp.
◆ OpCalculateDeformationGradient()
template<int DIM_0, int DIM_1>
◆ doWork()
template<int DIM_0, int DIM_1>
- Examples
- mofem/tutorials/adv-4_dynamic_first_order_con_law/dynamic_first_order_con_law.cpp.
Definition at line 343 of file dynamic_first_order_con_law.cpp.
344 {
346
349
350
352
353
354 const size_t nb_gauss_pts = getGaussPts().size2();
355
356
357 defGradPtr->resize(nb_gauss_pts, DIM_0 * DIM_1,
false);
359
360
361 auto t_F = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*
defGradPtr);
362 auto t_H = getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(*
gradTensorPtr);
363 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
364
366
367 ++t_F;
368 ++t_H;
369 }
370
372 }
#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< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
◆ defGradPtr
template<int DIM_0, int DIM_1>
◆ gradTensorPtr
template<int DIM_0, int DIM_1>
The documentation for this struct was generated from the following file: