Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
ComponentAnsys123.hh
Go to the documentation of this file.
1#ifndef G_COMPONENT_ANSYS123_H
2#define G_COMPONENT_ANSYS123_H
3
5
6namespace Garfield {
7
9
10 public:
11 // Constructor
13 // Destructor
15
16 void ElectricField(const double x, const double y, const double z, double& ex,
17 double& ey, double& ez, Medium*& m, int& status);
18 void ElectricField(const double x, const double y, const double z, double& ex,
19 double& ey, double& ez, double& v, Medium*& m,
20 int& status);
21
22 void WeightingField(const double x, const double y, const double z,
23 double& wx, double& wy, double& wz,
24 const std::string label);
25
26 double WeightingPotential(const double x, const double y, const double z,
27 const std::string label);
28
29 Medium* GetMedium(const double& x, const double& y, const double& z);
30
31 bool IsInBoundingBox(const double x, const double y, const double z) {
32 return x >= xMinBoundingBox && x <= xMaxBoundingBox &&
33 y >= yMinBoundingBox && y <= yMaxBoundingBox &&
35 }
36
37 bool Initialise(std::string elist = "ELIST.lis",
38 std::string nlist = "NLIST.lis",
39 std::string mplist = "MPLIST.lis",
40 std::string prnsol = "PRNSOL.lis", std::string unit = "cm");
41
42 bool SetWeightingField(std::string prnsol, std::string label);
43
44 protected:
45 // Verify periodicities
47
48 double GetElementVolume(const int i);
49 void GetAspectRatio(const int i, double& dmin, double& dmax);
50};
51}
52#endif
bool Initialise(std::string elist="ELIST.lis", std::string nlist="NLIST.lis", std::string mplist="MPLIST.lis", std::string prnsol="PRNSOL.lis", std::string unit="cm")
double GetElementVolume(const int i)
void GetAspectRatio(const int i, double &dmin, double &dmax)
Medium * GetMedium(const double &x, const double &y, const double &z)
double WeightingPotential(const double x, const double y, const double z, const std::string label)
bool IsInBoundingBox(const double x, const double y, const double z)
void ElectricField(const double x, const double y, const double z, double &ex, double &ey, double &ez, Medium *&m, int &status)
bool SetWeightingField(std::string prnsol, std::string label)
void WeightingField(const double x, const double y, const double z, double &wx, double &wy, double &wz, const std::string label)