14#include <TApplication.h>
25int main(
int argc,
char * argv[]) {
27 TApplication app(
"app", &argc, argv);
30 const double ext_x = 1.0;
31 const double ext_y = 1.0;
32 const double ext_z = 1.0;
35 TCanvas * c1 =
new TCanvas();
45 "parallel_plate/mesh.elements",
46 "parallel_plate/mesh.nodes",
47 "parallel_plate/dielectrics.dat",
48 "parallel_plate/parallel_plate.result",
"cm");
54 sensor.
SetArea(-ext_x,-ext_y,-ext_z,ext_x,ext_y,ext_z);
60 vf.
SetArea(-ext_x,-ext_y,ext_x,ext_y);
74 vFE.
SetArea(-ext_x,-ext_z,-ext_z,ext_x,ext_z,ext_z);
Component for importing field maps computed by Elmer.
void SetGas(Medium *medium)
void SetTemperature(const double t)
Set the temperature [K].
void SetPressure(const double p)
void AddComponent(Component *comp)
Add a component.
bool SetArea(const bool verbose=false)
Set the user area to the default.
void SetCanvas(TPad *pad)
Set the canvas to be painted on.
void SetArea(const double xmin, const double ymin, const double xmax, const double ymax)
virtual void SetPlane(const double fx, const double fy, const double fz, const double x0, const double y0, const double z0)
Draw the mesh of a field-map component.
void SetPlane(const double fx, const double fy, const double fz, const double x0, const double y0, const double z0) override
void SetComponent(ComponentFieldMap *cmp)
Set the component from which to retrieve the mesh and field.
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 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.
void SetSensor(Sensor *s)
Set the sensor for which to plot the field.
int main(int argc, char *argv[])