25 {
26
27 TApplication app("app", &argc, argv);
28
29
30 const double ext_x = 1.0;
31 const double ext_y = 1.0;
32 const double ext_z = 1.0;
33
34
35 TCanvas * c1 = new TCanvas();
36
37
43
44
46 "parallel_plate/dielectrics.dat","parallel_plate/parallel_plate.result","cm");
48
49
52 sensor->
SetArea(-1*ext_x,-1*ext_y,-1*ext_z,ext_x,ext_y,ext_z);
53
54
58 vf->
SetArea(-1*ext_x,-1*ext_y,ext_x,ext_y);
62
63
70
71
72 vFE->
SetArea(-1*ext_x,-1*ext_z,-1*ext_z,ext_x,ext_z,ext_z);
74
75
76 app.Run(kTRUE);
77
78 return 0;
79}
Component for importing field maps computed by Elmer.
void SetMedium(const unsigned int imat, Medium *medium)
Associate a field map material with a Medium class.
bool SetComposition(const std::string &gas1, const double f1=1., const std::string &gas2="", const double f2=0., const std::string &gas3="", const double f3=0., const std::string &gas4="", const double f4=0., const std::string &gas5="", const double f5=0., const std::string &gas6="", const double f6=0.)
Set the gas mixture.
void SetTemperature(const double t)
Set the temperature [K].
virtual void EnableDrift(const bool on=true)
Switch electron/ion/hole on/off.
void SetPressure(const double p)
bool SetArea()
Set the user area to the default.
void AddComponent(ComponentBase *comp)
Add a component.
void SetCanvas(TCanvas *c)
Set the canvas to be painted on.
Draw the mesh of a field-map component.
void SetComponent(ComponentFieldMap *comp)
Set the component from which to retrieve the mesh and field.
void SetPlane(double fx, double fy, double fz, double x0, double y0, double z0)
Set the projection plane.
void SetArea()
Set area to be plotted to the default.
void SetColor(int matID, int colorID)
void SetFillMesh(const bool f)
Element fill switch; 2D only, set false for wireframe mesh.
Visualize the potential or electric field of a component or sensor.
void SetPlane(const double fx, const double fy, const double fz, const double x0, const double y0, const double z0)
void SetNumberOfSamples2d(const unsigned int nx, const unsigned int ny)
Set the number of points used for drawing 2D functions.
void PlotContour(const std::string &option="v")
void SetNumberOfContours(const unsigned int n)
Set the number of contour levels (at most 50).
void SetArea(const double xmin, const double ymin, const double xmax, const double ymax)
Set the viewing area (in local coordinates of the current viewing plane).
void SetSensor(Sensor *s)
Set the sensor from which to retrieve the field.