#include <users_modules/tutorials/cor-2to5/src/PoissonOperators.hpp>
Definition at line 659 of file PoissonOperators.hpp.
◆ OpResF_Domain()
PoissonExample::OpResF_Domain::OpResF_Domain |
( |
FSource |
f_source, |
|
|
boost::function< double(const double)> |
a, |
|
|
boost::shared_ptr< VectorDouble > & |
field_vals, |
|
|
boost::shared_ptr< MatrixDouble > & |
grad_vals |
|
) |
| |
|
inline |
◆ iNtegrate()
Integrate local entity vector.
- Parameters
-
data | entity data on element row |
- Returns
- error code
Reimplemented from PoissonExample::OpF.
- Examples
- PoissonOperators.hpp.
Definition at line 674 of file PoissonOperators.hpp.
681 double vol = getVolume();
683 auto t_w = getFTensor0IntegrationWeight();
687 auto t_grad = getFTensor1FromMat<3>(*
gradVals);
689 auto t_v = data.getFTensor0N();
691 auto t_v_grad = data.getFTensor1DiffN<3>();
693 auto t_coords = getFTensor1CoordsAtGaussPts();
697 const double alpha = vol * t_w;
698 const double source_term =
701 grad_term(
i) = (alpha *
A(t_u)) * t_grad(
i);
706 for (
int rr = 0; rr !=
nbRows; rr++) {
708 t_a += t_v_grad(
i) * grad_term(
i) + t_v * source_term;
boost::function<double(const double)> PoissonExample::OpResF_Domain::A |
|
protected |
◆ fieldVals
boost::shared_ptr<VectorDouble> PoissonExample::OpResF_Domain::fieldVals |
|
protected |
◆ gradVals
boost::shared_ptr<MatrixDouble> PoissonExample::OpResF_Domain::gradVals |
|
protected |
The documentation for this struct was generated from the following file:
FTensor::Index< 'i', 3 > i
boost::function< double(const double)> A
boost::shared_ptr< VectorDouble > fieldVals
boost::shared_ptr< MatrixDouble > gradVals