684 {
687 int nb_integration_pts = data.
getN().size1();
688 auto v = getVolume();
689 auto t_w = getFTensor0IntegrationWeight();
690 auto t_h = getFTensor2FromMat<3, 3>(
dataAtPts->hAtPts);
691 auto t_omega_dot = getFTensor1FromMat<3>(
dataAtPts->rotAxisDotAtPts);
692
693 int nb_base_functions = data.
getN().size2() / 3;
699
700 auto get_ftensor1 = [](
auto &
v) {
703 };
704
705 for (int gg = 0; gg != nb_integration_pts; ++gg) {
707 auto t_nf = get_ftensor1(
nF);
708
712
713 int bb = 0;
714 for (; bb != nb_dofs / 3; ++bb) {
715 t_nf(
i) +=
a * t_row_base_fun(
j) * t_residuum(
i,
j);
716 ++t_nf;
717 ++t_row_base_fun;
718 }
719
720 for (; bb != nb_base_functions; ++bb)
721 ++t_row_base_fun;
722
723 ++t_w;
724 ++t_h;
725 ++t_omega_dot;
726 }
727
729}
#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< 'm', SPACE_DIM > m
FTensor::Index< 'i', SPACE_DIM > i
const double v
phase velocity of light in medium (cm/ns)
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
VectorDouble nF
local right hand side vector
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
FTensor::Tensor1< FTensor::PackPtr< double *, Tensor_Dim >, Tensor_Dim > getFTensor1N(FieldApproximationBase base)
Get base functions for Hdiv/Hcurl spaces.
const VectorInt & getIndices() const
Get global indices of dofs on entity.