MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
Contact Class Reference

Represents a frictional contact between bodies. More...

#include <Contact.h>

Collaboration diagram for Contact:

Public Member Functions

 Contact (int id, double friction, int master_id, int slave_id, string normal_type)
 Constructor.
 
virtual ~Contact ()
 Default destructor.
 
int getId () const
 
double getFrictionCoefficient () const
 
int getMasterId () const
 
int getSlaveId () const
 
const string & getNormalType () const
 
void setId (int new_id)
 
void setFrictionCoefficient (double mu)
 
void setMasterId (int new_master_id)
 
void setSlaveId (int new_slave_id)
 
void setNormalType (const string &type)
 

Private Attributes

int id = 0
 
double frictionCoefficient = 0.0
 Friction coefficient \(\mu\).
 
int masterId = 0
 
int slaveId = 1
 
string normalType = "master"
 Normal type: "master", "slave" or "collinear".
 

Detailed Description

Represents a frictional contact between bodies.

Constructor & Destructor Documentation

◆ Contact()

Contact::Contact ( int  id,
double  friction,
int  master_id,
int  slave_id,
string  normal_type 
)

Constructor.

Parameters
contactid
frictionFriction coefficient
master_idID of the master body
slave_idID of the slave body
normal_typeNormal type: "master", "slave" or "collinear"

◆ ~Contact()

virtual Contact::~Contact ( )
virtual

Default destructor.

Member Function Documentation

◆ getFrictionCoefficient()

double Contact::getFrictionCoefficient ( ) const
inline

◆ getId()

int Contact::getId ( ) const
inline

◆ getMasterId()

int Contact::getMasterId ( ) const
inline

◆ getNormalType()

const string & Contact::getNormalType ( ) const
inline

◆ getSlaveId()

int Contact::getSlaveId ( ) const
inline

◆ setFrictionCoefficient()

void Contact::setFrictionCoefficient ( double  mu)
inline

◆ setId()

void Contact::setId ( int  new_id)
inline

◆ setMasterId()

void Contact::setMasterId ( int  new_master_id)
inline

◆ setNormalType()

void Contact::setNormalType ( const string &  type)
inline

◆ setSlaveId()

void Contact::setSlaveId ( int  new_slave_id)
inline

Member Data Documentation

◆ frictionCoefficient

double Contact::frictionCoefficient = 0.0
private

Friction coefficient \(\mu\).

◆ id

int Contact::id = 0
private

◆ masterId

int Contact::masterId = 0
private

◆ normalType

string Contact::normalType = "master"
private

Normal type: "master", "slave" or "collinear".

◆ slaveId

int Contact::slaveId = 1
private

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