MercuryDPM
Alpha
|
LinearPlasticViscoelasticNormalSpecies contains the parameters used to describe a plastic-cohesive normal force (Stefan Ludings plastic-cohesive force model). More...
#include <LinearPlasticViscoelasticNormalSpecies.h>
Public Types | |
typedef LinearPlasticViscoelasticInteraction | InteractionType |
The correct Interaction type for this FrictionForceSpecies. More... | |
Public Member Functions | |
LinearPlasticViscoelasticNormalSpecies () | |
The default constructor. More... | |
LinearPlasticViscoelasticNormalSpecies (const LinearPlasticViscoelasticNormalSpecies &p) | |
The default copy constructor. More... | |
virtual | ~LinearPlasticViscoelasticNormalSpecies () |
The default destructor. More... | |
void | read (std::istream &is) |
Reads the species properties from an input stream. More... | |
void | write (std::ostream &os) const |
Writes the species properties to an output stream. More... | |
std::string | getBaseName () const |
Used in Species::getName to obtain a unique name for each Species. More... | |
void | mix (LinearPlasticViscoelasticNormalSpecies *const S, LinearPlasticViscoelasticNormalSpecies *const T) |
creates default values for mixed species More... | |
void | setCollisionTimeAndRestitutionCoefficient (Mdouble tc, Mdouble eps, Mdouble mass) |
Set k, disp such that is matches a given tc and eps for a collision of two different masses. More... | |
void | setStiffnessAndRestitutionCoefficient (Mdouble k_, Mdouble eps, Mdouble mass) |
Sets k, disp such that it matches a given tc and eps for a collision of two copies of P. More... | |
Mdouble | getCollisionTime (Mdouble mass) |
Calculates collision time for two copies of a particle of given disp, k, mass. More... | |
void | setPlasticParameters (Mdouble loadingStiffness, Mdouble unloadingStiffnessMax, Mdouble cohesionStiffness, Mdouble penetrationDepthMax) |
Sets all parameters of the linear plastic-viscoelastic normal force at once. More... | |
Mdouble | getLoadingStiffness () const |
Returns the loading stiffness of the linear plastic-viscoelastic normal force. More... | |
Mdouble | getUnloadingStiffnessMax () const |
Returns the maximum unloading stiffness of the linear plastic-viscoelastic normal force. More... | |
Mdouble | getCohesionStiffness () const |
Returns the cohesive stiffness of the linear plastic-viscoelastic normal force. More... | |
Mdouble | getPenetrationDepthMax () const |
Returns the maximum penetration depth of the linear plastic-viscoelastic normal force. More... | |
void | setLoadingStiffness (Mdouble loadingStiffness) |
Sets the loading stiffness of the linear plastic-viscoelastic normal force. More... | |
void | setUnloadingStiffnessMax (Mdouble unloadingStiffnessMax) |
Sets the maximum unloading stiffness of the linear plastic-viscoelastic normal force. More... | |
void | setCohesionStiffness (Mdouble cohesionStiffness) |
Sets the cohesive stiffness of the linear plastic-viscoelastic normal force. More... | |
void | setPenetrationDepthMax (Mdouble penetrationDepthMax) |
Sets the maximum penetration depth of the linear plastic-viscoelastic normal force. More... | |
void | setDissipation (Mdouble dissipation) |
Sets the linear dissipation coefficient of the linear plastic-viscoelastic normal force. More... | |
MERCURY_DEPRECATED void | setLoadingStiffnessAndDissipation (helpers::KAndDisp new_) |
Allows the spring and dissipation constants to be changed simultaneously. More... | |
Mdouble | computeTimeStep (Mdouble mass) |
Returns the optimal time step to resolve a collision of two particles of a given mass. More... | |
Mdouble | getDissipation () const |
Allows the normal dissipation to be accessed. More... | |
Public Member Functions inherited from BaseSpecies | |
BaseSpecies () | |
The default constructor. More... | |
BaseSpecies (const BaseSpecies &p) | |
The copy constructor. More... | |
virtual | ~BaseSpecies () |
The default destructor. More... | |
virtual BaseSpecies * | copy () const =0 |
Creates a deep copy of the object from which it is called. More... | |
void | setHandler (SpeciesHandler *handler) |
Sets the pointer to the handler to which this species belongs. More... | |
SpeciesHandler * | getHandler () const |
Returns the pointer to the handler to which this species belongs. More... | |
Mdouble | average (Mdouble a, Mdouble b) |
defines the average of two variables by the harmonic mean. More... | |
virtual void | mixAll (BaseSpecies *const S, BaseSpecies *const T)=0 |
creates default values for mixed species More... | |
virtual Mdouble | getInteractionDistance () const =0 |
returns the largest separation distance at which adhesive short-range forces can occur. More... | |
virtual bool | getUseAngularDOFs () const =0 |
Returns true if torques (i.e. angular degrees of freedom) have to be calculated. More... | |
virtual BaseInteraction * | getNewInteraction (BaseInteractable *P, BaseInteractable *I, Mdouble timeStamp) const =0 |
returns new Interaction object. More... | |
Public Member Functions inherited from BaseObject | |
BaseObject () | |
Default constructor. More... | |
BaseObject (const BaseObject &p) | |
Copy constructor, copies all the objects BaseObject contains. More... | |
virtual | ~BaseObject () |
virtual destructor More... | |
virtual std::string | getName () const =0 |
A purely virtual function. More... | |
virtual void | moveInHandler (const unsigned int index) |
Except that it is virtual, it does the same thing as setIndex() does. More... | |
void | setIndex (const unsigned int index) |
Allows one to assign an index to an object in the handler/container. More... | |
void | setId (const unsigned int id) |
Assigns a unique identifier to each object in the handler (container) which remains constant even after the object is deleted from the container/handler. More... | |
unsigned int | getIndex () const |
Returns the index of the object in the handler. More... | |
unsigned int | getId () const |
Returns the unique identifier of any particular object. More... | |
Private Attributes | |
Mdouble | loadingStiffness_ |
(normal) spring constant (k_1) More... | |
Mdouble | unloadingStiffnessMax_ |
the maximum elastic constant (k_2^max) for plastic deformations More... | |
Mdouble | cohesionStiffness_ |
the adhesive spring constant (k^c) for plastic deformations More... | |
Mdouble | penetrationDepthMax_ |
the depth (relative to the normalized radius) at which k_2^max is used (phi_f) More... | |
Mdouble | dissipation_ |
linear dissipation coefficient More... | |
LinearPlasticViscoelasticNormalSpecies contains the parameters used to describe a plastic-cohesive normal force (Stefan Ludings plastic-cohesive force model).
See LinearPlasticViscoelasticNormalInteraction::computeForce for a description of the force law.
Definition at line 36 of file LinearPlasticViscoelasticNormalSpecies.h.
typedef LinearPlasticViscoelasticInteraction LinearPlasticViscoelasticNormalSpecies::InteractionType |
The correct Interaction type for this FrictionForceSpecies.
Definition at line 40 of file LinearPlasticViscoelasticNormalSpecies.h.
LinearPlasticViscoelasticNormalSpecies::LinearPlasticViscoelasticNormalSpecies | ( | ) |
The default constructor.
Definition at line 33 of file LinearPlasticViscoelasticNormalSpecies.cc.
References cohesionStiffness_, dissipation_, loadingStiffness_, penetrationDepthMax_, and unloadingStiffnessMax_.
LinearPlasticViscoelasticNormalSpecies::LinearPlasticViscoelasticNormalSpecies | ( | const LinearPlasticViscoelasticNormalSpecies & | p | ) |
The default copy constructor.
[in] | the | species that is copied |
Definition at line 48 of file LinearPlasticViscoelasticNormalSpecies.cc.
References cohesionStiffness_, dissipation_, loadingStiffness_, penetrationDepthMax_, and unloadingStiffnessMax_.
|
virtual |
The default destructor.
Definition at line 60 of file LinearPlasticViscoelasticNormalSpecies.cc.
Returns the optimal time step to resolve a collision of two particles of a given mass.
Calculates collision time for stiffest spring constant, divides by 50
[in] | the | optimal time step is computed to resolve a collision of two particles of this mass. |
Definition at line 201 of file LinearPlasticViscoelasticNormalSpecies.cc.
References dissipation_, constants::pi, mathsFunc::square(), and unloadingStiffnessMax_.
std::string LinearPlasticViscoelasticNormalSpecies::getBaseName | ( | ) | const |
Used in Species::getName to obtain a unique name for each Species.
Definition at line 95 of file LinearPlasticViscoelasticNormalSpecies.cc.
Mdouble LinearPlasticViscoelasticNormalSpecies::getCohesionStiffness | ( | ) | const |
Returns the cohesive stiffness of the linear plastic-viscoelastic normal force.
Definition at line 152 of file LinearPlasticViscoelasticNormalSpecies.cc.
References cohesionStiffness_.
Referenced by LinearPlasticViscoelasticInteraction::computeLinearPlasticViscoelasticForce(), and mix().
Calculates collision time for two copies of a particle of given disp, k, mass.
Definition at line 276 of file LinearPlasticViscoelasticNormalSpecies.cc.
References dissipation_, loadingStiffness_, constants::pi, and mathsFunc::square().
Mdouble LinearPlasticViscoelasticNormalSpecies::getDissipation | ( | ) | const |
Allows the normal dissipation to be accessed.
Definition at line 235 of file LinearPlasticViscoelasticNormalSpecies.cc.
References dissipation_.
Referenced by LinearPlasticViscoelasticInteraction::computeLinearPlasticViscoelasticForce(), mix(), and SlidingFrictionSpecies::setCollisionTimeAndNormalAndTangentialRestitutionCoefficient().
Mdouble LinearPlasticViscoelasticNormalSpecies::getLoadingStiffness | ( | ) | const |
Returns the loading stiffness of the linear plastic-viscoelastic normal force.
Definition at line 136 of file LinearPlasticViscoelasticNormalSpecies.cc.
References loadingStiffness_.
Referenced by LinearPlasticViscoelasticInteraction::computeLinearPlasticViscoelasticForce(), LinearPlasticViscoelasticInteraction::getElasticEnergy(), LinearPlasticViscoelasticInteraction::getUnloadingStiffness(), mix(), and SlidingFrictionSpecies::setCollisionTimeAndNormalAndTangentialRestitutionCoefficient().
Mdouble LinearPlasticViscoelasticNormalSpecies::getPenetrationDepthMax | ( | ) | const |
Returns the maximum penetration depth of the linear plastic-viscoelastic normal force.
Definition at line 160 of file LinearPlasticViscoelasticNormalSpecies.cc.
References penetrationDepthMax_.
Referenced by LinearPlasticViscoelasticInteraction::computeLinearPlasticViscoelasticForce(), LinearPlasticViscoelasticInteraction::getUnloadingStiffness(), and mix().
Mdouble LinearPlasticViscoelasticNormalSpecies::getUnloadingStiffnessMax | ( | ) | const |
Returns the maximum unloading stiffness of the linear plastic-viscoelastic normal force.
Definition at line 144 of file LinearPlasticViscoelasticNormalSpecies.cc.
References unloadingStiffnessMax_.
Referenced by LinearPlasticViscoelasticInteraction::computeLinearPlasticViscoelasticForce(), LinearPlasticViscoelasticInteraction::getUnloadingStiffness(), and mix().
void LinearPlasticViscoelasticNormalSpecies::mix | ( | LinearPlasticViscoelasticNormalSpecies *const | S, |
LinearPlasticViscoelasticNormalSpecies *const | T | ||
) |
creates default values for mixed species
For all parameters we assume that the harmonic mean of the parameters of the original two species is a sensible default.
[in] | S,T | the two species whose properties are mixed to create the new species |
Definition at line 105 of file LinearPlasticViscoelasticNormalSpecies.cc.
References BaseSpecies::average(), cohesionStiffness_, dissipation_, getCohesionStiffness(), getDissipation(), getLoadingStiffness(), getPenetrationDepthMax(), getUnloadingStiffnessMax(), loadingStiffness_, penetrationDepthMax_, and unloadingStiffnessMax_.
|
virtual |
Reads the species properties from an input stream.
[in] | input | stream (typically the restart file) |
Implements BaseObject.
Definition at line 82 of file LinearPlasticViscoelasticNormalSpecies.cc.
References cohesionStiffness_, dissipation_, loadingStiffness_, penetrationDepthMax_, and unloadingStiffnessMax_.
void LinearPlasticViscoelasticNormalSpecies::setCohesionStiffness | ( | Mdouble | cohesionStiffness | ) |
Sets the cohesive stiffness of the linear plastic-viscoelastic normal force.
[in] | cohesionStiffness | the cohesive stiffness of the linear plastic-viscoelastic normal force. |
Definition at line 184 of file LinearPlasticViscoelasticNormalSpecies.cc.
References cohesionStiffness_.
Referenced by setPlasticParameters().
void LinearPlasticViscoelasticNormalSpecies::setCollisionTimeAndRestitutionCoefficient | ( | Mdouble | tc, |
Mdouble | eps, | ||
Mdouble | mass | ||
) |
Set k, disp such that is matches a given tc and eps for a collision of two different masses.
Recall the resitution constant is a function of k, disp and the mass of each particle in the collision See also setCollisionTimeAndRestitutionCoefficient(Mdouble tc, Mdouble eps, Mdouble mass)
Sets k, disp such that it matches a given tc and eps for a collision of two copies of equal mass m
[in] | tc | collision time |
[in] | eps | restitution coefficient |
[in] | mass | effective particle mass, |
Definition at line 247 of file LinearPlasticViscoelasticNormalSpecies.cc.
void LinearPlasticViscoelasticNormalSpecies::setDissipation | ( | Mdouble | dissipation | ) |
Sets the linear dissipation coefficient of the linear plastic-viscoelastic normal force.
should be non-negative
[in] | the | linear dissipation coefficient of the linear plastic-viscoelastic normal force. |
Definition at line 210 of file LinearPlasticViscoelasticNormalSpecies.cc.
References dissipation_.
Referenced by SlidingFrictionSpecies::setCollisionTimeAndNormalAndTangentialRestitutionCoefficient(), and setLoadingStiffnessAndDissipation().
void LinearPlasticViscoelasticNormalSpecies::setLoadingStiffness | ( | Mdouble | loadingStiffness | ) |
Sets the loading stiffness of the linear plastic-viscoelastic normal force.
[in] | loadingStiffness | the loading stiffness of the linear plastic-viscoelastic normal force. |
Definition at line 168 of file LinearPlasticViscoelasticNormalSpecies.cc.
References loadingStiffness_.
Referenced by SlidingFrictionSpecies::setCollisionTimeAndNormalAndTangentialRestitutionCoefficient(), setLoadingStiffnessAndDissipation(), and setPlasticParameters().
void LinearPlasticViscoelasticNormalSpecies::setLoadingStiffnessAndDissipation | ( | helpers::KAndDisp | new_ | ) |
Allows the spring and dissipation constants to be changed simultaneously.
[in] | a | helper struct containing both the loading stiffness and the disssipation coefficient. |
Definition at line 226 of file LinearPlasticViscoelasticNormalSpecies.cc.
References helpers::KAndDisp::disp, helpers::KAndDisp::k, setDissipation(), and setLoadingStiffness().
void LinearPlasticViscoelasticNormalSpecies::setPenetrationDepthMax | ( | Mdouble | penetrationDepthMax | ) |
Sets the maximum penetration depth of the linear plastic-viscoelastic normal force.
[in] | penetrationDepthMax | the maximum penetration depth of the linear plastic-viscoelastic normal force. |
Definition at line 192 of file LinearPlasticViscoelasticNormalSpecies.cc.
References penetrationDepthMax_.
Referenced by setPlasticParameters().
void LinearPlasticViscoelasticNormalSpecies::setPlasticParameters | ( | Mdouble | loadingStiffness, |
Mdouble | unloadingStiffnessMax, | ||
Mdouble | cohesionStiffness, | ||
Mdouble | penetrationDepthMax | ||
) |
Sets all parameters of the linear plastic-viscoelastic normal force at once.
[in] | loadingStiffness | the loading stiffness of the linear plastic-viscoelastic normal force. |
[in] | unloadingStiffnessMax | the maximum unloading stiffness of the linear plastic-viscoelastic normal force. |
[in] | cohesionStiffness | the cohesive stiffness of the linear plastic-viscoelastic normal force. |
[in] | penetrationDepthMax | the maximum penetration depth of the linear plastic-viscoelastic normal force. |
Definition at line 120 of file LinearPlasticViscoelasticNormalSpecies.cc.
References setCohesionStiffness(), setLoadingStiffness(), setPenetrationDepthMax(), and setUnloadingStiffnessMax().
void LinearPlasticViscoelasticNormalSpecies::setStiffnessAndRestitutionCoefficient | ( | Mdouble | stiffness, |
Mdouble | eps, | ||
Mdouble | mass | ||
) |
Sets k, disp such that it matches a given tc and eps for a collision of two copies of P.
Sets k, disp such that it matches a given tc and eps for a collision of two copies of P
[in] | stiffness | stiffness |
[in] | eps | restitution coefficient |
[in] | mass | effective particle mass, |
Definition at line 265 of file LinearPlasticViscoelasticNormalSpecies.cc.
References dissipation_, loadingStiffness_, mathsFunc::log(), constants::sqr_pi, and mathsFunc::square().
void LinearPlasticViscoelasticNormalSpecies::setUnloadingStiffnessMax | ( | Mdouble | unloadingStiffnessMax | ) |
Sets the maximum unloading stiffness of the linear plastic-viscoelastic normal force.
[in] | unloadingStiffnessMax | the maximum unloading stiffness of the linear plastic-viscoelastic normal force. |
Definition at line 176 of file LinearPlasticViscoelasticNormalSpecies.cc.
References unloadingStiffnessMax_.
Referenced by setPlasticParameters().
|
virtual |
Writes the species properties to an output stream.
[out] | output | stream (typically the restart file) |
Implements BaseObject.
Definition at line 70 of file LinearPlasticViscoelasticNormalSpecies.cc.
References cohesionStiffness_, dissipation_, loadingStiffness_, penetrationDepthMax_, and unloadingStiffnessMax_.
|
private |
the adhesive spring constant (k^c) for plastic deformations
Definition at line 153 of file LinearPlasticViscoelasticNormalSpecies.h.
Referenced by getCohesionStiffness(), LinearPlasticViscoelasticNormalSpecies(), mix(), read(), setCohesionStiffness(), and write().
|
private |
linear dissipation coefficient
Definition at line 159 of file LinearPlasticViscoelasticNormalSpecies.h.
Referenced by computeTimeStep(), getCollisionTime(), getDissipation(), LinearPlasticViscoelasticNormalSpecies(), mix(), read(), setDissipation(), setStiffnessAndRestitutionCoefficient(), and write().
|
private |
(normal) spring constant (k_1)
Definition at line 147 of file LinearPlasticViscoelasticNormalSpecies.h.
Referenced by getCollisionTime(), getLoadingStiffness(), LinearPlasticViscoelasticNormalSpecies(), mix(), read(), setLoadingStiffness(), setStiffnessAndRestitutionCoefficient(), and write().
|
private |
the depth (relative to the normalized radius) at which k_2^max is used (phi_f)
Definition at line 156 of file LinearPlasticViscoelasticNormalSpecies.h.
Referenced by getPenetrationDepthMax(), LinearPlasticViscoelasticNormalSpecies(), mix(), read(), setPenetrationDepthMax(), and write().
|
private |
the maximum elastic constant (k_2^max) for plastic deformations
Definition at line 150 of file LinearPlasticViscoelasticNormalSpecies.h.
Referenced by computeTimeStep(), getUnloadingStiffnessMax(), LinearPlasticViscoelasticNormalSpecies(), mix(), read(), setUnloadingStiffnessMax(), and write().