29 #include "../BaseWall.h"
53 #ifdef CONSTUCTOR_OUTPUT
54 std::cerr <<
"Coil() finished" << std::endl;
67 #ifdef CONSTUCTOR_OUTPUT
68 std::cerr <<
"Coil() finished" << std::endl;
74 return new Coil(*
this);
119 }
while(fabs(dd/ddd)>1e-14);
146 normal_return/=normal_return.
GetLength();
160 is >> dummy >>
Start >> dummy >>
L >> dummy >>
r >> dummy >>
N >> dummy >>
omega >> dummy >>
offset;
166 os <<
"Coil Start " <<
Start <<
" Length "<<
L<<
" Radius "<<
r<<
" Revolutions "<<
N<<
" Omega "<<
omega<<
" Thickness "<<
thickness<<
" Offset "<<
offset;
void print(std::ostream &os) const
outputs wall
void read(std::istream &is)
reads wall
Mdouble get_WallInteractionRadius() const
bool get_distance_and_normal(BaseParticle &P, Mdouble &distance, Vec3D &normal_return)
const Vec3D & get_Position() const
void move_time(Mdouble dt)
Allows the wall to be moved to a new position (also orthogonal to the normal), and setting the veloci...
Mdouble GetLength() const
Implementation of a 3D vector (by Vitaliy).
Coil(Vec3D Start, double L, double r, double N, double omega, double thickness)
virtual Coil * copy() const
This function defines a coil in the z-direction from a (constant) starting point, a (constant) length...
Vec3D get_Velocity() const
Todo{Implement this function correctly}.