1#ifndef G_COMPONENT_ANSYS121_H
2#define G_COMPONENT_ANSYS121_H
19 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
20 double& ey,
double& ez,
Medium*& m,
int& status);
21 void ElectricField(
const double x,
const double y,
const double z,
double& ex,
22 double& ey,
double& ez,
double& v,
Medium*& m,
25 void WeightingField(
const double x,
const double y,
const double z,
26 double& wx,
double& wy,
double& wz,
27 const std::string& label);
30 const std::string& label);
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");
40 const double z)
const {
46 void SetRangeZ(
const double zmin,
const double zmax);
53 void GetAspectRatio(
const unsigned int i,
double& dmin,
double& dmax);
Component for importing and interpolating two-dimensional ANSYS field maps.
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)
~ComponentAnsys121()
Destructor.
virtual bool IsInBoundingBox(const double x, const double y, const double z) const
void UpdatePeriodicity()
Verify periodicities.
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 GetAspectRatio(const unsigned int i, double &dmin, double &dmax)
double WeightingPotential(const double x, const double y, const double z, const std::string &label)
void SetRangeZ(const double zmin, const double zmax)
void WeightingField(const double x, const double y, const double z, double &wx, double &wy, double &wz, const std::string &label)
Medium * GetMedium(const double x, const double y, const double z)
Get the medium at a given location (x, y, z).
double GetElementVolume(const unsigned int i)
Base class for components based on finite-element field maps.
Abstract base class for media.