#include <users_modules/tutorials/cor-2to5/src/PoissonOperators.hpp>
|
| OpRes_g (FVal f_value, boost::shared_ptr< VectorDouble > &field_vals) |
|
| Op_g (FVal f_value, const string field_name="L", const double beta=1) |
|
| OpBaseRhs (const std::string field_name) |
|
MoFEMErrorCode | doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data) |
| This function is called by finite element. More...
|
|
virtual MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &data)=0 |
| Class dedicated to integrate operator. More...
|
|
virtual MoFEMErrorCode | aSsemble (EntitiesFieldData::EntData &data)=0 |
| Class dedicated to assemble operator to global system vector. More...
|
|
|
MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &data) |
| Integrate local constrains vector. More...
|
|
MoFEMErrorCode | iNtegrate (EntitiesFieldData::EntData &data) |
| Integrate local constrains vector. More...
|
|
MoFEMErrorCode | aSsemble (EntitiesFieldData::EntData &data) |
| assemble constrains vectors More...
|
|
Definition at line 726 of file PoissonOperators.hpp.
◆ OpRes_g()
PoissonExample::OpRes_g::OpRes_g |
( |
FVal |
f_value, |
|
|
boost::shared_ptr< VectorDouble > & |
field_vals |
|
) |
| |
|
inline |
Definition at line 728 of file PoissonOperators.hpp.
Op_g(FVal f_value, const string field_name="L", const double beta=1)
boost::shared_ptr< VectorDouble > fieldVals
◆ iNtegrate()
MoFEMErrorCode PoissonExample::OpRes_g::iNtegrate |
( |
EntitiesFieldData::EntData & |
data | ) |
|
|
inlineprotectedvirtual |
Integrate local constrains vector.
Reimplemented from PoissonExample::Op_g.
- Examples
- PoissonOperators.hpp.
Definition at line 737 of file PoissonOperators.hpp.
737 {
739
741
743
744 const double area = getArea() *
bEta;
745
746 auto t_w = getFTensor0IntegrationWeight();
747
748 auto t_l = data.getFTensor0N();
749
750 auto t_u = getFTensor0FromVec(*
fieldVals);
751
752 auto t_coords = getFTensor1CoordsAtGaussPts();
753
755
756
757 double alpha = area * t_w;
758
761 for (
int rr = 0; rr !=
nbRows; rr++) {
763 (t_u -
fValue(t_coords(
NX), t_coords(
NY), t_coords(
NZ)));
764 ++t_a;
765 ++t_l;
766 }
767 ++t_w;
768 ++t_u;
769 ++t_coords;
770 }
772 }
#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::Number< 2 > NZ
z-direction index
FTensor::Number< 0 > NX
x-direction index
FTensor::Number< 1 > NY
y-direction index
FVal fValue
Function pointer evaluating values of "U" at the boundary.
int nbIntegrationPts
number of integration points
◆ fieldVals
boost::shared_ptr<VectorDouble> PoissonExample::OpRes_g::fieldVals |
|
protected |
The documentation for this struct was generated from the following file: