1#ifndef G_COMPONENT_CONSTANT_H
2#define G_COMPONENT_CONSTANT_H
18 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
19 double& ey,
double& ez,
Medium*& m,
int& status);
20 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
21 double& ey,
double& ez,
double& v,
Medium*& m,
24 void WeightingField(
const double x,
const double y,
const double z,
25 double& wx,
double& wy,
double& wz,
26 const std::string& label);
28 const std::string& label);
31 void SetPotential(
const double x,
const double y,
const double z,
35 const std::string label);
41 double m_fx, m_fy, m_fz;
46 double m_x0, m_y0, m_z0;
51 bool m_hasWeightingField;
53 double m_fwx, m_fwy, m_fwz;
54 bool m_hasWeightingPotential;
56 double m_wx0, m_wy0, m_wz0;
63 void UpdatePeriodicity();
Abstract base class for components.
Component with constant electric field.
void ElectricField(const double x, const double y, const double z, double &ex, double &ey, double &ez, Medium *&m, int &status)
void SetElectricField(const double ex, const double ey, const double ez)
double WeightingPotential(const double x, const double y, const double z, const std::string &label)
bool GetVoltageRange(double &vmin, double &vmax)
Calculate the voltage range [V].
void WeightingField(const double x, const double y, const double z, double &wx, double &wy, double &wz, const std::string &label)
void SetPotential(const double x, const double y, const double z, const double v=0.)
void SetWeightingPotential(const double x, const double y, const double z, const double v=0.)
void SetWeightingField(const double wx, const double wy, const double wz, const std::string label)
Abstract base class for media.