template<int DIM>
struct OpCalculateDisplacement< DIM >
- Examples
- dynamic_first_order_con_law.cpp.
Definition at line 225 of file dynamic_first_order_con_law.cpp.
◆ OpCalculateDisplacement()
◆ doWork()
- Examples
- dynamic_first_order_con_law.cpp.
Definition at line 232 of file dynamic_first_order_con_law.cpp.
233 {
235
237
238
239 const size_t nb_gauss_pts = getGaussPts().size2();
240
241 uPtr->resize(DIM, nb_gauss_pts,
false);
243
244
248 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
249
250 t_u(
i) = t_x(
i) - t_X(
i);
251 ++t_u;
252 ++t_x;
253 ++t_X;
254 }
255
257 }
#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::Tensor1< FTensor::PackPtr< T *, S >, Tensor_Dim > getFTensor1FromMat(ublas::matrix< T, L, A > &data)
Get tensor rank 1 (vector) form data matrix.
◆ uPtr
◆ XPtr
◆ xPtr
The documentation for this struct was generated from the following file: