988 {
990 int nb_integration_pts = row_data.
getN().size1();
991 int row_nb_dofs = row_data.
getIndices().size();
992 int col_nb_dofs = col_data.
getIndices().size();
995 &
m(r + 0,
c), &
m(r + 1,
c), &
m(r + 2,
c), &
m(r + 3,
c), &
m(r + 4,
c),
997 };
998
1004
1005 auto v = getVolume();
1006 auto t_w = getFTensor0IntegrationWeight();
1007 auto t_R = getFTensor2FromMat<3, 3>(
dataAtPts->rotMatAtPts);
1008 auto t_diff_u =
1009 getFTensor4DdgFromMat<3, 3, 1>(
dataAtPts->diffStreachTensorAtPts);
1010
1011 int row_nb_base_functions = row_data.
getN().size2();
1013 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1015
1016 int rr = 0;
1017 for (; rr != row_nb_dofs / 6; ++rr) {
1018
1019 auto t_m = get_ftensor2(
K, 6 * rr, 0);
1020
1021 auto t_col_base_fun = col_data.
getFTensor2N<3, 3>(gg, 0);
1022 for (int cc = 0; cc != col_nb_dofs; ++cc) {
1023
1025 t_RTP_dBubble(
i,
j) =
1026 a * t_row_base_fun * t_R(
k,
i) * t_col_base_fun(
k,
j);
1027 t_m(
i,
j) += t_diff_u(
m,
n,
i,
j) * t_RTP_dBubble(
m,
n);
1028
1029 ++t_m;
1030 ++t_col_base_fun;
1031 }
1032
1033 ++t_row_base_fun;
1034 }
1035 for (; rr != row_nb_base_functions; ++rr)
1036 ++t_row_base_fun;
1037 ++t_w;
1038 ++t_R;
1039 ++t_diff_u;
1040 }
1042}
#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< 'n', SPACE_DIM > n
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
MatrixDouble K
local tangent matrix
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
FTensor::Tensor2< FTensor::PackPtr< double *, Tensor_Dim0 *Tensor_Dim1 >, Tensor_Dim0, Tensor_Dim1 > getFTensor2N(FieldApproximationBase base)
Get base functions for Hdiv/Hcurl spaces.
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.