Statics Class Reference

Static elements. More...

#include <statics.hpp>

Collaboration diagram for Statics:

Collaboration graph
[legend]
List of all members.

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).

Detailed Description

Static elements.

Definition at line 383 of file statics.hpp.


Constructor & Destructor Documentation

Statics::Statics (  ) 

Statics::~Statics (  ) 


Member Function Documentation

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().

void Statics::getFields ( const vect3d pos,
vect3d bfield,
vect3d efield 
)

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]

Set default ambiend bfield.

Definition at line 400 of file statics.hpp.

void Statics::setAmbientEField ( const vect3d aefield  )  [inline]

Set default ambiend efield.

Definition at line 402 of file statics.hpp.

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).

prec_t Statics::getPotential ( const vect3d pos  ) 

Get the electrostatic potential.


The documentation for this class was generated from the following file:
Generated on Thu Dec 6 20:31:17 2007 for Ephi by  doxygen 1.5.0