735 {
737
738
739
740
741
742 using DL = DataLayoutTraits<DataLayout::GaussByCoeffs>;
743 auto get_lagrange_at_pts =
746
751
754 &
m(0, 0), &
m(0, 1), &
m(0, 2));
755 };
756
757 double triangle_scale = 1.0;
758 if (OP::getFEType() == MBTRI)
759 triangle_scale = 0.5;
760
761 double d_loc_J = 0.0;
762
764 auto sense = bd.getSense();
765
767 auto t_w = this->getFTensor0IntegrationWeight();
770 auto t_lagrange_at_pts = get_lagrange_at_pts();
771 auto t_adjoint_lambda = getFTensor2FromMat<3, 3>(bd.getVarFlux());
772
776 d_loc_J += (sense * triangle_scale * t_w) *
777 (t_lagrange_at_pts(
i) *
778 (t_adjoint_lambda(
i,
J) * t_tmp_normal(
J)));
779 ++t_w;
780 ++t_t1;
781 ++t_t2;
782 ++t_lagrange_at_pts;
783 ++t_adjoint_lambda;
784 }
785 }
786 }
787
788
789
794 }
795
797}
#define FTENSOR_INDEX(DIM, I)
#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', DIM1 > J
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
constexpr std::enable_if<(Dim0<=2 &&Dim1<=2), Tensor2_Expr< Levi_Civita< T >, T, Dim0, Dim1, i, j > >::type levi_civita(const Index< i, Dim0 > &, const Index< j, Dim1 > &)
levi_civita functions to make for easy adhoc use
DataLayoutTraits< DataLayout::GaussByCoeffs > DL
UBlasMatrix< double > MatrixDouble
decltype(GetFTensor1FromMatImpl< Tensor_Dim, S, DL, M >::get(std::declval< M & >(), 0, 0)) GetFTensor1FromMatType
FTensor::Index< 'm', 3 > m
int nbIntegrationPts
number of integration points
boost::shared_ptr< MatrixDouble > tangent2DiffPtr
boost::shared_ptr< MatrixDouble > tangent1DiffPtr