v0.10.0
lesson3_poisson.cpp
Go to the documentation of this file.
1 /**
2  * \file lesson3_poisson.cpp
3  * \example lesson3_poisson.cpp
4  *
5  * Using PipelineManager interface calculate the divergence of base functions, and
6  * integral of flux on the boundary. Since the h-div space is used, volume
7  * integral and boundary integral should give the same result.
8  */
9
10 /* This file is part of MoFEM.
11  * MoFEM is free software: you can redistribute it and/or modify it under
13  * Free Software Foundation, either version 3 of the License, or (at your
14  * option) any later version.
15  *
16  * MoFEM is distributed in the hope that it will be useful, but WITHOUT
17  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
19  * License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
23
24 // TODO: [CORE-62] Improve method of enforcing boundary condition
25
26 #include <MoFEM.hpp>
27
28 using namespace MoFEM;
29
30 static char help[] = "...\n\n";
31
32 #include <BasicFiniteElements.hpp>
33
39
40 #include <BaseOps.hpp>
41
46
47 struct Example {
48
49  Example(MoFEM::Interface &m_field) : mField(m_field) {}
50
51  MoFEMErrorCode runProblem();
52
53 private:
55
56  static double approxFunction(const double x, const double y, const double z) {
57  return sin(x * 10.) * cos(y * 10.);
58  }
59  static double nablaFunction(const double x, const double y, const double z) {
60  return 200 * sin(x * 10.) * cos(y * 10.);
61  }
62
63  static int integrationRule(int, int, int p_data) { return 2 * p_data; };
64
65  MoFEMErrorCode setupProblem();
66  MoFEMErrorCode createCommonData();
67  MoFEMErrorCode bC();
68  MoFEMErrorCode OPs();
69  MoFEMErrorCode kspSolve();
70  MoFEMErrorCode postProcess();
71  MoFEMErrorCode checkResults();
72
74  struct CommonData {
75  boost::shared_ptr<VectorDouble> approxVals;
78  };
79  boost::shared_ptr<CommonData> commonDataPtr;
80  boost::shared_ptr<std::vector<bool>> boundaryMarker;
81
82  struct OpError : public DomainEleOp {
83  boost::shared_ptr<CommonData> commonDataPtr;
84  OpError(boost::shared_ptr<CommonData> &common_data_ptr)
85  : DomainEleOp("U", OPROW), commonDataPtr(common_data_ptr) {}
86  MoFEMErrorCode doWork(int side, EntityType type, EntData &data);
87  };
88 };
89
92  CHKERR setupProblem();
93  CHKERR createCommonData();
94  CHKERR bC();
95  CHKERR OPs();
96  CHKERR kspSolve();
97  CHKERR postProcess();
98  CHKERR checkResults();
100 }
101
102 //! [Set up problem]
105  Simple *simple = mField.getInterface<Simple>();
107  CHKERR simple->addDomainField("U", H1, AINSWORTH_LEGENDRE_BASE, 1);
108  CHKERR simple->addBoundaryField("U", H1, AINSWORTH_LEGENDRE_BASE, 1);
109  constexpr int order = 5;
110  CHKERR simple->setFieldOrder("U", order);
111  CHKERR simple->setUp();
113 }
114 //! [Set up problem]
115
116 //! [Create common data]
119  Simple *simple = mField.getInterface<Simple>();
120  commonDataPtr = boost::make_shared<CommonData>();
121  commonDataPtr->resVec = smartCreateDMVector(simple->getDM());
122  commonDataPtr->L2Vec = createSmartVectorMPI(
123  mField.get_comm(), (!mField.get_comm_rank()) ? 1 : 0, 1);
124  commonDataPtr->approxVals = boost::make_shared<VectorDouble>();
126 }
127 //! [Create common data]
128
129 //! [Boundary condition]
132
133  Simple *simple = mField.getInterface<Simple>();
134
135  auto get_ents_on_mesh_skin = [&]() {
136  Range faces;
137  CHKERR mField.get_moab().get_entities_by_type(0, MBTRI, faces);
138  Skinner skin(&mField.get_moab());
139  Range skin_edges;
140  CHKERR skin.find_skin(0, faces, false, skin_edges);
141  Range skin_verts;
142  CHKERR mField.get_moab().get_connectivity(skin_edges, skin_verts, true);
143  skin_edges.merge(skin_verts);
144  return skin_edges;
145  };
146
147  auto mark_boundary_dofs = [&](Range &&skin_edges) {
148  auto problem_manager = mField.getInterface<ProblemsManager>();
149  auto marker_ptr = boost::make_shared<std::vector<bool>>();
150  problem_manager->markDofs(simple->getProblemName(), ROW, skin_edges,
151  *marker_ptr);
152  return marker_ptr;
153  };
154
155  // Get global local vector of marked DOFs. Is global, since is set for all
156  // DOFs on processor. Is local since only DOFs on processor are in the
157  // vector. To access DOFs use local indices.
158  boundaryMarker = mark_boundary_dofs(get_ents_on_mesh_skin());
159
161 }
162 //! [Boundary condition]
163
164 //! [Push operators to pipeline]
167  PipelineManager *pipeline_mng = mField.getInterface<PipelineManager>();
168  pipeline_mng->getOpDomainLhsPipeline().push_back(
170  pipeline_mng->getOpDomainLhsPipeline().push_back(new OpSetInvJacH1ForFace(invJac));
171  auto beta = [](const double, const double, const double) { return 1; };
172  pipeline_mng->getOpDomainLhsPipeline().push_back(
174  pipeline_mng->getOpDomainRhsPipeline().push_back(
175  new OpDomainSource("U", Example::nablaFunction, boundaryMarker));
176  CHKERR pipeline_mng->setDomainRhsIntegrationRule(integrationRule);
177  CHKERR pipeline_mng->setDomainLhsIntegrationRule(integrationRule);
178  pipeline_mng->getOpBoundaryLhsPipeline().push_back(new OpBoundaryMass("U", "U", beta));
179  pipeline_mng->getOpBoundaryRhsPipeline().push_back(
180  new OpBoundarySource("U", approxFunction));
181  CHKERR pipeline_mng->setBoundaryRhsIntegrationRule(integrationRule);
182  CHKERR pipeline_mng->setBoundaryLhsIntegrationRule(integrationRule);
184 }
185 //! [Push operators to pipeline]
186
187 //! [Solve]
190  Simple *simple = mField.getInterface<Simple>();
191  PipelineManager *pipeline_mng = mField.getInterface<PipelineManager>();
192  auto solver = pipeline_mng->createKSP();
193  CHKERR KSPSetFromOptions(solver);
194  CHKERR KSPSetUp(solver);
195
196  auto dm = simple->getDM();
197  auto D = smartCreateDMVector(dm);
198  auto F = smartVectorDuplicate(D);
199
200  CHKERR KSPSolve(solver, F, D);
201  CHKERR VecGhostUpdateBegin(D, INSERT_VALUES, SCATTER_FORWARD);
202  CHKERR VecGhostUpdateEnd(D, INSERT_VALUES, SCATTER_FORWARD);
203  CHKERR DMoFEMMeshToLocalVector(dm, D, INSERT_VALUES, SCATTER_REVERSE);
205 }
206
207 //! [Solve]
210  PipelineManager *pipeline_mng = mField.getInterface<PipelineManager>();
211  pipeline_mng->getDomainLhsFE().reset();
212  pipeline_mng->getBoundaryLhsFE().reset();
213  pipeline_mng->getBoundaryRhsFE().reset();
214  auto post_proc_fe = boost::make_shared<PostProcFaceOnRefinedMesh>(mField);
215  post_proc_fe->generateReferenceElementMesh();
217  pipeline_mng->getDomainRhsFE() = post_proc_fe;
218  CHKERR pipeline_mng->loopFiniteElements();
219  CHKERR post_proc_fe->writeFile("out_poisson.h5m");
221 }
222 //! [Postprocess results]
223
224 //! [Solve]
227  PipelineManager *pipeline_mng = mField.getInterface<PipelineManager>();
228  pipeline_mng->getDomainLhsFE().reset();
229  pipeline_mng->getDomainRhsFE().reset();
230  pipeline_mng->getBoundaryLhsFE().reset();
231  pipeline_mng->getBoundaryRhsFE().reset();
232  pipeline_mng->getOpDomainRhsPipeline().clear();
233  pipeline_mng->getOpDomainRhsPipeline().push_back(
234  new OpCalculateScalarFieldValues("U", commonDataPtr->approxVals));
235  pipeline_mng->getOpDomainRhsPipeline().push_back(new OpError(commonDataPtr));
236  CHKERR pipeline_mng->setDomainRhsIntegrationRule(integrationRule);
237  CHKERR pipeline_mng->loopFiniteElements();
238  CHKERR VecAssemblyBegin(commonDataPtr->L2Vec);
239  CHKERR VecAssemblyEnd(commonDataPtr->L2Vec);
240  CHKERR VecAssemblyBegin(commonDataPtr->resVec);
241  CHKERR VecAssemblyEnd(commonDataPtr->resVec);
242  double nrm2;
243  CHKERR VecNorm(commonDataPtr->resVec, NORM_2, &nrm2);
244  const double *array;
246  if (mField.get_comm_rank() == 0)
247  PetscPrintf(PETSC_COMM_SELF, "Error %6.4e Vec norm %6.4e\n", sqrt(array[0]),
248  nrm2);
250  constexpr double eps = 1e-8;
251  if (nrm2 > eps)
252  SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
253  "Not converged solution");
255 }
256 //! [Solver]
257
258 int main(int argc, char *argv[]) {
259
260  MoFEM::Core::Initialize(&argc, &argv, (char *)0, help);
261
262  try {
263
264  //! [Register MoFEM discrete manager in PETSc]
265  DMType dm_name = "DMMOFEM";
266  CHKERR DMRegister_MoFEM(dm_name);
267  //! [Register MoFEM discrete manager in PETSc
268
269  //! [Create MoAB]
270  moab::Core mb_instance; ///< mesh database
271  moab::Interface &moab = mb_instance; ///< mesh database interface
272  //! [Create MoAB]
273
274  //! [Create MoFEM]
275  MoFEM::Core core(moab); ///< finite element database
276  MoFEM::Interface &m_field = core; ///< finite element database insterface
277  //! [Create MoFEM]
278
280  Simple *simple = m_field.getInterface<Simple>();
281  CHKERR simple->getOptions();
284
285  //! [Example]
286  Example ex(m_field);
287  CHKERR ex.runProblem();
288  //! [Example]
289  }
290  CATCH_ERRORS;
291
293 }
294
296  EntData &data) {
298
299  if (const size_t nb_dofs = data.getIndices().size()) {
300
301  const int nb_integration_pts = getGaussPts().size2();
302  auto t_w = getFTensor0IntegrationWeight();
303  auto t_val = getFTensor0FromVec(*(commonDataPtr->approxVals));
304  auto t_coords = getFTensor1CoordsAtGaussPts();
305
306  VectorDouble nf(nb_dofs, false);
307  nf.clear();
308
310  const double volume = getMeasure();
311
312  auto t_row_base = data.getFTensor0N();
313  double error = 0;
314  for (int gg = 0; gg != nb_integration_pts; ++gg) {
315
316  const double alpha = t_w * volume;
317  double diff = t_val - Example::approxFunction(t_coords(0), t_coords(1),
318  t_coords(2));
319  error += alpha * pow(diff, 2);
320
321  for (size_t r = 0; r != nb_dofs; ++r) {
322  nf[r] += alpha * t_row_base * diff;
323  ++t_row_base;
324  }
325
326  ++t_w;
327  ++t_val;
328  ++t_coords;
329  }
330
331  const int index = 0;
332  CHKERR VecSetValue(commonDataPtr->L2Vec, index, error, ADD_VALUES);
333  CHKERR VecSetValues(commonDataPtr->resVec, data, &nf[0], ADD_VALUES);
334  }
335
337 }
MoFEM::PipelineManager::getBoundaryRhsFE
boost::shared_ptr< FEMethod > & getBoundaryRhsFE()
Definition: PipelineManager.hpp:287
MoFEM::createSmartVectorMPI
auto createSmartVectorMPI
Create MPI Vector.
Definition: PetscSmartObj.hpp:179
MoFEM::DeprecatedCoreInterface
Deprecated interface functions.
Definition: DeprecatedCoreInterface.hpp:26
Example::boundaryMarker
boost::shared_ptr< std::vector< bool > > boundaryMarker
Definition: lesson3_poisson.cpp:80
MoFEM::OpCalculateScalarFieldValues
Get value at integration points for scalar field.
Definition: UserDataOperators.hpp:85
MoFEM::VecSetValues
MoFEMErrorCode VecSetValues(Vec V, const DataForcesAndSourcesCore::EntData &data, const double *ptr, InsertMode iora)
Assemble PETSc vector.
Definition: DataStructures.hpp:1564
MoFEM::PipelineManager::setBoundaryLhsIntegrationRule
MoFEMErrorCode setBoundaryLhsIntegrationRule(RuleHookFun rule)
Definition: PipelineManager.hpp:346
H1
@ H1
continuous field
Definition: definitions.h:177
Example::approxFunction
static double approxFunction(const double x, const double y, const double z)
Definition: lesson3_poisson.cpp:56
Example::OpError::OpError
OpError(boost::shared_ptr< CommonData > &common_data_ptr)
Definition: lesson3_poisson.cpp:84
Example::nablaFunction
static double nablaFunction(const double x, const double y, const double z)
Definition: lesson3_poisson.cpp:59
MoFEM::Exceptions::MoFEMErrorCode
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
Definition: Exceptions.hpp:67
Example
[Example]
Definition: lesson3_poisson.cpp:47
MoFEM::PipelineManager::getOpBoundaryRhsPipeline
boost::ptr_vector< UserDataOperator > & getOpBoundaryRhsPipeline()
Get the Op Boundary Rhs Pipeline object.
Definition: PipelineManager.hpp:523
MoFEM::DataForcesAndSourcesCore::EntData::getIndices
const VectorInt & getIndices() const
Get global indices of dofs on entity.
Definition: DataStructures.hpp:1178
MoFEM::Types::MatrixDouble
ublas::matrix< double, ublas::row_major, DoubleAllocator > MatrixDouble
Definition: Types.hpp:76
MoFEM::OpCalculateInvJacForFace
Calculate inverse of jacobian for face element.
Definition: UserDataOperators.hpp:1875
MoFEM::PipelineManager::loopFiniteElements
MoFEMErrorCode loopFiniteElements(SmartPetscObj< DM > dm=nullptr)
Iterate finite elements.
Definition: PipelineManager.cpp:38
MoFEM::FaceElementForcesAndSourcesCoreBase::UserDataOperator
friend class UserDataOperator
Definition: FaceElementForcesAndSourcesCore.hpp:311
Example::invJac
MatrixDouble invJac
Definition: lesson3_poisson.cpp:73
OpBoundaryMass
OpTools< BoundaryEleOp >::OpMass OpBoundaryMass
Definition: lesson3_poisson.cpp:44
MoFEM::DMoFEMMeshToLocalVector
PetscErrorCode DMoFEMMeshToLocalVector(DM dm, Vec l, InsertMode mode, ScatterMode scatter_mode)
set local (or ghosted) vector values on mesh for partition only
Definition: DMMMoFEM.cpp:445
OpTools::OpMass
Definition: BaseOps.hpp:239
MoFEM::Simple
Simple interface for fast problem set-up.
Definition: Simple.hpp:36
MoFEM::Interface
DeprecatedCoreInterface Interface
Definition: Interface.hpp:1943
MoFEM::PipelineManager::getOpBoundaryLhsPipeline
boost::ptr_vector< UserDataOperator > & getOpBoundaryLhsPipeline()
Get the Op Boundary Lhs Pipeline object.
Definition: PipelineManager.hpp:499
OpBoundarySource
OpTools< BoundaryEleOp >::OpSource< 2 > OpBoundarySource
Definition: lesson3_poisson.cpp:45
ROW
@ ROW
Definition: definitions.h:192
eps
constexpr double eps
MoFEM::PipelineManager
PipelineManager interface.
Definition: PipelineManager.hpp:36
MoFEM::PipelineManager::getDomainRhsFE
boost::shared_ptr< FEMethod > & getDomainRhsFE()
Definition: PipelineManager.hpp:283
MoFEM::PipelineManager::getDomainLhsFE
boost::shared_ptr< FEMethod > & getDomainLhsFE()
Definition: PipelineManager.hpp:281
Example::setupProblem
MoFEMErrorCode setupProblem()
[Set up problem]
Definition: lesson3_poisson.cpp:103
Example::kspSolve
MoFEMErrorCode kspSolve()
[Push operators to pipeline]
Definition: lesson3_poisson.cpp:188
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:604
Example::mField
MoFEM::Interface & mField
Definition: lesson3_poisson.cpp:54
ElectroPhysiology::alpha
const double alpha
Definition: ElecPhysOperators.hpp:28
Example::checkResults
MoFEMErrorCode checkResults()
[Postprocess results]
Definition: lesson3_poisson.cpp:225
main
int main(int argc, char *argv[])
[Solver]
Definition: lesson3_poisson.cpp:258
simple
void simple(double P1[], double P2[], double P3[], double c[], const int N)
Definition: acoustic.cpp:69
double
convert.type
type
Definition: convert.py:66
MoFEM.hpp
MoFEM::FaceElementForcesAndSourcesCoreBase::UserDataOperator
default operator for TRI element
Definition: FaceElementForcesAndSourcesCore.hpp:44
MoFEM::smartCreateDMVector
auto smartCreateDMVector
Get smart vector from DM.
Definition: DMMoFEM.hpp:939
Example::OpError::doWork
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Operator for linear form, usually to calculate values on right hand side.
Definition: lesson3_poisson.cpp:295
MoFEM::smartVectorDuplicate
SmartPetscObj< Vec > smartVectorDuplicate(SmartPetscObj< Vec > &vec)
Create duplicate vector of smart vector.
Definition: PetscSmartObj.hpp:193
FTensor::Index< 'i', 3 >
MoFEM::PipelineManager::createKSP
SmartPetscObj< KSP > createKSP(SmartPetscObj< DM > dm=nullptr)
Create KSP (linear) solver.
Definition: PipelineManager.cpp:70
MoFEM::CoreTmp< 0 >::Initialize
static MoFEMErrorCode Initialize(int *argc, char ***args, const char file[], const char help[])
Initializes the MoFEM database PETSc, MOAB and MPI.
Definition: Core.cpp:60
MoFEM::DMRegister_MoFEM
PetscErrorCode DMRegister_MoFEM(const char sname[])
Register MoFEM problem.
Definition: DMMMoFEM.cpp:48
MoFEM::FaceElementForcesAndSourcesCoreBase
Face finite element.
Definition: FaceElementForcesAndSourcesCore.hpp:37
MoFEM::DataForcesAndSourcesCore::EntData::getFTensor0N
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
Definition: DataStructures.hpp:1459
MoFEM::SmartPetscObj< Vec >
MoFEM::ProblemsManager
Problem manager is used to build and partition problems.
Definition: ProblemsManager.hpp:34
MoFEM
implementation of Data Operators for Forces and Sources
Definition: Common.hpp:21
invJac
MatrixDouble invJac
Definition: HookeElement.hpp:698
MoFEM::PipelineManager::getOpDomainLhsPipeline
boost::ptr_vector< UserDataOperator > & getOpDomainLhsPipeline()
Get the Op Domain Lhs Pipeline object.
Definition: PipelineManager.hpp:451
Example::createCommonData
MoFEMErrorCode createCommonData()
[Set up problem]
Definition: lesson3_poisson.cpp:117
Example::Example
Example(MoFEM::Interface &m_field)
Definition: lesson3_poisson.cpp:49
MoFEM::CoreTmp< 0 >
Core (interface) class.
Definition: Core.hpp:77
Example::OpError
Definition: lesson3_poisson.cpp:82
MoFEM::EdgeElementForcesAndSourcesCoreBase::UserDataOperator
default operator for EDGE element
Definition: EdgeElementForcesAndSourcesCore.hpp:51
MoFEM::CoreTmp< 0 >::Finalize
static MoFEMErrorCode Finalize()
Checks for options to be called at the conclusion of the program.
Definition: Core.cpp:100
Example::OpError::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: lesson3_poisson.cpp:83
Example::postProcess
MoFEMErrorCode postProcess()
[Solve]
Definition: lesson3_poisson.cpp:208
MoFEM::PipelineManager::setDomainLhsIntegrationRule
MoFEMErrorCode setDomainLhsIntegrationRule(RuleHookFun rule)
Definition: PipelineManager.hpp:294
MoFEM::getFTensor0FromVec
static FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0FromVec(ublas::vector< T, A > &data)
Get tensor rank 0 (scalar) form data vector.
Definition: Templates.hpp:143
MoFEM::PipelineManager::getBoundaryLhsFE
boost::shared_ptr< FEMethod > & getBoundaryLhsFE()
Definition: PipelineManager.hpp:285
CATCH_ERRORS
#define CATCH_ERRORS
Catch errors.
Definition: definitions.h:441
Definition: lesson3_poisson.cpp:42
help
static char help[]
Definition: lesson3_poisson.cpp:30
MoFEM::PipelineManager::setDomainRhsIntegrationRule
MoFEMErrorCode setDomainRhsIntegrationRule(RuleHookFun rule)
Definition: PipelineManager.hpp:320
Example::integrationRule
static int integrationRule(int, int, int p_data)
Definition: lesson3_poisson.cpp:63
[Source operator]
Definition: BaseOps.hpp:137
EntData
DataForcesAndSourcesCore::EntData EntData
Definition: lesson3_poisson.cpp:34
Example::CommonData
[Example]
Definition: lesson3_poisson.cpp:74
Example::CommonData::resVec
SmartPetscObj< Vec > resVec
Definition: lesson3_poisson.cpp:77
Example::CommonData::L2Vec
SmartPetscObj< Vec > L2Vec
Definition: lesson3_poisson.cpp:76
AINSWORTH_LEGENDRE_BASE
@ AINSWORTH_LEGENDRE_BASE
Ainsworth Cole (Legendre) approx. base .
Definition: definitions.h:152
Example::bC
MoFEMErrorCode bC()
[Create common data]
Definition: lesson3_poisson.cpp:130
MOFEM_DATA_INCONSISTENCY
@ MOFEM_DATA_INCONSISTENCY
Definition: definitions.h:123
MoFEM::ProblemsManager::markDofs
MoFEMErrorCode markDofs(const std::string problem_name, RowColData rc, const Range ents, std::vector< bool > &marker)
Create vector with marked indices.
Definition: ProblemsManager.cpp:3078
OpTools::OpSource
[Source operator]
Definition: BaseOps.hpp:97
Example::OPs
MoFEMErrorCode OPs()
[Boundary condition]
Definition: lesson3_poisson.cpp:165
Example::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: lesson3_poisson.cpp:79
MoFEM::PipelineManager::getOpDomainRhsPipeline
boost::ptr_vector< UserDataOperator > & getOpDomainRhsPipeline()
Get the Op Domain Rhs Pipeline object.
Definition: PipelineManager.hpp:475
order
constexpr int order
Definition: lesson7_plastic.cpp:38
MoFEM::DataForcesAndSourcesCore::EntData
Data on single entity (This is passed as argument to DataOperator::doWork)
Definition: DataStructures.hpp:60
Example::CommonData::approxVals
boost::shared_ptr< VectorDouble > approxVals
Definition: lesson3_poisson.cpp:75
MoFEM::ForcesAndSourcesCore::UserDataOperator
friend class UserDataOperator
Definition: ForcesAndSourcesCore.hpp:818
i
FTensor::Index< 'i', 3 > i
Definition: matrix_function.cpp:18
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:485
BaseOps.hpp
Example::runProblem
MoFEMErrorCode runProblem()
[Run problem]
Definition: lesson3_poisson.cpp:90
MoFEM::Types::VectorDouble
ublas::vector< double, DoubleAllocator > VectorDouble
Definition: Types.hpp:74
MoFEM::Core
CoreTmp< 0 > Core
Definition: Core.hpp:1129
MoFEM::UnknownInterface::getInterface
MoFEMErrorCode getInterface(const MOFEMuuid &uuid, IFACE *&iface) const
Get interface by uuid and return reference to pointer of interface.
Definition: UnknownInterface.hpp:130
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:415
ReactionDiffusionEquation::r
const double r
rate factor
Definition: reaction_diffusion.cpp:33
MoFEM::EdgeElementForcesAndSourcesCoreBase
Edge finite element.
Definition: EdgeElementForcesAndSourcesCore.hpp:44
MoFEM::PipelineManager::setBoundaryRhsIntegrationRule
MoFEMErrorCode setBoundaryRhsIntegrationRule(RuleHookFun rule)
Definition: PipelineManager.hpp:372
ReactionDiffusionEquation::D
const double D
diffusivity
Definition: reaction_diffusion.cpp:32
OpDomainSource
OpTools< DomainEleOp >::OpSource< 2 > OpDomainSource
Definition: lesson3_poisson.cpp:43