23 #define MAXIMUM_DISTANCE_BETWEEN_NODE_AND_GEOMETRY 0.05 66 void resetToDefault();
74 inline void setMinimumDistanceBetweenNodes(
agx::Real minDistanceBetweenNodes);
80 agx::Real getMinimumDistanceBetweenNodes()
const;
89 inline void setStopNodeReferenceDistance(
agx::Real stopNodeReferenceDistance);
95 agx::Real getStopNodeReferenceDistance()
const;
102 void setStopNodeLumpMinDistanceFraction(
agx::Real stopNodeLumpMinDistanceFraction);
108 agx::Real getStopNodeLumpMinDistanceFraction()
const;
116 void setScaleConstant(
agx::Real scaleConstant);
130 void setRadiusMultiplier(
agx::Real radiusMultiplier);
132 agx::Real getNonScaledRadiusMultiplier()
const;
144 void setMaximumContactMovementOneTimestep(
agx::Real maxMovement);
146 agx::Real getMaximumContactMovementOneTimestep()
const;
157 void setSplitTensionMultiplier(
agx::Real multiplier);
162 agx::Real getSplitTensionMultiplier()
const;
169 void setWireContactDynamicsSolverDampingScale(
agx::Real scale);
174 agx::Real getWireContactDynamicsSolverDampingScale()
const;
178 agx::
Real getWireContactPrecision() const;
179 agx::
Real getContactNodeEdgeDefaultLength() const;
180 agx::
Bool getSolverUseExtraLength() const;
181 agx::
Bool getSolverMoveNodesBeforeMainSolver() const;
186 void setWireContactPrecision(
agx::
Real precision);
188 void setContactNodeEdgeDefaultLength(
agx::
Real length);
189 void setSolverUseExtraLength(
agx::
Bool useExtraLength);
190 void setSolverMoveNodesBeforeMainSolver(
agx::
Bool moveNodesBeforeSolver);
216 agx::
Real m_minimumDistanceBetweenNodes;
217 agx::
Real m_stopNodeReferenceDistance;
218 agx::
Real m_stopNodeLumpMinDistanceFraction;
222 agx::
Real m_maximumContactMovementOneTimestep;
223 agx::
Real m_splitTensionMultiplier;
224 agx::
Real m_wireContactPrecision;
225 agx::
Real m_wireContactDynamicsSolverDampingScale;
226 agx::
Real m_contactNodeEdgeDefaultLength;
228 agx::
Bool m_moveNodesBeforeSolver;
234 return m_winchPrismaticCompliance;
239 return m_winchPrismaticCompliance;
242 inline void WireParameterController::setMinimumDistanceBetweenNodes(
agx::Real minDistanceBetweenNodes)
245 m_minimumDistanceBetweenNodes = minDistanceBetweenNodes;
249 inline agx::Real WireParameterController::getMinimumDistanceBetweenNodes()
const 251 return m_minimumDistanceBetweenNodes;
255 inline void WireParameterController::setStopNodeReferenceDistance(
agx::Real stopNodeReferenceDistance)
257 m_stopNodeReferenceDistance = stopNodeReferenceDistance;
260 inline agx::Real WireParameterController::getStopNodeReferenceDistance()
const 262 return m_stopNodeReferenceDistance;
266 inline void WireParameterController::setStopNodeLumpMinDistanceFraction(
agx::Real stopNodeLumpMinDistanceFraction)
268 m_stopNodeLumpMinDistanceFraction = stopNodeLumpMinDistanceFraction;
272 inline agx::Real WireParameterController::getStopNodeLumpMinDistanceFraction()
const 274 return m_stopNodeLumpMinDistanceFraction;
279 inline void WireParameterController::setScaleConstant(
agx::Real scaleConstant)
282 m_scaleConstant = scaleConstant;
286 inline agx::Real WireParameterController::getScaleConstant()
const 288 return m_scaleConstant;
292 inline void WireParameterController::setRadiusMultiplier(
agx::Real radiusMultiplier)
295 m_radiusMultiplier = radiusMultiplier;
298 inline agx::Real WireParameterController::getNonScaledRadiusMultiplier()
const 300 return m_radiusMultiplier;
307 agx::Real radiusInMultiplier = wireRadius * m_radiusMultiplier;
311 return (wireRadius + extra) / wireRadius;
314 inline void WireParameterController::setMaximumContactMovementOneTimestep(
agx::Real maxMovement)
316 maxMovement = std::abs(maxMovement);
317 m_maximumContactMovementOneTimestep = maxMovement;
320 inline agx::Real WireParameterController::getMaximumContactMovementOneTimestep()
const 322 return m_maximumContactMovementOneTimestep;
327 return m_maximumContactMovementOneTimestep * 2 + wireRadius * 4;
agx::Vec2 spatial_d
Damping.
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive...
#define AGXPHYSICS_EXPORT
agx::Real motor_d
Damping.
agx::Vec3 rotational_d
Damping.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Implements a Wire model with adaptive resolution.
agx::Vec3 rotational
Compliance.
Class to hold specific parameters for the wire - this makes the wires highly configurable.
Structure with compliance parameters for the prismatic constraint used by winches.
agx::Real range_d
Damping.
agx::Real motor
Compliance.
agx::Real range
Compliance.
T1 clamp(T1 v, T2 minimum, T3 maximum)
agx::Real lock
Compliance.
AGXPHYSICS_EXPORT agx::Bool equalsZero(const agx::AddedMassInteraction::Matrix6x6 &matrix, agx::Real eps=agx::RealEpsilon)
#define MAXIMUM_DISTANCE_BETWEEN_NODE_AND_GEOMETRY
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
agx::Vec2 spatial
Compliance.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()