78 Vec3D& normal_return)
const;
86 void rotate(
const Vec3D& angularVelocityDt)
override;
91 void read(std::istream& is)
override;
101 void write(std::ostream& os)
const override;
106 std::string
getName()
const final;
110 void writeVTK(std::string filename)
const;
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
ScrewType
Definition: Screw.h:35
Definition: BaseParticle.h:54
Basic class for walls.
Definition: BaseWall.h:49
This function defines an Archimedes' screw in the z-direction from a (constant) starting point,...
Definition: Screw.h:44
Mdouble thickness_
The thickness of the Screw.
Definition: Screw.h:140
void writeVTK(VTKContainer &vtk) const override
Definition: Screw.cc:365
Vec3D start_
The centre of the lower end of the screw.
Definition: Screw.h:116
Mdouble l_
The length of the Screw.
Definition: Screw.h:120
void oldRead(std::istream &is)
Reads a Screw in the old style from an input stream, for example a restart file old style.
Definition: Screw.cc:330
bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const final
Compute the distance from the Screw for a given BaseParticle and return if there is a collision....
Definition: Screw.cc:108
void write(std::ostream &os) const override
Writes this Screw to an output stream, for example a restart file.
Definition: Screw.cc:344
Mdouble maxR_
The outer radius of the Screw.
Definition: Screw.h:124
std::string getName() const final
Returns the name of the object, here the string "Screw".
Definition: Screw.cc:360
Mdouble n_
The number of revelations.
Definition: Screw.h:128
ScrewType screwType_
Single or double helix screw.
Definition: Screw.h:144
Mdouble omega_
Rotation speed in rev/s.
Definition: Screw.h:132
Screw * copy() const final
Copy this screw and return a pointer to the copy.
Definition: Screw.cc:103
Screw()
Default constructor: make a screw with default parameters.
Definition: Screw.cc:41
void move_time(Mdouble dt)
Rotate the Screw for a period dt, so that the offset_ changes with omega_*dt.
Definition: Screw.cc:289
bool getDistanceAndNormalLabCoordinates(Vec3D position, Mdouble wallInteractionRadius, Mdouble &distance, Vec3D &normal_return) const
Definition: Screw.cc:138
Mdouble offset_
The angle that describes how much the Screw has turned, going from 0 to 1 for a rotation.
Definition: Screw.h:136
~Screw() override
Default destructor.
Definition: Screw.cc:95
void rotate(const Vec3D &angularVelocityDt) override
Definition: Screw.cc:298
void read(std::istream &is) override
Reads a Screw from an input stream, for example a restart file.
Definition: Screw.cc:308
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:73
Definition: BaseWall.h:38