#include <potential.hpp>
Collaboration diagram for PField:
Public Types | |
enum | emethod_t { POINTSYSTEM = 1, CHARGEFLOW, LINESYSTEM } |
Public Member Functions | |
PField (emethod_t method=POINTSYSTEM, prec_t resolution=0.02) | |
~PField () | |
PPoint & | addPoint (const vect3d &pos, const vect3d &ppos=vect3d(0, 0, 0), prec_t potential=0) |
void | addFeedPoint (PPoint &p, prec_t potential) |
void | addSphere (const vect3d &p, prec_t radius, prec_t potential=0, bool backawrds=false) |
void | addTorus (const vect3d &p, const vect3d &normal, prec_t radius, prec_t wr, prec_t potential=0) |
void | addStrip (const vect3d &p0, const vect3d &p1, size_t n_segments=0) |
void | addT (const vect3d &p0, const vect3d &p1, const vect3d &p2, const vect3d &p3) |
bool | equalize () |
std::string | getPovrayScript () |
std::string | getChargeConcentrationScript () |
void | getEfield (const vect3d &pos, vect3d &efield) |
prec_t | getPotential (const vect3d &pos) |
void | setPointCharge (const vect3d &pos, prec_t q) |
void | setUniformCharge (const vect3d &pos, prec_t q, prec_t radius) |
PLink & | connect (PPoint &a, PPoint &b) |
PLink * | safe_connect (PPoint &a, PPoint &b) |
PLink & | split (PLink &link, PPoint &mid) |
void | print () |
prec_t | getAddedCharge () const |
prec_t | getAveragePotential () |
void | setPotential (prec_t pot) |
void | save (const char *path) |
void | save (const std::string &path) |
bool | load (const char *path) |
bool | load (const std::string &path) |
void | set_no_cdist (bool ncd) |
void | getStatistics (size_t &pointcount, size_t &linkcount) |
prec_t | getResolution () const |
prec_t | setResolution (prec_t res) |
Friends | |
class | StaticPotentialField |
Classes | |
struct | fpoint_t |
struct | task |
Definition at line 97 of file potential.hpp.
enum PField::emethod_t |
PField::~PField | ( | ) |
PPoint& PField::addPoint | ( | const vect3d & | pos, | |
const vect3d & | ppos = vect3d(0, 0, 0) , |
|||
prec_t | potential = 0 | |||
) |
void PField::addSphere | ( | const vect3d & | p, | |
prec_t | radius, | |||
prec_t | potential = 0 , |
|||
bool | backawrds = false | |||
) |
void PField::addTorus | ( | const vect3d & | p, | |
const vect3d & | normal, | |||
prec_t | radius, | |||
prec_t | wr, | |||
prec_t | potential = 0 | |||
) |
bool PField::equalize | ( | ) |
std::string PField::getPovrayScript | ( | ) |
std::string PField::getChargeConcentrationScript | ( | ) |
void PField::print | ( | ) |
prec_t PField::getAddedCharge | ( | ) | const [inline] |
Definition at line 132 of file potential.hpp.
prec_t PField::getAveragePotential | ( | ) |
void PField::setPotential | ( | prec_t | pot | ) |
void PField::save | ( | const char * | path | ) |
Referenced by save().
void PField::save | ( | const std::string & | path | ) | [inline] |
bool PField::load | ( | const char * | path | ) |
Referenced by load().
bool PField::load | ( | const std::string & | path | ) | [inline] |
void PField::set_no_cdist | ( | bool | ncd | ) | [inline] |
Definition at line 141 of file potential.hpp.
void PField::getStatistics | ( | size_t & | pointcount, | |
size_t & | linkcount | |||
) | [inline] |
Definition at line 143 of file potential.hpp.
prec_t PField::getResolution | ( | ) | const [inline] |
Definition at line 145 of file potential.hpp.
Definition at line 146 of file potential.hpp.
friend class StaticPotentialField [friend] |
Definition at line 196 of file potential.hpp.