meshTecplot.hh

Go to the documentation of this file.
1 
6 #ifndef graphMeshTecplot_hh
7 #define graphMeshTecplot_hh
8 
9 #include <string>
10 #include <fstream>
11 #include <memory>
12 #include "basics/typedefs.hh"
14 #include "basics/exceptions.hh"
15 #include "toolbox/dynArray.hh"
16 #include "space/postProcess.hh"
17 
18 namespace concepts {
19  // forward declartions
20  class Mesh2;
21  class Mesh3;
22 } // namespace concepts
23 
24 namespace graphics {
25 
26  // forward declartions
27  class VertexList;
28 
29  using concepts::Real;
30 
31  // *********************************************************** MeshTecplot **
32 
37  template<typename F>
38  class MeshTecplot {
39  public:
41  MeshTecplot(concepts::Mesh& msh, const std::string& filename);
43  MeshTecplot(concepts::Space<F>& spc, const std::string& filename,
44  const uint dim);
45  private:
46  const std::string filename_;
47  };
48 
52  void drawMeshTecplot(concepts::Mesh& msh, const std::string& filename);
53 
57  template<typename F>
58  void drawMeshTecplot(concepts::Space<F>& spc, const std::string& filename,
59  const uint dim);
60 
61  // ******************************************************* MeshTecplotCell **
62 
66  template<typename F>
68  public:
70  MeshTecplotCell(const std::string& filename, VertexList& vtxList,
71  const uint nelm, const uint dim);
72  virtual ~MeshTecplotCell();
73  virtual void operator() (const concepts::Element<F>& elm)
75  virtual void operator() (const concepts::Cell& cell)
77  private:
79  std::ofstream file_;
80 
83  };
84 
85 } // namespace graphics
86 
87 #endif // graphMeshTecplot_hh
const std::string filename_
Definition: meshTecplot.hh:46
An abstract class for an element of a space.
Definition: exceptions.hh:15
Abstract class for a space.
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
Definition: cell.hh:39
MeshTecplot(concepts::Space< F > &spc, const std::string &filename, const uint dim)
Constructor.
MeshTecplotCell(const std::string &filename, VertexList &vtxList, const uint nelm, const uint dim)
Constructor.
std::ofstream file_
Stream to file.
Definition: meshTecplot.hh:79
virtual void operator()(const concepts::Element< F > &elm)
Application operator.
Graphics.
Definition: basis.hh:33
Creates files to show the mesh using Tecplot.
Definition: meshTecplot.hh:38
void drawMeshTecplot(concepts::Mesh &msh, const std::string &filename)
Trampoline function to create an instance of MeshTecplot.
Class containing a list of vertices.
Definition: vertexList.hh:97
VertexList & vtxList_
Vertex list.
Definition: meshTecplot.hh:82
MeshTecplot(concepts::Mesh &msh, const std::string &filename)
Constructor.
Exception class to express a missing feature.
Definition: exceptions.hh:206
An abstract class for meshes.
Definition: mesh.hh:76
Abstract class for per cell postprocessing.
Definition: postProcess.hh:38
double Real
Type normally used for a floating point number.
Definition: typedefs.hh:36
Basic namespace for Concepts-2.
Definition: pml_formula.h:16
Cell by cell output for MeshTecplot.
Definition: meshTecplot.hh:67
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich