37 #include "AbstractMeshWriter.hpp"
44 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
46 const std::string& rBaseName,
47 const bool clearOutputDir)
48 : mBaseName(rBaseName),
54 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
57 delete mpOutputFileHandler;
60 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
63 return mpOutputFileHandler->GetOutputDirectoryFullPath();
66 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
72 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
78 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
81 return mNumBoundaryElements;
84 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
87 return mNumCableElements;
91 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
94 assert(mpMeshReader!=NULL);
95 return mpMeshReader->GetNextNode();
98 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
101 assert(mpMeshReader!=NULL);
102 return mpMeshReader->GetNextElementData();
105 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
108 assert(mpMeshReader!=NULL);
109 return mpMeshReader->GetNextFaceData();
112 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
115 assert(mpMeshReader!=NULL);
116 return mpMeshReader->GetNextCableElementData();
120 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
124 mpMeshReader = &rMeshReader;
126 mNumElements = mpMeshReader->GetNumElements();
127 mNumBoundaryElements = mpMeshReader->GetNumFaces();
130 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()