DFT-EFE
 
Loading...
Searching...
No Matches
TriangulationBase.h
Go to the documentation of this file.
1#ifndef dftefeTriangulationBase_h
2#define dftefeTriangulationBase_h
3
4#include <utils/TypeConfig.h>
5#include <utils/Point.h>
7#include <vector>
8#include <memory>
9namespace dftefe
10{
11 namespace basis
12 {
17 {
18 public:
19 virtual ~TriangulationBase() = default;
20 typedef std::vector<std::shared_ptr<TriangulationCellBase>>::iterator
22 typedef std::vector<std::shared_ptr<TriangulationCellBase>>::
24 virtual void
26 virtual void
28 virtual void
30 const std::vector<unsigned int> &subdivisions,
31 const std::vector<utils::Point> &domainVectors,
32 const std::vector<bool> & isPeriodicFlags) = 0;
33 virtual void
35 const std::vector<utils::Point> &vertices) = 0;
36 virtual void
37 shiftTriangulation(const utils::Point &origin) = 0;
38 virtual void
39 refineGlobal(const unsigned int times = 1) = 0;
40 virtual void
41 coarsenGlobal(const unsigned int times = 1) = 0;
42 virtual void
44 virtual void
46 virtual unsigned int
47 nLocallyOwnedCells() const = 0;
48 virtual double
49 maxElementLength() const = 0;
50 virtual double
51 minElementLength() const = 0;
52 virtual unsigned int
53 nLocalCells() const = 0;
54 virtual size_type
55 nGlobalCells() const = 0;
56 // virtual size_type
57 // nCells() const = 0;
58 virtual std::vector<size_type>
59 getBoundaryIds() const = 0;
63 endLocal() = 0;
65 beginLocal() const = 0;
67 endLocal() const = 0;
68 virtual unsigned int
69 getDim() const = 0;
70 virtual std::vector<bool>
71 getPeriodicFlags() const = 0;
72 virtual void
73 saveRefineFlags(std::vector<bool> &v) const = 0;
74 virtual void
75 writeToVtkFile(std::ostream &out) const = 0;
76 virtual std::vector<utils::Point>
77 getDomainVectors() const = 0;
78
79 }; // end of class TriangulationBase
80 } // end of namespace basis
81} // end of namespace dftefe
82#endif
An abstract class for the triangulation class. The derived class specialises this class to dealii and...
Definition: TriangulationBase.h:17
virtual void createUniformParallelepiped(const std::vector< unsigned int > &subdivisions, const std::vector< utils::Point > &domainVectors, const std::vector< bool > &isPeriodicFlags)=0
virtual double minElementLength() const =0
virtual unsigned int nLocalCells() const =0
virtual void executeCoarseningAndRefinement()=0
virtual void refineGlobal(const unsigned int times=1)=0
virtual void saveRefineFlags(std::vector< bool > &v) const =0
virtual std::vector< utils::Point > getDomainVectors() const =0
virtual TriangulationCellIterator beginLocal()=0
virtual const_TriangulationCellIterator endLocal() const =0
virtual void shiftTriangulation(const utils::Point &origin)=0
virtual std::vector< size_type > getBoundaryIds() const =0
virtual void coarsenGlobal(const unsigned int times=1)=0
virtual const_TriangulationCellIterator beginLocal() const =0
virtual unsigned int getDim() const =0
virtual void finalizeTriangulationConstruction()=0
virtual void writeToVtkFile(std::ostream &out) const =0
virtual unsigned int nLocallyOwnedCells() const =0
virtual TriangulationCellIterator endLocal()=0
virtual void initializeTriangulationConstruction()=0
virtual size_type nGlobalCells() const =0
virtual void createSingleCellTriangulation(const std::vector< utils::Point > &vertices)=0
virtual double maxElementLength() const =0
std::vector< std::shared_ptr< TriangulationCellBase > >::const_iterator const_TriangulationCellIterator
Definition: TriangulationBase.h:23
std::vector< std::shared_ptr< TriangulationCellBase > >::iterator TriangulationCellIterator
Definition: TriangulationBase.h:21
virtual std::vector< bool > getPeriodicFlags() const =0
virtual ~TriangulationBase()=default
Definition: PointImpl.h:13
dealii includes
Definition: AtomFieldDataSpherical.cpp:31
unsigned int size_type
Definition: TypeConfig.h:8