44 #ifdef DEBUG_CONSTRUCTOR
45 std::cout<<
"FrictionSpecies::FrictionSpecies() finished"<<std::endl;
63 #ifdef DEBUG_CONSTRUCTOR
64 std::cout<<
"FrictionSpecies::FrictionSpecies(const FrictionSpecies &p) finished"<<std::endl;
70 #ifdef DEBUG_DESTRUCTOR
71 std::cout<<
"FrictionSpecies::~FrictionSpecies() finished"<<std::endl;
153 std::cerr <<
"Error in setRollingStiffness" << std::endl;
171 std::cerr <<
"Error in setRollingDissipation" << std::endl;
192 std::cerr <<
"Error in setSlidingFrictionCoefficient" << std::endl;
212 std::cerr <<
"Error in setSlidingFrictionCoefficientStatic" << std::endl;
233 std::cerr <<
"Error in setTorsionStiffness" << std::endl;
251 std::cerr <<
"Error in setTorsionDissipation" << std::endl;
272 std::cerr <<
"Error in setSlidingFrictionCoefficient" << std::endl;
292 std::cerr <<
"Error in setSlidingFrictionCoefficientStatic" << std::endl;
void read(std::istream &is)
Reads the species properties from an input stream.
Mdouble getRollingFrictionCoefficient() const
Allows the (dynamic) Coulomb friction coefficient to be accessed.
void setRollingFrictionCoefficientStatic(Mdouble new_mu)
Allows the static Coulomb rolling friction coefficient to be changed.
void setTorsionFrictionCoefficient(Mdouble new_mu)
Allows the (dynamic) Coulomb torsion friction coefficient to be changed; also sets mu_s by default...
Mdouble getTorsionFrictionCoefficient() const
Allows the (dynamic) Coulomb torsion friction coefficient to be accessed.
void setTorsionStiffness(Mdouble new_kt)
Allows the torsion stiffness to be changed.
FrictionSpecies contains the parameters used to describe sliding, rolling and torsional friction...
Mdouble rollingStiffness_
rolling stiffness.
Mdouble rollingDissipation_
rolling dissipation coefficient.
void setRollingStiffness(Mdouble new_kt)
Allows the spring constant to be changed.
Mdouble rollingFrictionCoefficientStatic_
static Coulomb rolling friction coefficient (by default set equal to the dynamic one).
void write(std::ostream &os) const
Writes the species properties to an output stream.
FrictionSpecies()
The default constructor.
Mdouble getTorsionStiffness() const
Allows the torsion stiffness to be accessed.
Mdouble getRollingDissipation() const
Allows the tangential viscosity to be accessed.
Mdouble getRollingFrictionCoefficientStatic() const
Allows the static Coulomb rolling friction coefficient to be accessed.
Mdouble getRollingStiffness() const
Allows the spring constant to be accessed.
void setTorsionFrictionCoefficientStatic(Mdouble new_mu)
Allows the static Coulomb torsion friction coefficient to be accessed.
Mdouble torsionDissipation_
rolling dissipation coefficient.
void setTorsionDissipation(Mdouble new_dispt)
Allows the torsion viscosity to be changed.
void read(std::istream &is)
Reads the species properties from an input stream.
void setRollingFrictionCoefficient(Mdouble new_mu)
Allows the (dynamic) Coulomb friction coefficient to be changed; also sets mu_s by default...
std::string getBaseName() const
Used in Species::getName to obtain a unique name for each Species.
Mdouble torsionFrictionCoefficient_
(dynamic) Coulomb torsion friction coefficient.
void mix(FrictionSpecies *const S, FrictionSpecies *const T)
creates default values for mixed species
Mdouble average(Mdouble a, Mdouble b)
defines the average of two variables by the harmonic mean.
Mdouble rollingFrictionCoefficient_
(dynamic) Coulomb rolling friction coefficient.
SlidingFrictionSpecies contains the parameters used to describe sliding friction. ...
void write(std::ostream &os) const
Writes the species properties to an output stream.
virtual ~FrictionSpecies()
The default destructor.
void setRollingDissipation(Mdouble new_dispt)
Allows the tangential viscosity to be changed.
Defines the basic properties that a interactable object can have.
Mdouble torsionFrictionCoefficientStatic_
static Coulomb torsion friction coefficient (by default set equal to the dynamic one).
Mdouble torsionStiffness_
rolling stiffness.
bool getUseAngularDOFs() const
Returns true if torques have to be calculated.
Mdouble getTorsionDissipation() const
Allows the torsion viscosity to be accessed.
Mdouble getTorsionFrictionCoefficientStatic() const
Allows the static Coulomb torsion friction coefficient to be accessed.