#include "tutorials/scl-12/src/electrostatics.hpp"
◆ OpElectricField()
  
  | 
        
          | OpElectricField::OpElectricField | ( | boost::shared_ptr< MatrixDouble > | grad_u_negative, |  
          |  |  | boost::shared_ptr< MatrixDouble > | grad_u |  
          |  | ) |  |  |  | inline | 
 
Definition at line 407 of file electrostatics.hpp.
  409      : ForcesAndSourcesCore::UserDataOperator(
NOSPACE, OPLAST),
 
boost::shared_ptr< MatrixDouble > gradU
boost::shared_ptr< MatrixDouble > gradUNegative
 
 
◆ doWork()
  
  | 
        
          | MoFEMErrorCode OpElectricField::doWork | ( | int | side, |  
          |  |  | EntityType | type, |  
          |  |  | DataForcesAndSourcesCore::EntData & | data |  
          |  | ) |  |  |  | inline | 
 
Definition at line 412 of file electrostatics.hpp.
  413                                                               {
  415 
  416    const size_t nb_gauss_pts = getGaussPts().size2();
  419    auto t_grad_u = getFTensor1FromMat<SPACE_DIM>(*
gradU);
 
  420    auto t_negative_grad_u = getFTensor1FromMat<SPACE_DIM>(*
gradUNegative);
 
  422 
  423    for (int gg = 0; gg != nb_gauss_pts; gg++) {
  424      t_negative_grad_u(
I) = -t_grad_u(
I);
 
  425      ++t_grad_u;
  426      ++t_negative_grad_u;
  427    }
  428 
  430  }
#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()
constexpr IntegrationType I
 
 
◆ gradU
◆ gradUNegative
  
  | 
        
          | boost::shared_ptr<MatrixDouble> OpElectricField::gradUNegative |  | private | 
 
 
The documentation for this struct was generated from the following file: