62 os <<
"delta:" <<
delta
117 for (CDeltaMaxs::iterator it=begin(); it!=end();it++){
118 if (it->pParticle==P)
127 return &back().delta;
137 for (CDeltaMaxs::iterator it=begin(); it!=end(); it++)
148 return &back().delta;
159 os <<
"Delta max's: N=" << size() << std::endl;
160 for (CDeltaMaxs::iterator it=begin(); it!=end(); it++)
161 if (it->time>=time_) {
162 it->print(os); os << std::endl;
171 for (
unsigned int i=0; i<p.size(); i++) os <<
" "<< p[i];
178 int n; is >> n; p.resize(n);
179 for (
unsigned int i=0; i<p.size(); i++) is >> p[i];
Construction required for the erase/remove_if stuff.
friend std::istream & operator>>(std::istream &is, CDeltaMaxs &p)
reads all springs
void reset()
Resets the tangential springs.
friend std::istream & operator>>(std::istream &is, CDeltaMax &p)
reads spring
friend std::ostream & operator<<(std::ostream &os, const CDeltaMax &p)
writes spring
Mdouble * select_particle(int P, Mdouble time_, Mdouble dt)
Function selects the tangential spring vector for particle-particle interations (also removed not use...
bool operator()(const CDeltaMax a, const Mdouble b) const
CDeltaMax(Mdouble delta_, int pParticle_, int pWall_, Mdouble time_)
Mdouble * select_wall(int W, Mdouble time_, Mdouble dt)
Function selects the tangential spring vector for particle-wall interations.
friend std::ostream & operator<<(std::ostream &os, const CDeltaMaxs &p)
writes all springs
void print(std::ostream &os, Mdouble time_)
outputs all current active tangential springs
void print(std::ostream &os)
outputs tangential spring
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
CDeltaMax(const CDeltaMax &ts)
copy constructor
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Stores the history parameter needed for a plastic force.
Member variable of #Particle storing all history parameters of a particle.
Mdouble delta
The maximum overlap on which the repellant spring strength is based.