#include <statics.hpp>
Collaboration diagram for Statics:
Public Member Functions | |
Statics () | |
~Statics () | |
void | addStaticElement (StaticElement *addElement) |
Add a new static element into the system. | |
void | getFields (const vect3d &pos, vect3d &bfield, vect3d &efield) |
Get fields from given position. | |
bool | inContact (const vect3d &pos) |
Test whether given position is in contact with any static elements. | |
void | setAmbientBField (const vect3d &abfield) |
Set default ambiend bfield. | |
void | setAmbientEField (const vect3d &aefield) |
Set default ambiend efield. | |
void | draw (Screen &screen, const Screen::color &c=Screen::BLACK) |
Draw all static elements onto given screen. | |
std::string | get_povray_script () |
Get povray script for all the static elements. | |
prec_t | getPotential (const vect3d &pos) |
Get the electrostatic potential. | |
Static Public Member Functions | |
static prec_t | get_ddsq () |
Get integration step (meters). | |
static void | set_ddsq (prec_t ddsq) |
Set numerically calculate static elements integration step (meters). |
Definition at line 383 of file statics.hpp.
Statics::Statics | ( | ) |
Statics::~Statics | ( | ) |
void Statics::addStaticElement | ( | StaticElement * | addElement | ) |
Add a new static element into the system.
Statics gets ownership of the given element object.
Referenced by CoilDataFactory< IC >::make(), and CoilDataFactory< IC >::make_coilpair().
Get fields from given position.
bool Statics::inContact | ( | const vect3d & | pos | ) |
Test whether given position is in contact with any static elements.
void Statics::setAmbientBField | ( | const vect3d & | abfield | ) | [inline] |
void Statics::setAmbientEField | ( | const vect3d & | aefield | ) | [inline] |
void Statics::draw | ( | Screen & | screen, | |
const Screen::color & | c = Screen::BLACK | |||
) |
Draw all static elements onto given screen.
std::string Statics::get_povray_script | ( | ) |
Get povray script for all the static elements.
static prec_t Statics::get_ddsq | ( | ) | [static] |
Get integration step (meters).
static void Statics::set_ddsq | ( | prec_t | ddsq | ) | [static] |
Set numerically calculate static elements integration step (meters).