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);
205 void store( agxStream::OutputArchive&
out ) const;
210 void restore( agxStream::InputArchive&
in );
216 agx::
Real m_minimumDistanceBetweenNodes;
217 agx::
Real m_stopNodeReferenceDistance;
218 agx::
Real m_stopNodeLumpMinDistanceFraction;
220 agx::
Real m_scaleConstant;
221 agx::
Real m_radiusMultiplier;
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;
227 agx::
Bool m_useExtraLength;
228 agx::
Bool m_moveNodesBeforeSolver;
229 agx::
Bool m_clampNodesToEdges;
234 return m_winchPrismaticCompliance;
239 return m_winchPrismaticCompliance;
245 m_minimumDistanceBetweenNodes = minDistanceBetweenNodes;
251 return m_minimumDistanceBetweenNodes;
257 m_stopNodeReferenceDistance = stopNodeReferenceDistance;
262 return m_stopNodeReferenceDistance;
268 m_stopNodeLumpMinDistanceFraction = stopNodeLumpMinDistanceFraction;
274 return m_stopNodeLumpMinDistanceFraction;
282 m_scaleConstant = scaleConstant;
288 return m_scaleConstant;
295 m_radiusMultiplier = radiusMultiplier;
300 return m_radiusMultiplier;
307 agx::Real radiusInMultiplier = wireRadius * m_radiusMultiplier;
311 return (wireRadius + extra) / wireRadius;
316 maxMovement = std::abs(maxMovement);
317 m_maximumContactMovementOneTimestep = maxMovement;
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...
void setMaximumContactMovementOneTimestep(agx::Real maxMovement)
This value should be related the size of objects the wire is interacting with, to avoid tunneling If ...
agx::Real getRadiusMultiplier(agx::Real wireRadius) const
void setRadiusMultiplier(agx::Real radiusMultiplier)
Set the wire sphere geometry radius multiplier.
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...
agx::Real getMaximumContactMovementOneTimestep() const
agx::Real getStopNodeLumpMinDistanceFraction() const
#define AGXPHYSICS_EXPORT
void setScaleConstant(agx::Real scaleConstant)
The scale constant controls the insert/remove of lumped nodes in a wire.
GLenum GLuint GLenum GLsizei length
agx::Real getMinimumDistanceBetweenNodes() const
agx::Real motor_d
Damping.
agx::Real getStopNodeReferenceDistance() const
agx::Vec3 rotational_d
Damping.
void setMinimumDistanceBetweenNodes(agx::Real minDistanceBetweenNodes)
Set the minimum distance allowed between nodes.
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.
void setStopNodeLumpMinDistanceFraction(agx::Real stopNodeLumpMinDistanceFraction)
Set the fraction of stop node reference distance that defines the range end of the prismatic constrai...
agx::Real getNonScaledRadiusMultiplier() const
agx::Real range_d
Damping.
void setStopNodeReferenceDistance(agx::Real stopNodeReferenceDistance)
Set the distance between the lump node and the stop node for winches.
agx::Real getSensorRadius(agx::Real wireRadius) const
agx::Real motor
Compliance.
agx::Real range
Compliance.
T1 clamp(T1 v, T2 minimum, T3 maximum)
agx::Real lock
Compliance.
agx::Real getScaleConstant() const
AGXPHYSICS_EXPORT agx::Bool equalsZero(const agx::AddedMassInteraction::Matrix6x6 &matrix, agx::Real eps=agx::RealEpsilon)
#define MAXIMUM_DISTANCE_BETWEEN_NODE_AND_GEOMETRY
agx::Vec2 spatial
Compliance.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()