NDDEM
Public Member Functions | Public Attributes | List of all members
cpm< d > Class Template Reference

Contact properties for mesh contacts (mainly), including contact point location, specialising cp. More...

#include <ContactList.h>

+ Inheritance diagram for cpm< d >:

Public Member Functions

 cpm ()
 Only for use when restarting. More...
 
 cpm (int ii, int jj, int sid, double ctlength, Action< d > *default_action)
 New contact creation. More...
 
 cpm (const cpm &v)
 
 ~cpm ()
 Remove & clean contact. More...
 
cpmoperator= (const cpm &c)
 Affect contact. More...
 
template<class Archive >
void load (Archive &ar)
 
template<class Archive >
void save (Archive &ar) const
 
- Public Member Functions inherited from cp< d >
 cp ()
 Only for use when restarting. More...
 
 cp (int ii, int jj, double ctlength, Action< d > *default_action)
 New contact creation. More...
 
 cp (const cp &v)
 
 ~cp ()
 Remove & clean contact. More...
 
cpoperator= (const cp &c)
 Affect contact. More...
 
Action< d > & getinfo ()
 Returning stored information. More...
 
void setinfo (Action< d > *a)
 Set information for contact force. More...
 
void saveinfo (Action< d > &a)
 Save information regarding the contact forces for later write down. More...
 
template<class Archive >
void save (Archive &ar) const
 
template<class Archive >
void load (Archive &ar)
 
std::pair< vector< double >, vector< double > > compute_branchvector (cv2d &X, Parameters< d > &P)
 Compute the location & branch vector of the contact. More...
 

Public Attributes

vector< double > contactpoint
 Location of the contact, used only for Mesh at this point, to avoid recalculating. More...
 
int submeshid
 
- Public Attributes inherited from cp< d >
int i
 Index of contacting particle. More...
 
int j
 Index of second contacting particle or wall. If this is a wall contact, j=2*walldimension + (0 or 1 if it is the low wall or high wall) More...
 
double contactlength
 Length of the contact. More...
 
uint32_t ghost
 Contain ghost information about ghost contact, cf detailed description. More...
 
uint32_t ghostdir
 Contain ghost information about ghost direction, cf detailed description. More...
 
std::vector< double > tspr
 Vector of tangential contact history. More...
 
Action< d > * infos
 stores contact information if contact storing is requires More...
 
bool owninfos
 True if the contact contains stored information for dump retrieval. More...
 
bool persisting
 True if the contact is still maintained for the current ts. More...
 

Detailed Description

template<int d>
class cpm< d >

Contact properties for mesh contacts (mainly), including contact point location, specialising cp.

Constructor & Destructor Documentation

◆ cpm() [1/3]

template<int d>
cpm< d >::cpm ( )
inline

Only for use when restarting.

◆ cpm() [2/3]

template<int d>
cpm< d >::cpm ( int  ii,
int  jj,
int  sid,
double  ctlength,
Action< d > *  default_action 
)
inline

New contact creation.

◆ cpm() [3/3]

template<int d>
cpm< d >::cpm ( const cpm< d > &  v)
inline

◆ ~cpm()

template<int d>
cpm< d >::~cpm ( )
inline

Remove & clean contact.

Member Function Documentation

◆ load()

template<int d>
template<class Archive >
void cpm< d >::load ( Archive &  ar)
inline

◆ operator=()

template<int d>
cpm& cpm< d >::operator= ( const cpm< d > &  c)
inline

Affect contact.

◆ save()

template<int d>
template<class Archive >
void cpm< d >::save ( Archive &  ar) const
inline

Member Data Documentation

◆ contactpoint

template<int d>
vector<double> cpm< d >::contactpoint

Location of the contact, used only for Mesh at this point, to avoid recalculating.

◆ submeshid

template<int d>
int cpm< d >::submeshid

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