21#ifndef BELFEM_CL_CHAIN_HPP
22#define BELFEM_CL_CHAIN_HPP
47 Chain * mBoundary =
nullptr;
50 Chain * mCoboundary =
nullptr;
52 bool mIsBound =
false;
53 bool mIsCobound =
false;
59 Chain(
const uint aDim,
Mesh * aMesh,
const bool aIsBound,
const bool aIsCobound ) ;
160 return mSimplicesMap;
168 auto it = mSimplicesMap.
find(aID);
169 if (it != mSimplicesMap.end()) {
206 mCoboundary->addSimplexToChain(aID,aCoeff);
Top-level container for all mesh entities.
Definition cl_Mesh.hpp:60
auto find(const Key &tKey) const -> decltype(mMap.find(tKey))
Definition cl_OrderedMap.hpp:139
Formal sum of k-simplices (homology).
Definition cl_Chain.hpp:36
int operator()(Chain *aChain)
Definition cl_Chain.cpp:84
int getDim()
Definition cl_Chain.hpp:212
void operator-(Chain *aChain)
Definition cl_Chain.cpp:65
Chain * getBoundary()
Definition cl_Chain.hpp:180
void operator*(const int aMult)
Definition cl_Chain.cpp:73
void setCoefficient(const id_t aID, const int tCoeff)
Definition cl_Chain.cpp:182
Chain * getCoboundary()
Definition cl_Chain.hpp:188
void removeSimplexToChain(const id_t aID)
Definition cl_Chain.cpp:125
void add_simplex_to_boundary(id_t aID, const int aCoeff)
Definition cl_Chain.hpp:196
void operator+(Chain *aChain)
Definition cl_Chain.cpp:57
void addChainToChain(Chain *aChain, int aCoeff)
Definition cl_Chain.cpp:134
void addSimplexToChain(const id_t aID, const int aCoeff)
Definition cl_Chain.cpp:101
OrderedMap< id_t, int > & getSimplicesMap()
Definition cl_Chain.hpp:158
int getCoefficient(const id_t aID)
Definition cl_Chain.hpp:166
void add_simplex_to_coboundary(id_t aID, const int aCoeff)
Definition cl_Chain.hpp:204
void print()
Definition cl_Chain.cpp:197
void removeChainFromChain(Chain *aChain)
Definition cl_Chain.cpp:163
Chain(const uint aDim, Mesh *aMesh, const bool aIsBound, const bool aIsCobound)
Definition cl_Chain.cpp:21
Definition cl_EF_EdgeFunction.hpp:17
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30
unsigned int id_t
Definition typedefs.hpp:41