HG-MD  1
Public Member Functions | Public Attributes | Friends
CDeltaMax Class Reference

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

#include <CDeltaMax.h>

List of all members.

Public Member Functions

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

Public Attributes

Mdouble delta
 The maximum overlap on which the repellant spring strength is based.
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)
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)
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)

Friends

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

Detailed Description

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


Constructor & Destructor Documentation

CDeltaMax::CDeltaMax ( ) [inline]

constructors

{delta=0; pParticle=-1; pWall=-1; time=-1;}
CDeltaMax::CDeltaMax ( Mdouble  delta_,
int  pParticle_,
int  pWall_,
Mdouble  time_ 
) [inline]
                                                                             {  
                delta = delta_;
                pParticle = pParticle_;
                pWall = pWall_;
                time = time_;
        }
CDeltaMax::CDeltaMax ( const CDeltaMax ts) [inline]

copy constructor

References delta, pParticle, pWall, and time.

                                        {
                delta = ts.delta;
                pParticle = ts.pParticle;
                pWall = ts.pWall;
                time = ts.time;
        }

Member Function Documentation

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

outputs tangential spring

                                   {
                os << "delta:" << delta 
                        << ", particle:" << pParticle
                        << ", wall:" << pWall 
                        << ", time:" << time;
        }

Friends And Related Function Documentation

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

writes spring

        {
                os << p.delta << " " << p.pParticle << " " << p.pWall << " " << p.time;
                return os;
        }       
std::istream& operator>> ( std::istream &  is,
CDeltaMax p 
) [friend]

reads spring

        {
                is >> p.delta >> p.pParticle >> p.pWall >> p.time;
                return is;
        }

Member Data Documentation

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

Referenced by CDeltaMax().

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)

Referenced by CDeltaMax().

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)

Referenced by CDeltaMax().

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)

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines