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();
46 "parallel_plate/dielectrics.dat",
"parallel_plate/parallel_plate.result",
"cm");
52 sensor->
SetArea(-1*ext_x,-1*ext_y,-1*ext_z,ext_x,ext_y,ext_z);
58 vf->
SetArea(-1*ext_x,-1*ext_y,ext_x,ext_y);
72 vFE->
SetArea(-1*ext_x,-1*ext_z,-1*ext_z,ext_x,ext_z,ext_z);
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)
void AddComponent(Component *comp)
Add a component.
bool SetArea()
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[])