HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
|
#include <BoundaryConditions/BoundaryConditions.hpp>
#include <globaldofspace.hpp>
#include <mesh.hpp>
Go to the source code of this file.
Functions | |
void | setBCLabels (const BoundaryConditions &BC, GlobalDOFSpace &globaldofspace) |
Adds BC labels do GlobalDOFSpace DOFs. The default label is 0; we leave it 0 for internal DOF, -1 for Neumann DOF and 1 for Dirichlet DOF. | |
int | offsetIndex (const std::vector< size_t > &c, const int &i) |
Function to offset and index i according to a vector c0,c1,...,c2n of increasing numbers. | |
Eigen::ArrayXi | create_mapDOF (const std::vector< size_t > &c, const size_t N) |
Create a map from DOFs 0..N-1 to values obtained by cutting the DOFs corresponding to c (as per offsetIndex). | |
template<typename VecType > | |
VecType | replaceSectionsVector (const VecType &V, const VecType &Z, const std::vector< std::pair< size_t, size_t > > &sec) |
Replace sections of vector V by values from vector Z into vector V; the sections are determined by 'sec'. The vectors are any (identical) types of Eigen::Vector. | |