#include <tutorials/scl-12/src/electrostatics.hpp>
template<int SPACE_DIM>
struct OpElectrodeCharge< SPACE_DIM >
Definition at line 357 of file electrostatics.hpp.
◆ OpElectrodeCharge()
Definition at line 358 of file electrostatics.hpp.
364 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE],
false);
365 doEntities[MBVERTEX] =
true;
◆ doWork()
Definition at line 367 of file electrostatics.hpp.
371 auto fe_ent = getFEEntityHandle();
372 auto nb_gauss_pts = getGaussPts().size2();
373 double area = getMeasure();
375 auto t_jump = getFTensor1FromMat<SPACE_DIM>(*
dJumpPtr);
376 auto t_normal = getFTensor1NormalsAtGaussPts();
377 auto t_w = getFTensor0IntegrationWeight();
379 double alphaPart = 0.0;
380 if (
m.second.electrodeEnts.find(fe_ent) !=
m.second.electrodeEnts.end()) {
382 for (
int gg = 0; gg != nb_gauss_pts; gg++) {
384 t_r(
i) = t_normal(
i);
386 alphaPart += (t_jump(
i) * t_r(
i)) * t_w * area;
◆ dJumpPtr
◆ elecBlockSetsPtr
◆ petscVec
The documentation for this struct was generated from the following file: