graphics.pypp.hh

Go to the documentation of this file.
1 #ifndef graphics_pypp_hh
2 #define graphics_pypp_hh
3 
6 #include "graphics/meshEPS.hh"
7 #include "graphics/matlab.hh"
8 #include "graphics/basis.hh"
9 #include "graphics/dataMatlab.hh"
10 #include "graphics/meshDAT.hh"
11 
12 #include "space/space.hh"
13 #include "function/vector.hh"
15 
16 //#include "python/conceptspy/graphics/add/graphicspy.hh" it not possible to parse .hh files including boost/python.hpp
17 
18 //#include "hp2D.hh"
19 
21 
22 #ifdef GEN_PYTHON
23 
24  std::cout << sizeof(graphics::MeshEPS<concepts::Real>);
25  concepts::Square mesh(1, 1, 1);
35 
36  graphics::MatlabBinaryGraphics mbg1(spc_r, "bla");
37  //graphics::MatlabBinaryGraphics mbg2(spc_c, "bla");
38  graphics::MatlabBinaryGraphics mbg3(spc_r, "bla", vec_r);
39  //graphics::MatlabBinaryGraphics mbg4(spc_c, "bla", vec_c);
40  graphics::MatlabBinaryGraphics mbg5(spc_r, "bla", vec_c);
41  // graphics::MatlabBinaryGraphics mbg6(spc_c, "bla", vec_r);
42  graphics::MatlabBinaryGraphics mbg7(spc_r, "bla", formu_r_r);
43  graphics::MatlabBinaryGraphics mbg8(spc_r, "bla", formu_c_r);
44  // graphics::MatlabBinaryGraphics mbg9(spc_c, "bla", formu_r_c);
45  // graphics::MatlabBinaryGraphics mbg0(spc_c, "bla", formu_c_c);
46 
47 
49 
50  mbg1.addSolution(spc_r,"u",vec_r);
51  mbg1.addFunction(spc_r,"bla",formu_r_r);
52  graphics::VtkGraphics vtk(spc_r,"bla");
53  vtk.addSolution(spc_r,"u",vec_r);
54 
55  graphics::VtkGraphics vtk2(spc_r,"bla",vec_r);
56  graphics::VtkGraphics vtk3(spc_r,"bla",vec_c);
57 
58  graphics::MeshEPS<concepts::Real> mshEPS_m(mesh,"espfile");
59  graphics::MeshEPS<concepts::Real> mshEPS_s(spc_r,"espfile");
60 
61 
62  graphics::MatlabGraphics mtlgra1(spc_r, "bla");
63  graphics::MatlabGraphics mtlgra2(spc_r, "bla", vec_r);
64  // graphics::MatlabGraphics mtlgra1(spc_c, "bla");
65  graphics::MatlabGraphics mtlgra3(spc_r, "bla", vec_c);
66 
67  //graphics::MatlabGraphics mtlgra3(spc, "bla", formu);
68 
69 #endif
70 }
71 #endif
Draws a picture of data in Matlab format and stores the result in a single file.
Definition: matlab.hh:114
void add(const Set< Attribute > &attrib, const Boundary &bcObject)
Adds a boundary condition with this attribute to the list of boundary conditions.
void addSolution(const concepts::Space< G > &spc, const std::string name, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
Adds a solution vector to the current matfile.
Class that allows to store graphical infomations in .mat files to use them in Matlab.
Class to describe an element of the boundary.
Definition: boundary.hh:35
void export_graphics_templates()
Mesh for with one quadrilateral.
Definition: square.hh:22
Class that allows to store graphical infomations in .vtk files to use them in paraview.
Definition: vtkGraphics.hh:20
void addSolution(const concepts::Space< G > &spc, const std::string name, const concepts::Vector< F > &sol, const concepts::ElementFunction< F, G > *fun=0)
Adds a solution vector to the current matfile.
Definition: vtkGraphics.hh:67
Attributes for elements of the topology.
Definition: connector.hh:22
void addFunction(const concepts::Space< G > &spc, const std::string name, const concepts::ElementFormula< F, G > &frm)
Adds a solution vector to the current matfile.
Draws a picture of a mesh in EPS format and stores the result in a file.
Definition: meshEPS.hh:39
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich