AGX Dynamics  2.37.2.0
agx::WireContactConstraint Class Referenceabstract

A one row constraint. More...

#include <WireContactSolver.h>

+ Inheritance diagram for agx::WireContactConstraint:

Public Member Functions

 WireContactConstraint ()
 
bool addWireParticle (WireParticle *wp, size_t contactIndex)
 
void calculateD (Real timestep)
 
void calculateEpsilon (Real timestep)
 
void calculateInitialLambda (Real timestep)
 
virtual void calculateJacobian ()=0
 
virtual void calculateRHS (Real invTimestep, Real violation)
 
virtual void calculateViolation ()=0
 
Real getD () const
 
Real getEpsilon () const
 
size_t getFirstParticleGlobalIndex () const
 
Real getForceOnParticle (size_t globalIndex, Real timestep)
 
bool getHasBounds ()
 
Real getInvMass (size_t particleIndex)
 
bool getJacobian (size_t particleIndex, Real &G)
 
Real getLambda () const
 
Real getLowerBounds () const
 
Real getMass (size_t particleIndex)
 
WireParticleRefVector & getParticles ()
 
bool getReachedBounds ()
 
Real getRHS () const
 
Real getUpperBounds () const
 
Real getViolation () const
 
virtual void postCallback (Real)
 
void setBounds (RangeReal bounds)
 
void setCompliance (Real compliance)
 
void setLambda (Real lambda)
 
void setReachedBounds (bool reached)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Protected Member Functions

virtual ~WireContactConstraint ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

Real m_compliance
 
Real m_damping
 
size_t m_firstParticleGlobalIndex
 
bool m_hasBounds
 
RealVector m_jacobianVector
 
RealVector m_normalForces
 
WireParticleRefVector m_particles
 
Real m_rhs
 
Real m_violation
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 

Detailed Description

A one row constraint.

Definition at line 142 of file WireContactSolver.h.

Constructor & Destructor Documentation

◆ WireContactConstraint()

agx::WireContactConstraint::WireContactConstraint ( )

◆ ~WireContactConstraint()

virtual agx::WireContactConstraint::~WireContactConstraint ( )
inlineprotectedvirtual

Definition at line 279 of file WireContactSolver.h.

Member Function Documentation

◆ addWireParticle()

bool agx::WireContactConstraint::addWireParticle ( WireParticle *  wp,
size_t  contactIndex 
)
inline

Definition at line 158 of file WireContactSolver.h.

◆ calculateD()

void agx::WireContactConstraint::calculateD ( Real  timestep)
inline

Definition at line 228 of file WireContactSolver.h.

References agx::WireParticle::getInvMass().

◆ calculateEpsilon()

void agx::WireContactConstraint::calculateEpsilon ( Real  timestep)
inline

Definition at line 253 of file WireContactSolver.h.

◆ calculateInitialLambda()

void agx::WireContactConstraint::calculateInitialLambda ( Real  timestep)
inline

Definition at line 153 of file WireContactSolver.h.

◆ calculateJacobian()

virtual void agx::WireContactConstraint::calculateJacobian ( )
pure virtual

◆ calculateRHS()

virtual void agx::WireContactConstraint::calculateRHS ( Real  invTimestep,
Real  violation 
)
inlinevirtual

Reimplemented in agx::WireContactFrictionConstraint.

Definition at line 206 of file WireContactSolver.h.

◆ calculateViolation()

virtual void agx::WireContactConstraint::calculateViolation ( )
pure virtual

◆ getD()

Real agx::WireContactConstraint::getD ( ) const
inline

Definition at line 222 of file WireContactSolver.h.

◆ getEpsilon()

Real agx::WireContactConstraint::getEpsilon ( ) const
inline

Definition at line 221 of file WireContactSolver.h.

◆ getFirstParticleGlobalIndex()

size_t agx::WireContactConstraint::getFirstParticleGlobalIndex ( ) const
inline

Definition at line 203 of file WireContactSolver.h.

◆ getForceOnParticle()

Real agx::WireContactConstraint::getForceOnParticle ( size_t  globalIndex,
Real  timestep 
)
inline

Definition at line 258 of file WireContactSolver.h.

◆ getHasBounds()

bool agx::WireContactConstraint::getHasBounds ( )
inline

Definition at line 266 of file WireContactSolver.h.

◆ getInvMass()

Real agx::WireContactConstraint::getInvMass ( size_t  particleIndex)
inline

Definition at line 181 of file WireContactSolver.h.

◆ getJacobian()

bool agx::WireContactConstraint::getJacobian ( size_t  particleIndex,
Real &  G 
)
inline

Definition at line 168 of file WireContactSolver.h.

◆ getLambda()

Real agx::WireContactConstraint::getLambda ( ) const
inline

Definition at line 219 of file WireContactSolver.h.

◆ getLowerBounds()

Real agx::WireContactConstraint::getLowerBounds ( ) const
inline

Definition at line 273 of file WireContactSolver.h.

◆ getMass()

Real agx::WireContactConstraint::getMass ( size_t  particleIndex)
inline

Definition at line 192 of file WireContactSolver.h.

◆ getParticles()

WireParticleRefVector& agx::WireContactConstraint::getParticles ( )
inline

Definition at line 252 of file WireContactSolver.h.

◆ getReachedBounds()

bool agx::WireContactConstraint::getReachedBounds ( )
inline

Definition at line 226 of file WireContactSolver.h.

◆ getRHS()

Real agx::WireContactConstraint::getRHS ( ) const
inline

Definition at line 205 of file WireContactSolver.h.

◆ getUpperBounds()

Real agx::WireContactConstraint::getUpperBounds ( ) const
inline

Definition at line 274 of file WireContactSolver.h.

◆ getViolation()

Real agx::WireContactConstraint::getViolation ( ) const
inline

Definition at line 223 of file WireContactSolver.h.

◆ postCallback()

virtual void agx::WireContactConstraint::postCallback ( Real  )
inlinevirtual

Reimplemented in agx::WireContactDistanceConstraint.

Definition at line 147 of file WireContactSolver.h.

◆ setBounds()

void agx::WireContactConstraint::setBounds ( RangeReal  bounds)
inline

Definition at line 267 of file WireContactSolver.h.

References agx::Range< T >::lower(), and agx::Range< T >::upper().

◆ setCompliance()

void agx::WireContactConstraint::setCompliance ( Real  compliance)
inline

Definition at line 276 of file WireContactSolver.h.

◆ setLambda()

void agx::WireContactConstraint::setLambda ( Real  lambda)
inline

Definition at line 220 of file WireContactSolver.h.

◆ setReachedBounds()

void agx::WireContactConstraint::setReachedBounds ( bool  reached)
inline

Definition at line 225 of file WireContactSolver.h.

Member Data Documentation

◆ m_compliance

Real agx::WireContactConstraint::m_compliance
protected

Definition at line 286 of file WireContactSolver.h.

◆ m_damping

Real agx::WireContactConstraint::m_damping
protected

Definition at line 290 of file WireContactSolver.h.

◆ m_firstParticleGlobalIndex

size_t agx::WireContactConstraint::m_firstParticleGlobalIndex
protected

Definition at line 287 of file WireContactSolver.h.

◆ m_hasBounds

bool agx::WireContactConstraint::m_hasBounds
protected

Definition at line 288 of file WireContactSolver.h.

◆ m_jacobianVector

RealVector agx::WireContactConstraint::m_jacobianVector
protected

Definition at line 283 of file WireContactSolver.h.

◆ m_normalForces

RealVector agx::WireContactConstraint::m_normalForces
protected

Definition at line 284 of file WireContactSolver.h.

◆ m_particles

WireParticleRefVector agx::WireContactConstraint::m_particles
protected

Definition at line 282 of file WireContactSolver.h.

◆ m_rhs

Real agx::WireContactConstraint::m_rhs
protected

Definition at line 289 of file WireContactSolver.h.

◆ m_violation

Real agx::WireContactConstraint::m_violation
protected

Definition at line 285 of file WireContactSolver.h.


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