543 {
545
547
549
550 if (bc.faces.find(fe_ent) != bc.faces.end()) {
552 int nb_integration_pts = data.
getN().size1();
553 auto t_normal = getFTensor1Normal();
554 auto t_w = getFTensor0IntegrationWeight();
555 int nb_base_functions = data.
getN().size2() / 3;
557
560 auto get_ftensor1 = [](
auto &
v) {
563 };
564
565
567 t_bc_disp(
i) *= getFEMethod()->ts_t;
568
569 for (int gg = 0; gg != nb_integration_pts; ++gg) {
571 t_bc_res(
i) = t_bc_disp(
i);
572 auto t_nf = get_ftensor1(
nF);
573 int bb = 0;
574 for (; bb != nb_dofs / 3; ++bb) {
576 t_w * (t_row_base_fun(
j) * t_normal(
j)) * t_bc_res(
i) * 0.5;
577 ++t_nf;
578 ++t_row_base_fun;
579 }
580 for (; bb != nb_base_functions; ++bb)
581 ++t_row_base_fun;
582
583 ++t_w;
584 }
585 }
586 }
588}
#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
const double v
phase velocity of light in medium (cm/ns)
FTensor::Index< 'j', 3 > j
VectorDouble nF
local right hand side vector
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.