MULTIBODY SIMULATION SOFTWARE - API documentation

chrono::ChLcpConstraintTwoFriction Class Reference

#include <CHlcpConstraintTwoFriction.h>

Inheritance diagram for chrono::ChLcpConstraintTwoFriction:

Inheritance graph
[legend]
Collaboration diagram for chrono::ChLcpConstraintTwoFriction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ChLcpConstraintTwoFriction ()
 ChLcpConstraintTwoFriction (ChLcpVariablesBody *mvariables_a, ChLcpVariablesBody *mvariables_b)
 ChLcpConstraintTwoFriction (const ChLcpConstraintTwoFriction &other)
virtual ChLcpConstraintnew_Duplicate ()
ChLcpConstraintTwoFrictionoperator= (const ChLcpConstraintTwoFriction &other)
virtual bool IsLinear ()
double GetFrictionCoefficient ()
void SetFrictionCoefficient (double mcoeff)
virtual double Violation (double mc_i)
virtual void StreamIN (ChStreamInBinary &mstream)
virtual void StreamOUT (ChStreamOutBinary &mstream)

Protected Attributes

double friction


Detailed Description

Base class for friction constraints (see specialized children classes for more details - this is mostly an interface)

Constructor & Destructor Documentation

chrono::ChLcpConstraintTwoFriction::ChLcpConstraintTwoFriction (  ) 

Default constructor.

chrono::ChLcpConstraintTwoFriction::ChLcpConstraintTwoFriction ( ChLcpVariablesBody mvariables_a,
ChLcpVariablesBody mvariables_b 
)

Construct and immediately set references to variables, also setting the and the normal constraint other tangential constraint (the latter is mandatory only for the second of the two tangential constraints)

chrono::ChLcpConstraintTwoFriction::ChLcpConstraintTwoFriction ( const ChLcpConstraintTwoFriction other  ) 

Copy constructor.


Member Function Documentation

ChLcpConstraintTwoFriction& chrono::ChLcpConstraintTwoFriction::operator= ( const ChLcpConstraintTwoFriction other  ) 

Assignment operator: copy from other object.

virtual bool chrono::ChLcpConstraintTwoFriction::IsLinear (  )  [virtual]

Tells that this constraint is not linear, that is: it cannot be solved with a plain simplex solver.

Reimplemented from chrono::ChLcpConstraint.

double chrono::ChLcpConstraintTwoFriction::GetFrictionCoefficient (  ) 

Get the friction coefficient.

void chrono::ChLcpConstraintTwoFriction::SetFrictionCoefficient ( double  mcoeff  ) 

Set the friction coefficient.

double chrono::ChLcpConstraintTwoFriction::Violation ( double  mc_i  )  [virtual]

The constraint is satisfied?

Reimplemented from chrono::ChLcpConstraint.

void chrono::ChLcpConstraintTwoFriction::StreamIN ( ChStreamInBinary mstream  )  [virtual]

Method to allow deserializing a persistent binary archive (ex: a file) into transient data.

Reimplemented from chrono::ChLcpConstraintTwoBodies.

Reimplemented in chrono::ChLcpConstraintTwoFrictionApprox.

void chrono::ChLcpConstraintTwoFriction::StreamOUT ( ChStreamOutBinary mstream  )  [virtual]

Method to allow serializing transient data into a persistent binary archive (ex: a file).

Reimplemented from chrono::ChLcpConstraintTwoBodies.

Reimplemented in chrono::ChLcpConstraintTwoFrictionApprox.


Member Data Documentation

double chrono::ChLcpConstraintTwoFriction::friction [protected]

the friction coefficient 'f', for sqrt(Tx^2+Ty^2)<f*Nz


CHRONO::ENGINE
C++ library for multibody simulation, (C) Alessandro Tasora
This API documentation has been generated on 17 Jul 2009 by Doxygen