Garfield++ 3.0
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
8/// Component for importing and interpolating three-dimensional ANSYS field maps.
9
11 public:
12 /// Constructor
14 /// Destructor
16
17 void ElectricField(const double x, const double y, const double z, double& ex,
18 double& ey, double& ez, Medium*& m, int& status) override;
19 void ElectricField(const double x, const double y, const double z, double& ex,
20 double& ey, double& ez, double& v, Medium*& m,
21 int& status) override;
22
23 void WeightingField(const double x, const double y, const double z,
24 double& wx, double& wy, double& wz,
25 const std::string& label) override;
26
27 double WeightingPotential(const double x, const double y, const double z,
28 const std::string& label) override;
29
30 Medium* GetMedium(const double x, const double y, const double z) override;
31
32 bool Initialise(std::string elist = "ELIST.lis",
33 std::string nlist = "NLIST.lis",
34 std::string mplist = "MPLIST.lis",
35 std::string prnsol = "PRNSOL.lis", std::string unit = "cm");
36
37 bool SetWeightingField(std::string prnsol, std::string label);
38
39 protected:
40 // Verify periodicities
42
43 double GetElementVolume(const unsigned int i) override;
44 void GetAspectRatio(const unsigned int i, double& dmin,
45 double& dmax) override;
46};
47}
48#endif
Component for importing and interpolating three-dimensional ANSYS field maps.
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 unsigned int i) override
void WeightingField(const double x, const double y, const double z, double &wx, double &wy, double &wz, const std::string &label) override
double WeightingPotential(const double x, const double y, const double z, const std::string &label) override
void UpdatePeriodicity() override
Verify periodicities.
void GetAspectRatio(const unsigned int i, double &dmin, double &dmax) override
bool SetWeightingField(std::string prnsol, std::string label)
void ElectricField(const double x, const double y, const double z, double &ex, double &ey, double &ez, Medium *&m, int &status) override
Medium * GetMedium(const double x, const double y, const double z) override
Get the medium at a given location (x, y, z).
Base class for components based on finite-element field maps.
Abstract base class for media.
Definition: Medium.hh:13