731 {
734 int nb_integration_pts = data.
getN().size1();
735 auto v = getVolume();
736 auto t_w = getFTensor0IntegrationWeight();
737 auto t_h = getFTensor2FromMat<3, 3>(
dataAtPts->hAtPts);
738 auto t_omega_dot = getFTensor1FromMat<3>(
dataAtPts->rotAxisDotAtPts);
739
740 int nb_base_functions = data.
getN().size2() / 9;
746
747 auto get_ftensor0 = [](
auto &
v) {
749 };
750
751 for (int gg = 0; gg != nb_integration_pts; ++gg) {
753 auto t_nf = get_ftensor0(
nF);
754
758
759 int bb = 0;
760 for (; bb != nb_dofs; ++bb) {
761 t_nf +=
a * t_row_base_fun(
i,
j) * t_residuum(
i,
j);
762 ++t_nf;
763 ++t_row_base_fun;
764 }
765 for (; bb != nb_base_functions; ++bb) {
766 ++t_row_base_fun;
767 }
768 ++t_w;
769 ++t_h;
770 ++t_omega_dot;
771 }
772
774}
#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
FTensor::Tensor2< FTensor::PackPtr< double *, Tensor_Dim0 *Tensor_Dim1 >, Tensor_Dim0, Tensor_Dim1 > getFTensor2N(FieldApproximationBase base)
Get base functions for Hdiv/Hcurl spaces.
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.