811 {
813
815
817
818 if (bc.faces.find(fe_ent) != bc.faces.end()) {
820 int nb_integration_pts = data.
getN().size1();
821 auto t_normal = getFTensor1Normal();
822 auto t_w = getFTensor0IntegrationWeight();
823 int nb_base_functions = data.
getN().size2() / 3;
825
828 auto get_ftensor1 = [](
auto &
v) {
831 };
832
833
835 t_bc_disp(
i) *= getFEMethod()->ts_t;
836
837 for (int gg = 0; gg != nb_integration_pts; ++gg) {
839 t_bc_res(
i) = t_bc_disp(
i);
840 auto t_nf = get_ftensor1(
nF);
841 int bb = 0;
842 for (; bb != nb_dofs / 3; ++bb) {
844 t_w * (t_row_base_fun(
j) * t_normal(
j)) * t_bc_res(
i) * 0.5;
845 ++t_nf;
846 ++t_row_base_fun;
847 }
848 for (; bb != nb_base_functions; ++bb)
849 ++t_row_base_fun;
850
851 ++t_w;
852 }
853 }
854 }
856}
#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.