#include <tutorials/cor-2to5/src/PoissonOperators.hpp>
Definition at line 662 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
Definition at line 677 of file PoissonOperators.hpp.
684 double vol = getVolume();
686 auto t_w = getFTensor0IntegrationWeight();
690 auto t_grad = getFTensor1FromMat<3>(*
gradVals);
696 auto t_coords = getFTensor1CoordsAtGaussPts();
700 const double alpha = vol * t_w;
701 const double source_term =
704 grad_term(
i) = (alpha *
A(t_u)) * t_grad(
i);
709 for (
int rr = 0; rr !=
nbRows; rr++) {
711 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