MercuryDPM
0.10
|
Stores the tangential spring needed to compute a tangential elastic force between particles PI, PJ.
More...
#include <CTangentialSpring.h>
Public Member Functions | |
CTangentialSpring () | |
constructors More... | |
CTangentialSpring (int pParticle_, int pWall_, Mdouble time_) | |
CTangentialSpring (const CTangentialSpring &ts) | |
copy constructor More... | |
void | print (std::ostream &os) |
outputs tangential spring More... | |
void | reverse () |
Public Attributes | |
Vec3D | delta |
stores the spring More... | |
Vec3D | RollingSpring |
Vec3D | TorsionSpring |
Vec3D | SlidingForce |
Stores the force (for some non-linear, hysteretic spring models) More... | |
int | pParticle |
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the particle in which CDeltaMax is located) More... | |
int | pWall |
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the particle in which CDeltaMax is located) More... | |
Mdouble | time |
stores the last time the tangential spring was read (if it was not read during the last timestep, the contact is old and will be deleted) More... | |
bool | sliding |
bool | slidingRolling |
bool | slidingTorsion |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CTangentialSpring &p) |
writes spring More... | |
std::istream & | operator>> (std::istream &is, CTangentialSpring &p) |
reads spring More... | |
Stores the tangential spring needed to compute a tangential elastic force between particles PI, PJ.
Definition at line 38 of file CTangentialSpring.h.
|
inline |
constructors
Definition at line 41 of file CTangentialSpring.h.
References delta, pParticle, pWall, RollingSpring, Vec3D::set_zero(), sliding, SlidingForce, slidingRolling, slidingTorsion, time, and TorsionSpring.
Definition at line 54 of file CTangentialSpring.h.
References delta, pParticle, pWall, RollingSpring, Vec3D::set_zero(), sliding, SlidingForce, slidingRolling, slidingTorsion, time, and TorsionSpring.
|
inline |
copy constructor
Definition at line 68 of file CTangentialSpring.h.
References delta, pParticle, pWall, RollingSpring, sliding, SlidingForce, slidingRolling, slidingTorsion, time, and TorsionSpring.
|
inline |
outputs tangential spring
Definition at line 82 of file CTangentialSpring.h.
References delta, pParticle, pWall, and time.
|
inline |
Definition at line 103 of file CTangentialSpring.h.
References delta, RollingSpring, SlidingForce, and TorsionSpring.
Referenced by TangentialSpringParticle::moveInHandler().
|
friend |
writes spring
Definition at line 90 of file CTangentialSpring.h.
|
friend |
reads spring
Definition at line 97 of file CTangentialSpring.h.
Vec3D CTangentialSpring::delta |
stores the spring
Definition at line 112 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_plastic_internal_forces(), MD::compute_walls(), CTangentialSpring(), print(), and reverse().
int CTangentialSpring::pParticle |
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the particle in which CDeltaMax is located)
Definition at line 118 of file CTangentialSpring.h.
Referenced by CTangentialSpring(), TangentialSpringParticle::moveInHandler(), and print().
int CTangentialSpring::pWall |
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the particle in which CDeltaMax is located)
Definition at line 120 of file CTangentialSpring.h.
Referenced by CTangentialSpring(), and print().
Vec3D CTangentialSpring::RollingSpring |
Definition at line 113 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_walls(), CTangentialSpring(), and reverse().
bool CTangentialSpring::sliding |
Definition at line 124 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_walls(), and CTangentialSpring().
Vec3D CTangentialSpring::SlidingForce |
Stores the force (for some non-linear, hysteretic spring models)
Definition at line 116 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_walls(), CTangentialSpring(), and reverse().
bool CTangentialSpring::slidingRolling |
Definition at line 125 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_walls(), and CTangentialSpring().
bool CTangentialSpring::slidingTorsion |
Definition at line 126 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_walls(), and CTangentialSpring().
Mdouble CTangentialSpring::time |
stores the last time the tangential spring was read (if it was not read during the last timestep, the contact is old and will be deleted)
Definition at line 122 of file CTangentialSpring.h.
Referenced by CTangentialSpring(), CTangentialSprings::check_spring_time::operator()(), and print().
Vec3D CTangentialSpring::TorsionSpring |
Definition at line 114 of file CTangentialSpring.h.
Referenced by MD::compute_internal_forces(), MD::compute_walls(), CTangentialSpring(), and reverse().