3#ifndef G_COMPONENT_TCAD_3D_H
4#define G_COMPONENT_TCAD_3D_H
18 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
19 double& ey,
double& ez,
double& v,
Medium*& m,
21 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
22 double& ey,
double& ez,
Medium*& m,
int& status);
27 bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
double& xmax,
28 double& ymax,
double& zmax);
31 bool Initialise(
const std::string gridfilename,
32 const std::string datafilename);
38 void GetRegion(
const int ireg, std::string& name,
bool& active);
46 bool GetElement(
const int i,
double& vol,
double& dmin,
double& dmax,
48 bool GetElement(
const int i,
double& vol,
double& dmin,
double& dmax,
49 int& type,
int& node1,
int& node2,
int& node3,
int& node4,
50 int& node5,
int& node6,
int& node7,
int& reg);
52 bool GetNode(
const int i,
double& x,
double& y,
double& z,
double& v,
53 double& ex,
double& ey,
double& ez);
57 static const int nMaxVertices = 7;
68 std::vector<region> m_regions;
80 std::vector<vertex> m_vertices;
86 int vertex[nMaxVertices];
103 std::vector<element> m_elements;
113 double m_pMin, m_pMax;
116 double m_xMinBoundingBox, m_yMinBoundingBox, m_zMinBoundingBox;
117 double m_xMaxBoundingBox, m_yMaxBoundingBox, m_zMaxBoundingBox;
123 double m_w[nMaxVertices];
128 void UpdatePeriodicity();
130 bool CheckTetrahedron(
const double x,
const double y,
const double z,
132 bool CheckTriangle(
const double x,
const double y,
const double z,
135 bool LoadGrid(
const std::string gridfilename);
136 bool LoadData(
const std::string datafilename);
bool GetBoundingBox(double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax)
int GetNumberOfRegions() const
bool Initialise(const std::string gridfilename, const std::string datafilename)
int GetNumberOfElements() const
int GetNumberOfNodes() const
void UnsetDriftRegion(const int ireg)
void SetMedium(const int ireg, Medium *m)
void GetRegion(const int ireg, std::string &name, bool &active)
Medium * GetMedium(const double &x, const double &y, const double &z)
bool GetElement(const int i, double &vol, double &dmin, double &dmax, int &type)
bool GetVoltageRange(double &vmin, double &vmax)
bool GetNode(const int i, double &x, double &y, double &z, double &v, double &ex, double &ey, double &ez)
void ElectricField(const double x, const double y, const double z, double &ex, double &ey, double &ez, double &v, Medium *&m, int &status)
void SetDriftRegion(const int ireg)