#include <users_modules/tutorials/cor-2to5/src/PoissonOperators.hpp>
|
| OpResF_Boundary (boost::shared_ptr< VectorDouble > &lambda_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 775 of file PoissonOperators.hpp.
◆ OpResF_Boundary()
PoissonExample::OpResF_Boundary::OpResF_Boundary |
( |
boost::shared_ptr< VectorDouble > & |
lambda_vals | ) |
|
|
inline |
Definition at line 777 of file PoissonOperators.hpp.
Op_g(FVal f_value, const string field_name="L", const double beta=1)
boost::function< double(const double, const double, const double)> FVal
boost::shared_ptr< VectorDouble > lambdaVals
◆ iNtegrate()
MoFEMErrorCode PoissonExample::OpResF_Boundary::iNtegrate |
( |
EntitiesFieldData::EntData & |
data | ) |
|
|
inlineprotectedvirtual |
Integrate local constrains vector.
Reimplemented from PoissonExample::Op_g.
- Examples
- PoissonOperators.hpp.
Definition at line 786 of file PoissonOperators.hpp.
786 {
788
790
792
793 const double area = getArea() *
bEta;
794
795 auto t_w = getFTensor0IntegrationWeight();
796
797 auto t_u = data.getFTensor0N();
798
799 auto t_lambda = getFTensor0FromVec(*
lambdaVals);
800
802
803
804 double alpha = area * t_w;
805
808 for (
int rr = 0; rr !=
nbRows; rr++) {
809 t_a +=
alpha * t_u * t_lambda;
810 ++t_a;
811 ++t_u;
812 }
813 ++t_w;
814 ++t_lambda;
815 }
817 }
#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()
int nbIntegrationPts
number of integration points
◆ lambdaVals
boost::shared_ptr<VectorDouble> PoissonExample::OpResF_Boundary::lambdaVals |
|
protected |
The documentation for this struct was generated from the following file: