Garfield 0.3
Toolkit for the detailed simulation of particle detectors based on ionization measurement in gases and semiconductors
Loading...
Searching...
No Matches
ComponentAnsys123.hh
Go to the documentation of this file.
1#if defined(__GPUCOMPILE__) || !defined(G_COMPONENT_ANSYS123_H)
2
3#if !defined(__GPUCOMPILE__) && !defined(G_COMPONENT_ANSYS123_H)
4#define G_COMPONENT_ANSYS123_H
5#endif
6
7#ifndef __GPUCOMPILE__
8
10
11namespace Garfield {
12
15
17 public:
22
30 bool Initialise(const std::string& elist = "ELIST.lis",
31 const std::string& nlist = "NLIST.lis",
32 const std::string& mplist = "MPLIST.lis",
33 const std::string& prnsol = "PRNSOL.lis",
34 const std::string& unit = "cm");
35
37 bool SetWeightingPotential(const std::string& prnsol,
38 const std::string& label) {
39 return SetWeightingField(prnsol, label);
40 }
41 bool SetWeightingField(const std::string& prnsol, const std::string& label);
42
44 double CreateGPUTransferObject(ComponentGPU*& comp_gpu) override;
45
46 private:
47 bool LoadPotentials(const std::string prnsol, std::vector<double>& pot);
48};
49} // namespace Garfield
50#endif
51#endif
ComponentAnsys123()
Constructor.
bool SetWeightingPotential(const std::string &prnsol, const std::string &label)
Import weighting potentials.
double CreateGPUTransferObject(ComponentGPU *&comp_gpu) override
Create and initialise GPU Transfer class.
bool Initialise(const std::string &elist="ELIST.lis", const std::string &nlist="NLIST.lis", const std::string &mplist="MPLIST.lis", const std::string &prnsol="PRNSOL.lis", const std::string &unit="cm")
Import a field map.
bool SetWeightingField(const std::string &prnsol, const std::string &label)
bool LoadPotentials(const std::string prnsol, std::vector< double > &pot)
ComponentFieldMap()=delete
Default constructor.