|
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
Functions assembleVectorLocally() for setting entries of the vector representing the finite element Galerkin discretization of a linear functional.
Vectors
The functions differ in their arguments, but all are templated with the following types:
Also refer to Lecture Document Example 2.7.4.27 and Lecture Document Example 2.7.4.35.
Functions | |
| template<typename VECTOR , class ENTITY_VECTOR_PROVIDER > | |
| void | lf::assemble::AssembleVectorLocally (dim_t codim, const DofHandler &dof_handler, ENTITY_VECTOR_PROVIDER &entity_vector_provider, VECTOR &resultvector) |
| entity-local assembly of (right-hand-side) vectors from element vectors More... | |
| template<typename VECTOR , class ENTITY_VECTOR_PROVIDER > | |
| VECTOR | lf::assemble::AssembleVectorLocally (dim_t codim, const DofHandler &dof_handler, ENTITY_VECTOR_PROVIDER &entity_vector_provider) |
| entity-local assembly of (right-hand-side) vectors from element vectors More... | |
| VECTOR lf::assemble::AssembleVectorLocally | ( | dim_t | codim, |
| const DofHandler & | dof_handler, | ||
| ENTITY_VECTOR_PROVIDER & | entity_vector_provider | ||
| ) |
entity-local assembly of (right-hand-side) vectors from element vectors
| VECTOR | a generic vector type with component access through [] |
| ENTITY_VECTOR_PROVIDER | type for objects computing entity-local vectors, models concept EntityVectorProvider |
VECTOR must supply a setZero method for initialization with zero. All matrix types of Eigen have such a method see Eigen documentation
Definition at line 347 of file assembler.h.
References lf::assemble::DofHandler::NumDofs().
| void lf::assemble::AssembleVectorLocally | ( | dim_t | codim, |
| const DofHandler & | dof_handler, | ||
| ENTITY_VECTOR_PROVIDER & | entity_vector_provider, | ||
| VECTOR & | resultvector | ||
| ) |
entity-local assembly of (right-hand-side) vectors from element vectors
| VECTOR | a generic vector type with component access through [] |
| ENTITY_VECTOR_PROVIDER | type for objects computing entity-local vectors, models concept EntityVectorProvider |
| codim | co-dimension of entities over which assembly should be carried out |
| dof_handler | object providing local-to-global dof index mapping, see DofHandler |
| entity_vector_provider | local entity_vector_provider object (passed as non-const!) |
| resultvector | generic vector for returning the assembled vector |
size() method telling its length and read/write access through the [] operator.resultvector argument. This means that resultvector has to be initialized before calling this function!Definition at line 297 of file assembler.h.
References lf::assemble::DofHandler::GlobalDofIndices(), lf::assemble::DofHandler::Mesh(), and lf::assemble::DofHandler::NumLocalDofs().
Referenced by projects::ipdg_stokes::assemble::buildSystemMatrixInOutFlow(), projects::ipdg_stokes::assemble::buildSystemMatrixNoFlow(), projects::hldo_sphere::operators::DiracOperator::Compute(), projects::hldo_sphere::operators::WhitneyOneHodgeLaplace< SCALAR >::Compute(), projects::hldo_sphere::operators::WhitneyTwoHodgeLaplace< SCALAR >::Compute(), and projects::hldo_sphere::operators::WhitneyZeroHodgeLaplace< SCALAR >::Compute().