Assemble constrains vector.
More...
#include <tutorials/cor-2to5/src/PoissonOperators.hpp>
Assemble constrains vector.
\[ \mathbf{g} = \int_{\partial\Omega} \boldsymbol\psi \overline{u} \textrm{d}\partial\Omega \]
- Examples
- analytical_poisson_field_split.cpp.
Definition at line 419 of file PoissonOperators.hpp.
◆ FVal
◆ Op_g()
PoissonExample::Op_g::Op_g |
( |
FVal |
f_value, |
|
|
const string |
field_name = "L" , |
|
|
const double |
beta = 1 |
|
) |
| |
|
inline |
Definition at line 425 of file PoissonOperators.hpp.
426 : OpBaseRhs<FaceElementForcesAndSourcesCore::UserDataOperator>(
◆ aSsemble()
assemble constrains vectors
Definition at line 480 of file PoissonOperators.hpp.
482 const int *indices = &*data.
getIndices().data().begin();
483 const double *vals = &*
locVec.data().begin();
484 Vec f = getFEMethod()->ksp_f != PETSC_NULL ? getFEMethod()->ksp_f
485 : getFEMethod()->snes_f;
◆ iNtegrate()
Integrate local constrains vector.
Definition at line 442 of file PoissonOperators.hpp.
449 const double area = getArea() *
bEta;
451 auto t_w = getFTensor0IntegrationWeight();
455 auto t_coords = getFTensor1CoordsAtGaussPts();
461 area * t_w *
fValue(t_coords(
NX), t_coords(
NY), t_coords(
NZ));
466 for (
int rr = 0; rr !=
nbRows; rr++) {
◆ bEta
const double PoissonExample::Op_g::bEta |
|
protected |
◆ fValue
FVal PoissonExample::Op_g::fValue |
|
protected |
◆ locVec
VectorDouble PoissonExample::Op_g::locVec |
|
protected |
◆ NX
◆ NY
◆ NZ
The documentation for this struct was generated from the following file: