15 const std::string &field,
const std::string &unit =
"m");
20 const double ymax,
const double zmin,
const double zmax) {
38 bool Initialise(
const std::string &header =
"mesh.mphtxt",
39 const std::string &mplist =
"dielectrics.dat",
40 const std::string &field =
"field.txt",
41 const std::string &unit =
"m");
50 const std::string &label);
56 delayedTimes = m_wdtimes;
96 bool CheckInRange(
const double x,
const double y,
const double z)
const {
107 const std::vector<Node> &nodes)
const {
109 for (
size_t i = 0; i < 10; i++) {
110 const Node &node = nodes[element.
emap[i]];
bool SetWeightingPotential(const std::string &file, const std::string &label)
Import the weighting potential maps.
bool LoadPotentials(const std::string &field, std::vector< double > &pot)
void SetTimeInterval(const double mint, const double maxt, const double stept)
Set the time interval of the time-dependent weighting field.
bool Initialise(const std::string &header="mesh.mphtxt", const std::string &mplist="dielectrics.dat", const std::string &field="field.txt", const std::string &unit="m")
Import a field map.
bool SetDynamicWeightingPotential(const std::string &file, const std::string &label)
Import the time-dependent weighting field maps.
bool CheckInRange(const double x, const double y, const double z) const
bool SetWeightingField(const std::string &file, const std::string &label)
ComponentComsol()
Default constructor.
void GetTimeInterval(std::vector< double > &delayedTimes)
Get times of time-sliced dynamic weighting field.
void SetImportMaterial(const double epsr=1.)
Select material that will exclusivaly be imported based on its relative permitivity.
ComponentComsol(const std::string &mesh, const std::string &mplist, const std::string &field, const std::string &unit="m")
Constructor from file names.
~ComponentComsol()
Destructor.
bool ElementInRange(const Element &element, const std::vector< Node > &nodes) const
bool GetTimeInterval(const std::string &file)
static constexpr double MaxNodeDistance
void SetImportRange(const double xmin, const double xmax, const double ymin, const double ymax, const double zmin, const double zmax)
std::vector< Material > m_materials
ComponentFieldMap()=delete
Default constructor.
double CreateGPUTransferObject(ComponentGPU *&comp_gpu) override
Create and initialise GPU Transfer class.