#include "tutorials/scl-12/src/electrostatics.hpp"
Definition at line 406 of file 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();
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()
FTensor::Tensor1< FTensor::PackPtr< T *, S >, Tensor_Dim > getFTensor1FromMat(ublas::matrix< T, L, A > &data)
Get tensor rank 1 (vector) form data matrix.
constexpr IntegrationType I
◆ gradU
◆ gradUNegative
boost::shared_ptr<MatrixDouble> OpElectricField::gradUNegative |
|
private |
The documentation for this struct was generated from the following file: