37 #include "AbstractMeshWriter.hpp"
40 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
42 const std::string& rBaseName,
43 const bool clearOutputDir)
44 : mBaseName(rBaseName),
50 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
53 delete mpOutputFileHandler;
56 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
59 return mpOutputFileHandler->GetOutputDirectoryFullPath();
62 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
68 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
74 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
77 return mNumBoundaryElements;
80 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
83 return mNumCableElements;
86 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
89 assert(mpMeshReader !=
nullptr);
90 return mpMeshReader->GetNextNode();
93 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
96 assert(mpMeshReader !=
nullptr);
97 return mpMeshReader->GetNextElementData();
100 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
103 assert(mpMeshReader !=
nullptr);
104 return mpMeshReader->GetNextFaceData();
107 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
110 assert(mpMeshReader !=
nullptr);
111 return mpMeshReader->GetNextCableElementData();
114 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
117 mpMeshReader = &rMeshReader;
119 mNumElements = mpMeshReader->GetNumElements();
120 mNumBoundaryElements = mpMeshReader->GetNumFaces();
123 mNumCableElements = mpMeshReader->GetNumCableElements();
virtual ElementData GetNextCableElement()
unsigned GetNumCableElements()
AbstractMeshWriter(const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
virtual ~AbstractMeshWriter()
void WriteFilesUsingMeshReader(AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader)
virtual unsigned GetNumNodes()
OutputFileHandler * mpOutputFileHandler
std::string GetOutputDirectory()
virtual std::vector< double > GetNextNode()
unsigned GetNumElements()
virtual ElementData GetNextBoundaryElement()
virtual ElementData GetNextElement()
virtual unsigned GetNumNodes() const =0
unsigned GetNumBoundaryFaces()