1#ifndef G_COMPONENT_ANSYS121_H
2#define G_COMPONENT_ANSYS121_H
17 Medium*
GetMedium(
const double x,
const double y,
const double z)
override;
18 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
19 double& ey,
double& ez,
Medium*& m,
int& status)
override;
20 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
21 double& ey,
double& ez,
double& v,
Medium*& m,
22 int& status)
override;
24 void WeightingField(
const double x,
const double y,
const double z,
25 double& wx,
double& wy,
double& wz,
26 const std::string& label)
override;
29 const std::string& label)
override;
38 bool Initialise(std::string elist =
"ELIST.lis",
39 std::string nlist =
"NLIST.lis",
40 std::string mplist =
"MPLIST.lis",
41 std::string prnsol =
"PRNSOL.lis", std::string unit =
"cm");
45 void SetRangeZ(
const double zmin,
const double zmax);
52 double& dmax)
override;
Component for importing and interpolating two-dimensional ANSYS field maps.
bool SetWeightingField(std::string prnsol, std::string label)
Import a weighting field map.
~ComponentAnsys121()
Destructor.
void GetAspectRatio(const unsigned int i, double &dmin, double &dmax) override
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")
ComponentAnsys121()
Constructor.
void ElectricField(const double x, const double y, const double z, double &ex, double &ey, double &ez, Medium *&m, int &status) override
double GetElementVolume(const unsigned int i) override
void UpdatePeriodicity() override
Verify periodicities.
void SetRangeZ(const double zmin, const double zmax)
Set the limits of the active region along z.
double WeightingPotential(const double x, const double y, const double z, const std::string &label) override
void WeightingField(const double x, const double y, const double z, double &wx, double &wy, double &wz, const std::string &label) 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.