87 void read(std::istream& is)
override;
100 void write(std::ostream& os)
const override;
105 std::string
getName()
const override;
#define MERCURYDPM_DEPRECATED
Definition: GeneralDefine.h:37
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
This class defines a coil in the z-direction from a (constant) starting point, a (constant) length L,...
Definition: Coil.h:41
bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const override
Compute the distance from the Coil for a given BaseParticle and return if there is a collision....
Definition: Coil.cc:132
Coil()
Default constructor, sets a coil with default parameters.
Definition: Coil.cc:35
void write(std::ostream &os) const override
Writes a Coil to an output stream, for example a restart file.
Definition: Coil.cc:251
Coil * copy() const override
Copy this Coil and return a pointer to the copy, useful for polymorphism.
Definition: Coil.cc:116
MERCURYDPM_DEPRECATED void oldRead(std::istream &is)
Reads an old-style Coil from an input stream, for example an old restart file.
Definition: Coil.cc:238
Mdouble n_
Definition: Coil.h:126
Mdouble thickness_
Definition: Coil.h:141
void set(Vec3D Start, Mdouble length, Mdouble radius, Mdouble numberOfRevelations, Mdouble omega, Mdouble thickness)
Set all parameters of this Coil.
Definition: Coil.cc:102
Mdouble omega_
Definition: Coil.h:131
~Coil() override
Default destructor.
Definition: Coil.cc:84
Mdouble l_
The length of the Coil.
Definition: Coil.h:116
std::string getName() const override
Returns the name of the object, in this case the string "Coil".
Definition: Coil.cc:266
void read(std::istream &is) override
Reads a Coil from an input stream, for example a restart file.
Definition: Coil.cc:222
Mdouble r_
Definition: Coil.h:121
Vec3D start_
The centre of the lower end of the Coil.
Definition: Coil.h:111
void move_time(Mdouble dt)
Rotate the Coil for a period dt, so that the offset_ changes with omega_*dt.
Definition: Coil.cc:214
Mdouble offset_
Definition: Coil.h:136
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73