AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
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.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Protected Member Functions

virtual ~WireContactConstraint ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
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.
 

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()

◆ calculateD()

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

◆ calculateEpsilon()

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

Definition at line 253 of file WireContactSolver.h.

References m_compliance, and m_damping.

Referenced by calculateD().

◆ calculateInitialLambda()

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

Definition at line 153 of file WireContactSolver.h.

References m_compliance, and m_violation.

◆ calculateJacobian()

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

◆ calculateRHS()

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

◆ 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.

Referenced by calculateD().

◆ getFirstParticleGlobalIndex()

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

Definition at line 203 of file WireContactSolver.h.

References m_firstParticleGlobalIndex.

Referenced by calculateD().

◆ getForceOnParticle()

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

◆ getHasBounds()

bool agx::WireContactConstraint::getHasBounds ( )
inline

Definition at line 266 of file WireContactSolver.h.

References m_hasBounds.

◆ getInvMass()

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

◆ getJacobian()

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

◆ 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

◆ getParticles()

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

Definition at line 252 of file WireContactSolver.h.

References m_particles.

◆ 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.

References m_rhs.

◆ 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.

References m_violation.

◆ 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

◆ setCompliance()

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

Definition at line 276 of file WireContactSolver.h.

References m_compliance.

◆ 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

◆ m_damping

Real agx::WireContactConstraint::m_damping
protected

◆ m_firstParticleGlobalIndex

◆ m_hasBounds

bool agx::WireContactConstraint::m_hasBounds
protected

◆ m_jacobianVector

RealVector agx::WireContactConstraint::m_jacobianVector
protected

◆ 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.

Referenced by addWireParticle(), calculateRHS(), getInvMass(), getMass(), and getParticles().

◆ m_rhs

Real agx::WireContactConstraint::m_rhs
protected

◆ m_violation


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