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