28 class WireParameterController;
70 WireStabilityController( WireMaterialController* lmc );
74 void setWire( WireDistanceCompositeConstraint* lDCC )
81 return m_wire !=
nullptr;
90 void changeMass(
agx::Real dl, BodyFixedNode* bfnA, BodyFixedNode* bfnB )
const;
95 WireMaterialController* getMaterialController() {
return m_materialController; }
96 const WireMaterialController* getMaterialController()
const {
return m_materialController; }
106 bool isGeometricallyStable( NodeConstIterator prevIt, NodeConstIterator nextIt,
agx::Real d1,
agx::Real d2 )
const;
111 agx::Real getTimeStepDependentStabilityConstant()
const;
120 void removeUnstableNodesNearShapeContacts();
141 enum MassNodeStatus {
146 LOW_RESOLUTION = (1<<4)
150 struct InsertNodeData
152 agx::Real halfRestlengthFromPreviousToNext;
167 bool isCollidingSlidingNode( BodyFixedNode* bfn,NodeConstIterator itBefore, NodeConstIterator itAfter )
const;
172 bool resolutionHighEnoughForPosition( NodeConstIterator bfnIt, NodeConstIterator prevBfn, NodeConstIterator nextBfn,
const agx::Real restlengthToBfn,
const agx::Real minDistanceToLump,
const agx::Real aroundLumpAngle,
const agx::Real eps =
agx::Real(1E-6) )
const;
184 MassNodeStatus analyze( NodeConstIterator bfnIt, NodeConstIterator prevBfn, NodeConstIterator nextBfn,
const agx::Real restlengthToBfn ,
const agx::Real minDistanceToLump,
const bool lastBfnRemovedByResolution )
const;
194 void insertSorted( InsertNodeDataList& insertData, InsertNodeData ind )
const;
206 void findMiddleInsertPositions(
207 NodeConstIterator itA, NodeConstIterator itB,
const agx::Real lumpMass,
const agx::Real restlengthAB,
208 InsertNodeDataList& insertData,
const agx::Real minDistFromStart,
const agx::Real minDistanceFromEnd)
const;
227 agx::Real analyze( NodeConstIterator bfnAIt, NodeConstIterator bfnBIt,
const agx::Real restlengthToA,
const agx::Real minDistFromStart,
const agx::Real minDistanceFromEnd )
const;
233 return ( l1*l2/(l1+l2) );
241 return tension / (mass * constant);
249 bool move( BodyFixedNode* bfn );
#define AGXPHYSICS_EXPORT
The body fixed node is attached to a body at a given offset.
Class defining a node that is part of a wire.
Class to hold specific parameters for the wire - this makes the wires highly configurable.
Base class providing referencing counted objects.
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Smart pointer for handling referenced counted objects.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Implements a Wire model with adaptive resolution.
NodeContainer::const_iterator NodeConstIterator
AGXPHYSICS_EXPORT agx::Bool equalsZero(const agx::AddedMassInteraction::Matrix6x6 &matrix, agx::Real eps=agx::RealEpsilon)