1#ifndef G_COMPONENT_ANSYS123_H
2#define G_COMPONENT_ANSYS123_H
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;
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;
28 const std::string& label)
override;
30 Medium*
GetMedium(
const double x,
const double y,
const double z)
override;
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");
45 double& dmax)
override;
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")
~ComponentAnsys123()
Destructor.
ComponentAnsys123()
Constructor.
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.
void UpdatePeriodicityCommon()
Abstract base class for media.