MercuryDPM  0.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CDeltaMax Class Reference

Stores the history parameter $\delta_{max}$ needed for a plastic force. More...

#include <CDeltaMax.h>

Public Member Functions

 CDeltaMax ()
 constructors More...
 
 CDeltaMax (Mdouble delta_, int pParticle_, int pWall_, Mdouble time_)
 
 CDeltaMax (const CDeltaMax &ts)
 copy constructor More...
 
void print (std::ostream &os)
 outputs tangential spring More...
 

Public Attributes

Mdouble delta
 The maximum overlap on which the repellant spring strength is based. 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 history parameter was read (if it was not read during the last timestep, the contact is old and will be deleted) More...
 

Friends

std::ostream & operator<< (std::ostream &os, const CDeltaMax &p)
 writes spring More...
 
std::istream & operator>> (std::istream &is, CDeltaMax &p)
 reads spring More...
 

Detailed Description

Stores the history parameter $\delta_{max}$ needed for a plastic force.

Definition at line 40 of file CDeltaMax.h.

Constructor & Destructor Documentation

CDeltaMax::CDeltaMax ( )
inline

constructors

Definition at line 43 of file CDeltaMax.h.

References delta, pParticle, pWall, and time.

43 {delta=0; pParticle=-1; pWall=-1; time=-1;}
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
Definition: CDeltaMax.h:87
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
Definition: CDeltaMax.h:89
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Definition: CDeltaMax.h:91
Mdouble delta
The maximum overlap on which the repellant spring strength is based.
Definition: CDeltaMax.h:85
CDeltaMax::CDeltaMax ( Mdouble  delta_,
int  pParticle_,
int  pWall_,
Mdouble  time_ 
)
inline

Definition at line 45 of file CDeltaMax.h.

References delta, pParticle, pWall, and time.

45  {
46  delta = delta_;
47  pParticle = pParticle_;
48  pWall = pWall_;
49  time = time_;
50  }
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
Definition: CDeltaMax.h:87
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
Definition: CDeltaMax.h:89
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Definition: CDeltaMax.h:91
Mdouble delta
The maximum overlap on which the repellant spring strength is based.
Definition: CDeltaMax.h:85
CDeltaMax::CDeltaMax ( const CDeltaMax ts)
inline

copy constructor

Definition at line 53 of file CDeltaMax.h.

References delta, pParticle, pWall, and time.

53  {
54  delta = ts.delta;
55  pParticle = ts.pParticle;
56  pWall = ts.pWall;
57  time = ts.time;
58  }
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
Definition: CDeltaMax.h:87
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
Definition: CDeltaMax.h:89
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Definition: CDeltaMax.h:91
Mdouble delta
The maximum overlap on which the repellant spring strength is based.
Definition: CDeltaMax.h:85

Member Function Documentation

void CDeltaMax::print ( std::ostream &  os)
inline

outputs tangential spring

Definition at line 61 of file CDeltaMax.h.

References delta, pParticle, pWall, and time.

61  {
62  os << "delta:" << delta
63  << ", particle:" << pParticle
64  << ", wall:" << pWall
65  << ", time:" << time;
66  }
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
Definition: CDeltaMax.h:87
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
Definition: CDeltaMax.h:89
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Definition: CDeltaMax.h:91
Mdouble delta
The maximum overlap on which the repellant spring strength is based.
Definition: CDeltaMax.h:85

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CDeltaMax p 
)
friend

writes spring

Definition at line 69 of file CDeltaMax.h.

70  {
71  os << p.delta << " " << p.pParticle << " " << p.pWall << " " << p.time;
72  return os;
73  }
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
Definition: CDeltaMax.h:87
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
Definition: CDeltaMax.h:89
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Definition: CDeltaMax.h:91
Mdouble delta
The maximum overlap on which the repellant spring strength is based.
Definition: CDeltaMax.h:85
std::istream& operator>> ( std::istream &  is,
CDeltaMax p 
)
friend

reads spring

Definition at line 76 of file CDeltaMax.h.

77  {
78  is >> p.delta >> p.pParticle >> p.pWall >> p.time;
79  return is;
80  }
int pParticle
A pointer to the particle in contact; NULL if the contact is with a wall (The other particle is the p...
Definition: CDeltaMax.h:87
int pWall
A pointer to the wall in contact; NULL if the contact is with a particle (The other particle is the p...
Definition: CDeltaMax.h:89
Mdouble time
stores the last time the history parameter was read (if it was not read during the last timestep...
Definition: CDeltaMax.h:91
Mdouble delta
The maximum overlap on which the repellant spring strength is based.
Definition: CDeltaMax.h:85

Member Data Documentation

Mdouble CDeltaMax::delta

The maximum overlap on which the repellant spring strength is based.

Definition at line 85 of file CDeltaMax.h.

Referenced by CDeltaMax(), and print().

int CDeltaMax::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 87 of file CDeltaMax.h.

Referenced by CDeltaMax(), and print().

int CDeltaMax::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 89 of file CDeltaMax.h.

Referenced by CDeltaMax(), and print().

Mdouble CDeltaMax::time

stores the last time the history parameter was read (if it was not read during the last timestep, the contact is old and will be deleted)

Definition at line 91 of file CDeltaMax.h.

Referenced by CDeltaMax(), CDeltaMaxs::check_spring_time::operator()(), and print().


The documentation for this class was generated from the following file: