[Calculate square of wave function]
More...
#include "tutorials/scl-13_schrodinger_equation/src/schrod_eig.hpp"
|
| | OpSquare (boost::shared_ptr< VectorDouble > squareField, boost::shared_ptr< VectorDouble > field) |
| |
| MoFEMErrorCode | doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data) |
| |
|
| boost::shared_ptr< VectorDouble > | squareField |
| |
| boost::shared_ptr< VectorDouble > | field |
| |
[Calculate square of wave function]
Definition at line 17 of file schrod_eig.hpp.
◆ OpSquare()
| schrod_eig::OpSquare::OpSquare |
( |
boost::shared_ptr< VectorDouble > |
squareField, |
|
|
boost::shared_ptr< VectorDouble > |
field |
|
) |
| |
|
inline |
Definition at line 18 of file schrod_eig.hpp.
20 : ForcesAndSourcesCore::UserDataOperator(
NOSPACE, OPLAST),
boost::shared_ptr< VectorDouble > field
boost::shared_ptr< VectorDouble > squareField
◆ doWork()
| MoFEMErrorCode schrod_eig::OpSquare::doWork |
( |
int |
side, |
|
|
EntityType |
type, |
|
|
DataForcesAndSourcesCore::EntData & |
data |
|
) |
| |
|
inline |
Definition at line 23 of file schrod_eig.hpp.
24 {
26
27 const size_t nb_gauss_pts = getGaussPts().size2();
29
31
33
34 for (int gg = 0; gg != nb_gauss_pts; gg++) {
35 t_squareField = t_field * t_field;
36 ++t_field;
37 ++t_squareField;
38 }
39
41 }
#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()
static auto getFTensor0FromVec(V &data)
Get tensor rank 0 (scalar) form data vector.
◆ field
| boost::shared_ptr<VectorDouble> schrod_eig::OpSquare::field |
|
private |
◆ squareField
| boost::shared_ptr<VectorDouble> schrod_eig::OpSquare::squareField |
|
private |
The documentation for this struct was generated from the following file: