#include <statics.hpp>
Inheritance diagram for StaticRing:
Public Member Functions | |
StaticRing (prec_t currentAMPS, const vect3d &pos, prec_t radius, prec_t wire_radius, const vect3d &normal) | |
virtual | ~StaticRing () |
void | addFields (const vect3d &pos, vect3d &bfield, vect3d &efield) |
Add fiel values at given position. | |
void | draw (Screen &screen, const Screen::color &c=Screen::BLACK) |
Draw the elemnt onto a screen. | |
std::string | get_povray_script () |
Get povray script of the given element. | |
bool | inContact (const vect3d &pos) |
Test whether given position is in contact with the given current element. | |
void | setCharge (prec_t qpm) |
void | addPotential (const vect3d &pos, prec_t &potential) |
Add the electrostatic potential from the given element. |
Definition at line 177 of file statics.hpp.
StaticRing::StaticRing | ( | prec_t | currentAMPS, | |
const vect3d & | pos, | |||
prec_t | radius, | |||
prec_t | wire_radius, | |||
const vect3d & | normal | |||
) |
virtual StaticRing::~StaticRing | ( | ) | [virtual] |
void StaticRing::draw | ( | Screen & | screen, | |
const Screen::color & | c = Screen::BLACK | |||
) | [virtual] |
std::string StaticRing::get_povray_script | ( | ) | [virtual] |
bool StaticRing::inContact | ( | const vect3d & | pos | ) | [virtual] |
void StaticRing::setCharge | ( | prec_t | qpm | ) |
Add the electrostatic potential from the given element.
Implements StaticElement.
Definition at line 189 of file statics.hpp.