737 {
739
740
741
742
743
744 using DL = DataLayoutTraits<DataLayout::GaussByCoeffs>;
745 auto get_lagrange_at_pts =
748
753
756 &
m(0, 0), &
m(0, 1), &
m(0, 2));
757 };
758
759 double triangle_scale = 1.0;
760 if (OP::getFEType() == MBTRI)
761 triangle_scale = 0.5;
762
763 double d_loc_J = 0.0;
764
766 auto sense = bd.getSense();
767
769 auto t_w = this->getFTensor0IntegrationWeight();
772 auto t_lagrange_at_pts = get_lagrange_at_pts();
773 auto t_adjoint_lambda = getFTensor2FromMat<3, 3>(bd.getVarFlux());
774
778 d_loc_J += (sense * triangle_scale * t_w) *
779 (t_lagrange_at_pts(
i) *
780 (t_adjoint_lambda(
i,
J) * t_tmp_normal(
J)));
781 ++t_w;
782 ++t_t1;
783 ++t_t2;
784 ++t_lagrange_at_pts;
785 ++t_adjoint_lambda;
786 }
787 }
788 }
789
790
791
796 }
797
799}
#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