|
AGX Dynamics 2.42.3.1
|
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. | |
A one row constraint.
Definition at line 142 of file WireContactSolver.h.
| agx::WireContactConstraint::WireContactConstraint | ( | ) |
|
inlineprotectedvirtual |
Definition at line 279 of file WireContactSolver.h.
|
inline |
Definition at line 158 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_jacobianVector, m_particles, agx::VectorPOD< T, Allocator >::push_back(), and agx::Vector< T, Allocator >::push_back().
Referenced by agx::WireContactBendConstraint::WireContactBendConstraint(), agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), and agx::WireContactSpringConstraint::WireContactSpringConstraint().
|
inline |
Definition at line 228 of file WireContactSolver.h.
References calculateEpsilon(), getEpsilon(), getFirstParticleGlobalIndex(), getInvMass(), getJacobian(), m_jacobianVector, and agx::Container::size().
|
inline |
Definition at line 253 of file WireContactSolver.h.
References m_compliance, and m_damping.
Referenced by calculateD().
|
inline |
Definition at line 153 of file WireContactSolver.h.
References m_compliance, and m_violation.
|
pure virtual |
Implemented in agx::WireContactDistanceConstraint, agx::WireContactBendConstraint, and agx::WireContactSpringConstraint.
|
inlinevirtual |
Reimplemented in agx::WireContactFrictionConstraint.
Definition at line 206 of file WireContactSolver.h.
References m_damping, m_jacobianVector, m_particles, m_rhs, and agx::Container::size().
|
pure virtual |
|
inline |
Definition at line 222 of file WireContactSolver.h.
|
inline |
Definition at line 221 of file WireContactSolver.h.
Referenced by calculateD().
|
inline |
Definition at line 203 of file WireContactSolver.h.
References m_firstParticleGlobalIndex.
Referenced by calculateD().
Definition at line 258 of file WireContactSolver.h.
References m_firstParticleGlobalIndex, m_jacobianVector, and agx::Container::size().
|
inline |
Definition at line 266 of file WireContactSolver.h.
References m_hasBounds.
|
inline |
Definition at line 181 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_particles, and agx::Container::size().
Referenced by calculateD().
|
inline |
Definition at line 168 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_jacobianVector, and agx::Container::size().
Referenced by calculateD().
|
inline |
Definition at line 219 of file WireContactSolver.h.
|
inline |
Definition at line 273 of file WireContactSolver.h.
|
inline |
Definition at line 192 of file WireContactSolver.h.
References agx::Container::empty(), m_firstParticleGlobalIndex, m_particles, and agx::Container::size().
|
inline |
Definition at line 252 of file WireContactSolver.h.
References m_particles.
|
inline |
Definition at line 226 of file WireContactSolver.h.
|
inline |
Definition at line 205 of file WireContactSolver.h.
References m_rhs.
|
inline |
Definition at line 274 of file WireContactSolver.h.
|
inline |
Definition at line 223 of file WireContactSolver.h.
References m_violation.
|
inlinevirtual |
Reimplemented in agx::WireContactDistanceConstraint.
Definition at line 147 of file WireContactSolver.h.
|
inline |
Definition at line 267 of file WireContactSolver.h.
References agx::Range< T >::lower(), m_hasBounds, and agx::Range< T >::upper().
|
inline |
Definition at line 276 of file WireContactSolver.h.
References m_compliance.
|
inline |
Definition at line 220 of file WireContactSolver.h.
|
inline |
Definition at line 225 of file WireContactSolver.h.
|
protected |
Definition at line 286 of file WireContactSolver.h.
Referenced by agx::WireContactBendConstraint::WireContactBendConstraint(), agx::WireContactDistanceConstraint::WireContactDistanceConstraint(), agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), agx::WireContactSpringConstraint::WireContactSpringConstraint(), calculateEpsilon(), calculateInitialLambda(), and setCompliance().
|
protected |
Definition at line 290 of file WireContactSolver.h.
Referenced by agx::WireContactBendConstraint::WireContactBendConstraint(), calculateEpsilon(), and calculateRHS().
|
protected |
Definition at line 287 of file WireContactSolver.h.
Referenced by agx::WireContactBendConstraint::WireContactBendConstraint(), agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), agx::WireContactSpringConstraint::WireContactSpringConstraint(), addWireParticle(), getFirstParticleGlobalIndex(), getForceOnParticle(), getInvMass(), getJacobian(), and getMass().
|
protected |
Definition at line 288 of file WireContactSolver.h.
Referenced by agx::WireContactFrictionConstraint::WireContactFrictionConstraint(), getHasBounds(), and setBounds().
|
protected |
Definition at line 283 of file WireContactSolver.h.
Referenced by addWireParticle(), calculateD(), agx::WireContactSpringConstraint::calculateJacobian(), calculateRHS(), getForceOnParticle(), and getJacobian().
|
protected |
Definition at line 284 of file WireContactSolver.h.
|
protected |
Definition at line 282 of file WireContactSolver.h.
Referenced by addWireParticle(), calculateRHS(), getInvMass(), getMass(), and getParticles().
|
protected |
Definition at line 289 of file WireContactSolver.h.
Referenced by calculateRHS(), agx::WireContactFrictionConstraint::calculateRHS(), and getRHS().
|
protected |
Definition at line 285 of file WireContactSolver.h.
Referenced by calculateInitialLambda(), agx::WireContactSpringConstraint::calculateViolation(), agx::WireContactFrictionConstraint::calculateViolation(), and getViolation().