Revisions

What changed between one release of Exudyn and the next, in prose, for somebody who has models written against the previous one. Every single resolved issue is in the changelog, and the issues themselves are in the issue tracker; this chapter is the short version, and a new section is added on top of it at each release.

This chapter is deliberately short. The development behind it is recorded step by step in plans and logs, which are working documents of the project rather than user documentation: revision2026 (what version 1.12 is) and revision2026b are closed, revision2026c is open. They are linked from the developer documentation, together with the decisions that set the course of the project.

Version 1.14

A feature release on the new base of 1.13. Its main parts:

  • Nonlinear solids and materials as items: the geometrically nonlinear tetrahedra ObjectSolidTetrahedron and the mesh ObjectSolidFEM, on material items - St. Venant-Kirchhoff, Neo-Hooke, Mooney-Rivlin, user laws in Python or symbolic - with plasticity, viscoelasticity, thermal expansion, initial stress, surface pressure and distributed loads.

  • The package exudyn.FEM with mass and stiffness matrices without NGsolve, and interface elements between RBE2 and RBE3 that join reduced bodies - and a reduced body to a nonlinear one - by a joint or an elastic layer.

  • Curves and surfaces: curve markers on rigid bodies, beams and superelements with ObjectJointCurve - sliders, roller coasters, bodies on flexible rails -, surface markers on rigid bodies, plates and meshes, and the contacts of spheres, circles and tubes with them.

  • 3D beams: ObjectANCFBeam with 3 nodes and a precurved reference, beams along curves of curves.CurveBuilder, sections from a material, tubes and beams lying on each other.

  • Contact between primitive shapes: spheres, cylinders, cones, capsules, convex polytopes and triangles, hollow shapes, rolling and drilling resistance, bristle friction, plastic contact with adhesion, a lubricated journal bearing, and the contact forces drawn.

  • Robotics, revised: the kinematic chain, the analytic and numerical inverse kinematics and the inverse dynamics in C++, Cartesian paths and blending, control with friction and end stops, the URDF import with collision shapes, the collision check, path planning and navigation, and more robot models.

  • Solvers: the implicit Runge-Kutta solvers in C++ (TrapezoidalGGL, LobattoIIIA4, LobattoIIIC4GGL, Radau3, Radau5) with automatic step size, the output at exact write times, analytic Jacobians and multithreading for medium-sized models, MKL PARDISO, and the solution in memory.

  • exudyn.diagnostics: what happened in a run - events, warnings and deprecations, counted and recorded.

  • User items and the symbolic system: ObjectUserBody, NodeUser, ObjectConnectorUser, ObjectJointUser, ObjectGenericDAE, the user markers, the package exudyn.symbolics with SymbolicSystem, its own solvers and the export of the equations to C++.

  • The renderer: the icon bar, scopes, buttons and sliders, textures, a ruler, stored configurations, and a faster raytracer with soft shadows and glossy reflections.

  • Reproducible results: the portable math functions of exudyn.cMath give the same results on every platform.

Many of the changes below change results. Where a change concerns an item or function new in 1.14, it is not listed as a change: what is described is how the item works now.

What can break a script

FEM and solids

  • exudyn.FEM is a package (#3725) of the topic files FEMcore (the class FEMinterface), mesh, misc, importers, ngsolveInterface, CMS, FFRF and nonlinear; FEMinterface keeps all its methods, and from exudyn.FEM import ... works as before. A script that imported a file of the package by its path, rather than exudyn.FEM by its name, imports exudyn.FEM now.

  • exudyn.FEM without the old formats (#3721): the module needs SciPy and says so at the import; the NPY file format of NumPy 1.x is no longer read or written by SaveToFile and LoadFromFile of FEMinterface and ObjectFFRFreducedOrderInterface - NPZ is the default -, so an old .npy file is loaded with Exudyn 1.13 and NumPy 1.x and saved again as NPZ. Removed with the old internal sparse format of before 1.8.69: useOldCSRformat, CSRtoScipySparseCSR and ScipySparseCSRtoCSR (the matrices are SciPy CSR matrices; SparseTripletsToScipySparseCSR converts triplets), ConvertDenseToCompressedRowMatrix (scipy.sparse.csr_matrix), AddEntryToCompressedRowSparseArray, CSRtoRowsAndColumns (.shape), MapSparseMatrixIndices, and the checks scipyInstalled, WarnNumpy2, CheckForSciPyAndWarn, CheckForSciPyAndError, CheckForSciPyMatrix. The argument forceVersion of FEMinterface.LoadFromFile is ignored.

  • Internal names of exudyn.FEM removed (#3727), with what to use: VectorDiadicUnitMatrix3D (np.kron(v, np.eye(3)).T), CyclicCompareReversed, FileNameToMode, ConvertHexToTrigs and ConvertTetToTrigs (FEMinterface.VolumeToSurfaceElements, GetSurfaceTriangles), ResortIndicesOfCSRmatrix, ResortIndicesOfNGvector and ResortIndicesExudyn2NGvector (ImportMeshFromNGsolve sorts), PostProcessingModesToStorage and PostProcessingModesFromStorage (FEMinterface.SaveToFile, LoadFromFile), Tet4, FiniteElement and MaterialBaseClass (ComputePostProcessingModes; ObjectSolidTetrahedron, ObjectSolidFEM and the material items), and FEMinterface.CheckConsistency, which only printed. The default arguments of the functions of exudyn.FEM that were lists are tuples.

  • Tetrahedra from NGsolve (#3528): FEMinterface.ImportMeshFromNGsolve stores the elements as Tet4 (meshOrder=1) or Tet10 (meshOrder=2) in the node order of Abaqus C3D4 and C3D10, the corners positively oriented, and elementSets has one set per material of the mesh, named as the material; with meshOrder=2 the elements were the four corners as Tet4 before. VolumeToSurfaceElements gives outward triangles for tetrahedra of either orientation; those of Abaqus meshes pointed inward.

  • The surface of hexahedra points outward (#3758): FEMinterface.VolumeToSurfaceElements orients the triangles of Hex8 and Hex20 elements by the sign of the volume of each element, as for the tetrahedra; before, all triangles of a hexahedral mesh in the node order of Abaqus C3D8 and C3D20 pointed inward, and the renderer lit their back side.

  • The weights of Tet10 interfaces (#3730): FEMinterface.GetNodeWeightsFromSurfaceAreas takes the 6-node triangles of a quadratic mesh, a corner \(A/19\) and a mid node \(16A/57\) of each triangle, for every source of the mesh. Before, the mid nodes of an interface of CreateTetrahedralBlockMesh or of the Abaqus import had weight 0, and those of the NGsolve import \(A/4\) of each face from its split into 4 flat triangles. Models with RBE3 modes or with MarkerSuperElementRigid on a Tet10 interface change: a cantilever under an end moment by these weights rotates its end face as the beam to 0.2 percent instead of 5 percent.

  • The stresses of Tet10 meshes in reduced bodies (#3748): FEMinterface.ComputePostProcessingModes evaluates the strains of the quadratic shape functions at the ten nodes of each Tet10, averaged at the nodes, and computes all modes at once. Before, it took the corner tetrahedra: the mid nodes had zero stress and the variation within an element was lost - in a wall of one element, about half the stress. Stress and strain contours of Tet10 models of ObjectFFRFreducedOrder change; they agree now with those of ObjectSolidFEM on the same mesh.

  • ComputeHurtyCraigBamptonModes checks its weights (#3722): boundaryNodesWeights that do not fit boundaryNodesList raise a ValueError; the check never ran, and wrong weights failed later with an IndexError or gave wrong modes.

  • MarkerSuperElementRigid: the translation of localHT turns with the interface (#3621): it is a point fixed to the interface - a joint or a lever arm away from the weighted position of the mesh nodes; before, it was a shift in the frame of the superelement, which on ObjectSolidFEM stayed fixed in space. offset is deprecated (removed in 2031) and sets this translation; CreateFFRFReducedOrderObject takes superElementRigidMarkersLocalHTs only. Models with an offset on ObjectFFRFreducedOrder change by the elastic rotation of the interface times the offset.

  • MarkerSuperElementRigid: the rotation (#3451, #3606, #3611, #3613): the angular velocity and the rotation Jacobian are the rate of the rotation now, with the transposed tangent operator: the alternative approach is stable at large deformation of an interface, where it could gain energy and fail before; results of models with the marker in a joint change in second order of the marker rotation. The new parameter rotationMode chooses the rotation (see What is new to use); useAlternativeApproach (forwarding to rotationMode), rotationsExponentialMap and rotationMode = Standard are deprecated.

  • Superelement markers with weights that do not sum up to 1 (#3450): the position of such a MarkerSuperElementPosition follows the floating frame like that of MarkerSuperElementRigid; a changed weightingFactors takes effect without a new Assemble.

  • The markers on superelements depend on their mesh nodes only (#3532, #3614): a connector, joint or load on MarkerSuperElementPosition or MarkerSuperElementRigid - on ObjectSolidFEM, ObjectGenericODE2 and ObjectFFRF - is differentiated by the coordinates of the mesh nodes of the marker and of the reference frame only, and the marker Jacobians of mbs.ComputeItem have these columns; much faster, e.g. a torsional spring between two faces of 289 nodes takes 1.2 s per Jacobian instead of 88 s.

  • Joints on superelement markers along the Euler parameters (#3215): on ObjectFFRFreducedOrder and ObjectFFRF with an Euler parameter reference frame, the markers give the derivative along the Euler parameters, and the constraint Jacobian is the derivative of the equations also off the unit sphere, where the predictor of a time step puts the parameters; Newton converges differently.

  • Gravity on an ObjectFFRF (#3404): a LoadMassProportional on a MarkerBodyMass acts on all coordinates of the body as the loads of its mass matrix at the mesh nodes, with the deformed positions; before, only the coordinates of the reference frame got it, at a center of mass that was always computed as the origin. ObjectFFRFinterface.AddObjectFFRF applies its argument gravity this way and returns the load as loadGravity; before, the argument was ignored.

  • ObjectFFRF gives its mass matrix as sparse triplets (#3449) and computes its ODE2 Jacobian itself (#3447): the results are the same; sparseMassMatrix = False and numericalJacobian = True switch back. ObjectFFRFreducedOrder computes its Jacobian itself (#3212) and precomputes the modes of its markers (#2184); numericalJacobian = True and precomputeMarkerModes = False switch back.

Materials and sections

  • mbs.DeleteMaterial of a material in use (#3767): a material that an object uses is not deleted (a ValueError names the object), and the objects on the materials after the deleted one take their new numbers.

  • The section classes (#3736): BeamSection, BeamSectionGeometry and the new PlateSection take their members as keyword arguments, exu.BeamSection(stiffnessMatrix=C, massPerLength=m); GetDictionary returns the members - it returned an empty dict, and pickling lost the data -, SetDictionary raises for an unknown key, and the repr is the constructor call. They are documented on the page Structural element data of the Python-C++ interface instead of the structures pages; the members, their names and defaults are unchanged.

  • Section parameters of the cables, 2D beams and the plate default to None in the item classes (#3737), which stands for their former default; the dictionary of the item has the parameters, as before. A section (sectionData, see What is new to use) given together with a section parameter, two entries that must be equal and differ (the two bending stiffnesses of ObjectANCFCable) and a coupling of the entries used raise a ValueError.

Beams and plates

  • ObjectANCFBeam: gravity and inertia (#3664, #3665): its mass-weighted Jacobian, used by LoadMassProportional, put the whole weight on the last node - a free element under gravity turned; results of ObjectANCFBeam models with gravity change. The inertia of its cross section vectors comes from the second moments of the section, \(J_{yy}\), \(J_{zz}\), \(J_{yz}\) of BeamSection.inertia: before, only the sum of the two vectors had mass, weighted in global directions, so the mass matrix was singular and depended on the orientation; results of dynamic ObjectANCFBeam models change.

  • The frame of two slopes (#2228, #2992) - of NodePointSlope12 and NodePointSlope23, ObjectANCFBeam and ObjectANCFThinPlate - is their symmetric basis, exudyn.rigidBodyUtilities.SymmetricBasis: symmetric in the two slopes and independent of their lengths, with a consistent angular velocity and rotation Jacobian. Models with rigid markers on these items change slightly; ObjectANCFBeam measures its strains in the same frame, so a torque on its node no longer shears the cross section, and its results change slightly.

  • Damping of ObjectBeamGeometricallyExact (#3675): the diagonal of the damping matrix of its BeamSection damps the rates of its strains, Kelvin-Voigt; it was not used before, and a damping matrix with other entries is now rejected.

  • Rigid bodies and geometrically exact beams only on rigid-body nodes (#3649): ObjectRigidBody2D and ObjectBeamGeometricallyExact accepted nodes of slopes (NodePoint2DSlope1, NodePointSlope12, NodePointSlope23) and NodeUser and read a slope as the rotation; such a model is now refused at Assemble.

  • The weight of a curved ObjectANCFThinPlate (#3567): a mass-proportional load is its mass matrix times the translation of the load vector, so that the weight of curved elements and of a variable thickness is exact; before, it came from a coarser integration of the flat element, 6 % too small for a quarter hemisphere.

  • ShellMesh scales the slopes of each element edge so that the cubic edge follows the mapped surface - on a cylinder about a thousand times closer than with the chord lengths (#2226); results of mapped meshes change.

Sliding joints and curves

  • ObjectJointSliding2D and ObjectJointSliding without a force of the sliding coordinate (#3603, #3652): the increment of the sliding coordinate in the step, an algebraic coordinate of the joint, acted as a multiplier on the bodies - a force proportional to the step size, which accelerated a point sliding freely by 0.5 percent in 1 s with a step of 0.01 and gave wrong initial accelerations; on a moving cable, a moment proportional to the step size. Results with these joints change slightly. Both take the sliding coordinate in the equations and outputs as the value of the data node at the start of the step plus that change, also between a step and the next. Force of ObjectJointSliding2D with useClassicalFormulation=False is the global force on marker 0, the multiplier of the normal equation times the normal of the cable; before, it was \([0, \lambda_1, 0]\).

  • The equation of the sliding coordinate is no constraint for the solver (#3653), for the sliding joints and ObjectJointCurve: the initial accelerations take the axial force, which acted only from the first step on, and the check of the initial conditions no longer reports it.

  • ObjectJointSliding and MarkerBodyBeamShape are deprecated (#3693, #3694): they warn when added and are removed in 1.15; ObjectJointCurve on one MarkerBeamCurve over the chain of beam elements replaces them - no list of markers and offsets, the data node [segment, s] with segment = -1 for the one that contains s. ANCFslidingJoint.py and NGsolveFFRFSlidingJoint.py use it. The curve is a C2 B-spline of the nodes, not the shape of the elements: under a concentrated load on a very flexible beam the results differ, e.g. by 0.7 % of the sliding coordinate in ANCFslidingJoint.py with 48 elements, and by less with more elements; MarkerBeamCurve with elementShape=True gives the results of ObjectJointSliding to round-off (#3700).

  • The one-time warnings of the sliding joints, of ObjectJointALEMoving2D and of ObjectContactCurveCircles are printed once per event name and counted in exudyn.diagnostics; that of ObjectContactConvexRoll is counted only (#3638).

Contact

  • ObjectContactCurveCircles has a new contact model (#3634, #3625, #3635): the segments are straight, cubic or quintic (polynomialData with 0, 2 or 4 columns, used by the contact), and the penetration, radial to the circle, is integrated along the parts of the curve inside the circle (contactModel = 1, the default) or taken at the deepest point of each contact region (contactModel = 2), so that conformal contacts, joints and corners of segments and several contacts of a circle give smooth forces; contactModel = 0 is deprecated and computed as 1. The data node holds the contact regions, 2 values for each of maximumContactRegions (2) per circle, initialized with -1 - a node of the earlier size, 3 per segment, is refused with the size it must have. Friction gives a torque on the circle body. The output variables are per circle (ForceLocal, DisplacementLocal, VelocityLocal), and Force and Torque give the load on the curve body. Each circle gets the generalized forces of its own marker, also at an offset or on bodies of different kinds; the analytic Jacobian converges at the default tolerances also for circles at rest. Results of models with the item change.

  • The output Torque of the sphere contacts has the sign of the torque on marker 0 (#3328): ObjectContactSphereSphere, SphereTriangle, SphereTorus and SphereCylinder gave the negative of the friction torque on marker 0 that their output Force goes with. The simulation was not affected; sensors of this output change their sign.

  • Data nodes with the bristle: the elastic bristle of the sliding friction (frictionStiffness, see What is new to use) needs 8 data coordinates instead of 4 in ObjectContactSphereTriangle and ObjectContactSphereTorus (#3560, #3547); CreateSphereTriangleContact sizes the data node.

  • ObjectContactSphereTorus: a sphere outside the plane of the torus gets its contact by the projection of its center into that plane along the axis of the torus; before, the projection shifted every coordinate by the distance to the plane (#3595).

  • ObjectContactCircleCable2D on a moving circle (#3685): the force on the circle no longer counts the share of a neighbouring segment twice; results change where the circle is on a moving body and two neighbouring segments are in contact.

  • The viscous rolling friction of ObjectConnectorRollingDiscPenalty (#926) acts against the velocity of the trail for any orientation of the disc axis; it used the velocity of the center of the disc, which is the same only for an axis parallel to the plane. On a moving ground body, the moment of this force is applied as well.

  • The analytic Jacobian of ObjectConnectorCoordinateSpringDamperExt ignored factor0 and factor1 (#3204).

  • ObjectContactConvexRoll recommends the step to a switch of the contact from the rate of the gap and no longer prints a line at each switch (#3642).

  • Items report the type under which they are added again (#3325, #3502): mbs.GetObject(i)['objectType'] of ObjectContactSphereTriangle and ObjectContactSphereTorus gave ContactSphereSphere, so that the dictionary added again created a sphere-sphere contact; that of ObjectANCFBeam, ObjectBeamGeometricallyExact and ObjectConnectorHydraulicActuatorSimple was a name no factory knows, and mbs.GetMarker(i)['markerType'] of MarkerBodiesRelativeRotationCoordinate was BodiesRelativeTranslationCoordinate; they are now ANCFBeam, BeamGeometricallyExact, ConnectorHydraulicActuatorSimple and BodiesRelativeRotationCoordinate.

  • impactModel of the contact items and of the Create functions is read back as the enumeration exu.ContactImpactModel (Linear, HuntCrossley, GonthierCarvalhoMartins); the integers 0, 1 and 2 are still accepted (#3327).

  • The settings of the contact shapes are visualizationSettings.contact.show.spheres, .triangles, .tori, .cylinders, .cones and the same members of contact.color; contact.showSpheres, showTriangles, showTori, colorSpheres, colorTriangles and colorTori still work and warn that they are deprecated (#3340). Contact shapes are transparent by default, the colors of contact.color with the alpha value 0.8, so that the contact forces inside them are visible; this changes the look of existing models with contact shapes (#3376).

Joints and constraints

  • The static solver and the reaction forces (#3552, #3553, #3562): SolveStatic gives the Lagrange multipliers, and so the output Force of the constraints and joints, with the sign of the dynamic solvers; before, they had the opposite sign after a static solve. A script that reads a reaction force after SolveStatic sees the opposite sign now. The Jacobian of the static solver contains the derivative of the reaction forces with the sign of its residual. CoordinateConstraint and CoordinateVectorConstraint give \(\lambda\), the generalized force on marker 0; the force on marker 1 is \(-k_{m1}\lambda\). The ODE2 rows of the residual and the Jacobian of the static solver, as MainSolverStatic gives them, have the signs of the time integration: \(\Km\qv - \fv + \Cm_{\qv}\tp\tlambda\) and the tangent stiffness \(\Km\).

  • The reaction torques of the 3D joints (#3581, #3587, #3583): TorqueLocal of ObjectJointGeneric, ObjectJointRevoluteZ, ObjectJointPrismaticX and ObjectJointHelicalZ is the torque of the joint on marker 0 in the joint frame \(J0\), as ForceLocal is the force. Before, it copied the multipliers of the rotation equations: the components about \(y\) and \(z\) had the opposite sign, and for the revolute joints the components about \(x\) and \(y\) were exchanged. A value \(\tv_{old}\) recorded before converts to \((t_{old,x},\, -t_{old,y},\, -t_{old,z})\), for ObjectJointRevoluteZ and a ObjectJointGeneric with a free rotation about \(z\) to \((t_{old,y},\, -t_{old,x},\, 0)\), at a deflected joint only approximately. ObjectJointPrismatic2D gives its torque as Torque. The descriptions of all constraints and joints say which marker and frame their reaction outputs refer to: the force on marker 0, except the force on the disc of ObjectJointRollingDisc (#3558).

  • ObjectJointGeneric refuses alternativeConstraints=True (#3582), whose equations have a singular Jacobian at the solution. The joints compute their equations on the relative frame of their joint frames (#2884), with the same results.

  • The forces and torques per link of a kinematic tree act as documented (#3510, #3509): linkForces and linkTorques of ObjectKinematicTree acted in the opposite direction, and a force at the origin of a link gave a moment about the global origin; a force now acts at the origin of its link, with the result of a LoadForceVector on a MarkerKinematicTreeRigid there. mbs.CreateKinematicTree passes its arguments linkForces, linkTorques and forceUserFunction to the tree, which it left out. A tree with link forces has no potential energy.

  • The velocity of a link of a kinematic tree on a floating base (#3514) - of MarkerKinematicTreeRigid and of the output Velocity - is the Jacobian of the link point times the velocities, also when the Euler parameters of the base are off the unit norm, as in the stages of the explicit solvers.

  • The reeving system (ObjectConnectorReevingSystemSprings) computes the rope between two sheaves with axes that are not parallel correctly; the tangent points were wrong for such sheaves (#3412).

  • The local Jacobians of the connectors and joints on rigid bodies with Euler parameters contain the derivative along the Euler parameters (#3201): they are the exact derivatives of the residual, and models with Euler parameters need fewer or, in some, more Newton iterations.

Solvers

  • The initial accelerations (#3289, #303, #574): the term of the initial velocities, the second derivative of the constraints along the motion, is a central difference along the motion - the rotation of a Lie group node by the composition with its angular velocity, the constraint Jacobian of Euler parameters with its part along the parameters; with initial velocities it was wrong for both, on the spatial slider crank by up to a quarter of the accelerations. The term \(\Cm_{\qv} \vv\) of a velocity-level constraint (a rolling disc, a CoordinateConstraint with velocityLevel) was left out, and so were the derivatives by the time, e.g. of an offsetUserFunction: a prescribed motion that starts from rest got no initial acceleration. Both come now from the residuals of the constraints by central differences along the motion and in time; the user functions of the constraints are therefore also evaluated up to two steps of 1e-3 of the simulated time, at most 2e-3, before the start time. Models with initial velocities and constraints change, by 1e-9 relative with other nodes, by 1e-7 on the spatial slider crank with Lie group nodes; rolling discs and coins with initial velocities by up to 5e-3 relative, a GenericJoint with an offset user function by 2e-11.

  • ODE1 coordinates keep the order 2 in the generalized-alpha solver (#3258): the trapezoidal rule of the ODE1 coordinates started from zero derivatives, so the first step lost h/2 times their right-hand side. They start now from their derivatives at the initial state, in MainSolverImplicitSecondOrder and in exudyn.symbolics.solvers.SolveGeneralizedAlpha; models with ODE1 coordinates (ObjectGenericODE1, ObjectGenericDAE, symbolic systems) change, by up to a few percent in short simulations of a lag.

  • The modified Newton method keeps the ODE1 coordinates when it restarts a step (#3300): a restart after bad contractivity took the derivatives of the ODE1 coordinates of the rejected iteration, an error of about h^2 per restart. Models with ODE1 coordinates and useModifiedNewton = True (the default) whose Newton iteration restarts change.

  • The modified Newton method after a contact switches (#3574): when a contact, friction or another switching connector reports a change of its state in the discontinuous iteration, the Jacobian is updated for the next iteration; before, the flag was read by no solver. On the contact test models this saves 5 % of the Newton iterations and 12 % of the time; the results of contact models change within the tolerances of the iterations, a bouncing impact model by its sensitivity to the step size. discontinuous.updateJacobianAfterSwitch = False keeps the old behaviour.

  • The step after a reduction of the step size (#3717): the implicit time integration restarts a rejected step from the algorithmic accelerations of the start of the step and with a new Jacobian; before, it started from those that the rejected step had changed and, with modified Newton, from the Jacobian of its last iteration. Results of models whose steps are reduced change slightly, and they no longer depend on the round-off of a run with several threads.

  • The Newton iteration accepts a stagnation at the round-off level (#3643): a step whose residual cannot be reduced any more because the Newton increment is below the resolution of the coordinates - a body at rest on stiff contacts, whose residual stays at about \(10^{-10}\) - counts as converged instead of reducing the step to the minimum (newton.roundOffFactor, newton.stagnationContraction, the event newtonRoundOff of exudyn.diagnostics). Results of models that stagnated in some steps change slightly; roundOffFactor = 0 gives the former behaviour.

  • A contact switching at the start of a step (#3755), closer to it than timeIntegration.minimumStepSize, no longer stops the implicit solver: the state switches in a step of the minimum step size.

  • The dynamic solvers write at the exact write times (#3286): the solution file and the sensors are written at the multiples of solution.file.writePeriod and solution.sensors.writePeriod and at the end. A write time within a step takes the state interpolated between the start and the end of the step - the ODE2 coordinates by the cubic Hermite polynomial of the coordinates and velocities, the velocities by its derivative, the accelerations, ODE1 and algebraic coordinates linear, the data coordinates of the end of the step, the rotation of a Lie group node by the cubic Hermite polynomial in the Lie algebra relative to the start of the step (#3389). A write period that is a multiple of the step gives the rows as before; a period smaller than the step gives a row per period instead of one per step, and the automatic step sizes of DOPRI5 and ODE23 give rows at the multiples. A period of 0 writes every step.

  • Explicit solvers with eliminated coordinates (#3240, #3639, #3645, #3644): the coordinates of CoordinateConstraints to the ground are fixed in every stage of the Runge-Kutta methods, not only at the end of the step, to the value of their equation (offset, factor and user function) instead of 0; RK44 and DOPRI5 keep their order with them - RK44 was of order 1. Such a coordinate has its row and column of the mass matrix replaced by those of the unit matrix; before, the full mass matrix was solved and the acceleration set to 0 afterwards, which gave wrong accelerations where the mass matrix couples it with free coordinates - an ANCFCable2D cantilever clamped by constraints deflected 3 to 7 % less than with the implicit solvers. A coordinate prescribed by offsetUserFunction_t gets its acceleration, by a difference in time, and its inertia acts on the free coordinates coupled with it. The reaction force of an eliminated CoordinateConstraint is computed; before, its Force was 0. Results of such models with the explicit solvers change; a CoordinateConstraint with velocityLevel=True raises with eliminateConstraints.

  • The automatic step size of ODE23 and DOPRI5 (#3245, #3640, #3641): the error of a coordinate is scaled by absoluteTolerance + relativeTolerance*max(|q_new|, |q_start|) - before, without the absolute values, a negative coordinate made the scale small, zero or negative and the steps too small -, and the step sizes come from the PI controller of the implicit Runge-Kutta solvers instead of the elementary rule, see Explicit solvers. A step whose error estimate is nan or infinite is repeated with a tenth of the step, and a stage whose coordinates are no longer finite rejects the step, instead of a nan solution or a stop with a singular mass matrix. The steps and results of these solvers change slightly; on the test models the errors became smaller.

  • The composition of rotation vectors keeps small rotations (#3288): EXUlie::CompositionRotationVector and lieGroupBasics.CompositionRuleForRotationVectors take the composed angle from the vector part of the quaternion product: a rotation increment below about 1e-8 rad was rounded to zero. Simulations with Lie group nodes (NodeRigidBodyRotVecLG) change at the level of rounding; models with contact and friction, which amplify it, by up to 1e-4 relative.

  • Numerical differentiation (#3205, #3206): newton.numericalDifferentiation.forAE, forODE2 and forODE2Connectors are deprecated and have no effect - each object provides its Jacobian, analytic, automatic or numerical by its own coordinates; a model that set one of them may need a few Newton iterations more or fewer. doSystemWideDifferentiation computes the whole Jacobian numerically, the algebraic equations included, with the factors of the solver for the reaction forces.

  • Multithreading (#3494, #3500): a model with too few items in every list runs serially, whatever parallel.numberOfThreads is, and parallel.multithreadedLowerLimitResiduals is 10 instead of 20. The threads run each on a physical core of their own (exu.special.solver.multithreading.pinThreadsToCores, True by default; set it False if several processes compute with threads at the same time). Results of implicit solvers with bodies whose mass matrix changes differ in the last bits, as the sums are taken in another order; sensitive models, such as contacts, may differ more. exu.special.solver.multiThreadingLoadBalancing is deprecated: every solve sets it from simulationSettings.parallel.useLoadBalancing (#3627).

  • Reproducible results on every platform (#2954, #2959, #2963): the C++ code computes sin, exp, atan2, … with its own portable functions instead of those of the platform’s library; models with contact or friction change slightly against 1.13.

  • Multithreading with user functions (#3093): an object with a user function at the start of the list was computed in the threads and once more in the main thread, and the last objects were left out - a wrong result with a symbolic user function, a hang with a Python one. Fixed.

  • CTRL-C stops a simulation cleanly (#3628), in a console and with the interrupt of Spyder’s kernel: the solver finishes the current step, closes its files and prints SIMULATION STOPPED BY USER (CTRL-C); a running Python user function completes. With exu.special.solver.throwErrorWithCtrlC = False (the default) the solve returns normally, with True it raises KeyboardInterrupt; a second CTRL-C raises KeyboardInterrupt at once. Before, the simulation ended with a SystemError or a ModelError and the message SOLVER FAILED, for both values of the flag.

  • The exception of a failed SolveDynamic or SolveStatic carries the whole message, and nothing is printed (#1977).

  • The header of a text solution file counts the ODE1 velocities by solution.file.export.ODE1Velocities, as the rows are written; before, by export.velocities, and a file with only one of the two could not be read (#3712).

  • SolveImplicitRungeKutta(method='LobattoIIIC4GGL') of exudyn.symbolics.advancedSolvers has the name of the C++ solver; the name 'LobattoIIIC4-GGL', which no release had, is gone (#3765).

Robotics

  • The tool frame of RobotTool is relative to the frame of the last link, in LinkHT, the inverse kinematics and the graphics of the kinematic tree (#3255).

  • The robot models (#3255, #3277, #3279, #3371, #3373, #3374, #3375): ManipulatorUR5 and ManipulatorFrankaEmikaPanda are by default in the joint frames of the URDF, with simple collision shapes; the former models with useDH=True. ManipulatorFrankaEmikaPanda replaces ManipulatorPANDA (deprecated), with the kinematics and the hand of the Robotics Toolbox. The inertias of ManipulatorPuma560 are physical, see its docstring, and its joint limits are those of the Robotics Toolbox 1.5. ManipulatorStaubliTX2_90L: 0.4 kg of its link 5 moved to link 6, the total mass unchanged. Manipulator4Rsimple is removed.

  • Removed: exudyn.robotics.future - ComputeIK3R, ComputeIKPuma560 and ComputeIKUR are InverseKinematicsAnalytic of KinematicChain and Robot (#3260); Robot.BuildFromDictionary, deprecated (#3266).

  • The URDF import is exudyn.robotics.urdfImport (#3256, #3280): LoadURDFrobot, GetURDFrobotData, GetRoboticsToolboxInternalModel, MakeCorkeRobot; the names in robotics.utilities are deprecated. It works with the Robotics Toolbox 1.5; GetURDFrobotData adds the links without joint (fixed joints) to the joint link above them, with their graphics and their mass, and its argument urdf is no longer used. The URDF import draws the boxes, cylinders and spheres of the visual elements, which were left out, returns the names of the links fixed to the base in baseLinkNames, and reads a child before its parent in the file after it (#3393).

  • The redundant coordinate model (#3270, #3386): CreateRedundantCoordinateMBS measures each joint coordinate by a relative coordinate marker; its torsional spring-dampers act about the joint axis also for 'Rx' and 'Ry', and its first joint takes the translation of preHT. Its joint torque loads are deprecated: createJointTorqueLoads and jointLoadUserFunctionList are removed on 2027-01-01, use Robot.SetControl; the function creates no such loads any more unless they are given.

  • The class InverseKinematicsNumerical of exudyn.robotics is deprecated and calls Robot.InverseKinematicsNumerical (#3269).

  • Trajectory.Add raises if a profile starts at other coordinates than the trajectory ends, by more than jumpTolerance (#3272).

  • A Robot created without base or tool, and a RobotBase or RobotTool without visualization, gets its own: before, all of them shared one object, so that the tool graphics of one robot appeared on every other robot (#3268).

Graphics and renderer

  • STL files keep their orientation (#3275): STL files and Exudyn both have the corners of a triangle counterclockwise seen from outside and the normals outward. graphics.FromSTLfile, FromSTLfileASCII, ExportSTL and urdfImport.LoadURDFgraphics therefore no longer invert the triangles and normals by default (invertTriangles=False, invertNormals=False); a script that passed nothing and relied on the inversion passes invertTriangles=True, invertNormals=True.

  • graphics.FromSTLfile reads with numpy (#3264, #3536); useNumpySTL=True reads the file with numpy-stl as before, and numpy-stl is in the extra [all] instead of [common].

  • graphics.CheckerBoard is one quad of two triangles with a texture of its two colors (#3036), drawn as before; useTexture=False gives the triangles of the pattern, as needed for a contact mesh made from it with graphics.ToPointsAndTrigs; colors that encode a material give the triangles as well.

  • graphics.SolidOfRevolution sets nTiles < 2 to 2 and draws at least two curved elements around (#3716).

  • Not-a-number is refused in every type of graphics data, and an error in graphics data names the item and the entry of the list (#2304, #2305).

  • The visualization of an item is given as its V class or as a dictionary with only the parameters that differ from the defaults; a parameter the item does not have raises a ValueError instead of being ignored. item.visualization is always the V class (#2342).

  • The raytracer (#3445, #3469, #3470, #3471, #3472, #3617): raytracer.lightRadiusVariations is 12 (was 1, hard shadows), so it shows soft shadows by default; raytracer.numberOfThreads = 0, the new default, selects the number of logical processors; exportImages.saveImageTimeOut is 30000 ms (was 5000). The shadow is precomputed at reduced resolution only if a light has a lightRadius, so without one the hard shadow is computed at full resolution instead of being blurred; transparent objects let light through in proportion to their transparency, a directional light casts soft shadows with lightRadius as its angular radius in radians, and the shadow ray starts at a distance relative to the scene size. Images with shadows change slightly.

  • Contour colors (#3539, #3540, #3541, #3591): the raytracer interpolates the contour value inside a triangle and then takes its color from the color bar, the 6-node triangles quadratically; OpenGL interpolates the colors of the vertices as before, and SC.renderer.GetGraphicsData() returns these colors. The 6-node triangles and quadratic lines with a contour color are split at least openGL.advanced.curvedTriangleContourMinTiling times per edge (default 4); 1 splits them by their curvature only. A value at the end of the range is no longer drawn in the color outside the range. The automatic contour range of a nearly constant field is at least contour.advanced.minimumRelativeRange (default 1e-4) times the larger of the absolute minimum and maximum, so it is drawn in the color of the middle of the color bar; 0 switches it off.

  • Drawn differently: CoordinateConstraint with circles of a twentieth of connectors.defaultSize (5 mm by default) and none at a ground node (#3707); nodes.showNodalSlopes draws the slope vectors with nodes.basisSize times their length in the colors of their axes, and nodes.showBasis the frame of the slopes of NodePoint2DSlope1, NodePointSlope12 and NodePointSlope23 - NodePointSlope12 drew its slopes in the frame of NodePointSlope23, NodePointSlope1 always along \(x\) (#3678); a Circular beam section as a circle or an ellipse of its two radii instead of a line (#3735); bodies.deformationScaleFactor scales the displacements of the ANCF cables, of ObjectANCFBeam, of the geometrically exact beams and of ObjectANCFThinPlate as well, the 3D beam sections turn with the scaled rotation, the height of the 2D beams with the scaled angle (#3676, #3704, #3756); the cylinders of contact items, connectors, the hydraulic actuator and the rolling disc, and the arrows and axes of frames, show their outside - they were wound inward (#3330).

  • The icon bar has a second layer (#3592, #3593): the icons of the four views and of lines, edges, faces, transparency and shadow are two icons, View and Display, each opening a row of its choices; see Icon bar.

  • Fixes of the renderer: SC.renderer.RedrawAndGetImage(useRaytracer=True), GetGraphicsData, ZoomAll and ZoomToItem drew the current state also after SetSolutionState(..., exu.ConfigurationType.Visualization); a state written into the Visualization configuration is now drawn until the current state is written, a solver runs or the system is assembled (#3661). SC.renderer.Start() copies the current state to the visualization state, so that a renderer started after a solve shows it; SC.renderer.Start() and mbs.SolutionViewer() attach the renderer to SC again if a SystemContainer created later took it (#3584). OpenGL draws the faces with view0.window.showComputationInfo = False and view0.scene.drawCoordinateSystem = 0 (#3543).

  • Make mp4 of the SolutionViewer opens on the directory and the file pattern of the images that ‘Record frames’ writes; ConvertImages2Video raises a FileNotFoundError if the first image is missing and a RuntimeError if ffmpeg fails, instead of printing an error, and returns the path of the video (#3403).

Symbolic and user functions

  • Python user functions get numpy arrays (#3008, #3011): a vector or matrix argument - q, q_t of ObjectGenericODE2, the factors of SensorUserFunction, the load vector of a load, displacement, stiffness and offset of a spring-damper - is a read-only numpy array that views the memory of Exudyn, valid during the call, instead of a list; a function computing with single items, u[0], is slower than before, one in vectorized form faster; -k*q and K @ q work without np.array(q). A function that writes into its arguments, adds lists to them or keeps them for the next call has to copy them; exudyn.special.deprecations.userFunctionListArguments = True gives the lists for the transition, see User functions.

  • The operators of exudyn.symbolic are those of numpy (#3015, #3016): * of two symbolic vectors, of two matrices and of a matrix and a vector raises a TypeError, because numpy multiplies the components - write a @ b or a.dot(b) for the scalar and matrix products and a.multiply(b) or np.multiply(a, b) for the product of the components; exudyn.special.deprecations.symbolicStarProduct = True restores the old meaning for the transition. == of two symbolic vectors raises a TypeError as well. The expression of a product prints as @.

  • What raises while recording: a symbolic expression or named variable converted to float - math.sin(x), float(x), np.array([x], dtype=float) recorded a constant without a message (#3017); a Python if, and, or or not on a symbolic value - Python took every symbolic value as true, so a recorded function silently took the first branch; a decision at each call is exudyn.symbolic.IfThenElse(condition, a, b), a decision at recording x.Evaluate() (#3096); every attribute of mbs other than the output functions (#2984); SetValue of a named variable while CreateSymbolicUserFunction records (#3090). Evaluate() and Diff() of an expression deeper than 10000 operations raise a ValueError instead of crashing (#3090).

  • Symbolic user functions read other items (#2984): mbs.GetNodeOutput, GetObjectOutput, GetObjectOutputBody, GetMarkerOutput and GetSensorValues in a recorded function are read by C++ at every call; they were constants of the recording.

  • Named symbolic variables have a scope (#3208, #3231): esym.Real(name, value, scope=mbs) gives the variable of that name in mbs.symbolicVariables - a new one, or the one there with the value set -, and without scope the one of esym.variables; a symbolic user function reads only its arguments and the variables of mbs.symbolicVariables, which mbs.Reset() empties and GetDictionary keeps. Scripts whose user functions read esym.variables create these variables with scope=mbs.

  • The derivative Diff of atan2 had the wrong sign (#3076).

  • ObjectGenericODE1 without rhsUserFunction gives the Jacobian of its right-hand side analytically, and solver.ComputeJacobianODE1RHS adds the ODE1 Jacobian to the system Jacobian, which it did not do before (#3167).

  • CreateSymbolicUserFunction optimizes by default (optimize=True, #3085), with the same results; a symbolic user function written for clarity runs about twice as fast.

Python library

  • Library errors raise (#3716): the functions of the Python library that printed an ERROR and continued raise a ValueError where the result would be wrong - SetSolutionState with a row out of range, SolutionViewer and AnimateSolution with an illegal run mode or rowIncrement < 1, RigidBodyInertia.Rotated with a center of mass not at the origin, FEMinterface.AddElasticSupportAtNode and AddNodeMass with several node types, ImportMeshFromNGsolve with elements other than tetrahedra, ReadNodesFromAbaqusInp with a malformed file, the robot Jacobians with more transformations than links - and warn through exudyn.diagnostics.Warn otherwise (an empty solution, the dialogs). RigidBodyInertia warns once about the triangle inequality; robotics.mobile.Generatrix2Polynomial warns when the fitted roll is not convex, which it reported for the opposite case.

  • Warnings are printed and counted by exudyn.diagnostics (#3711): every warning of the C++ core and of the Python library is printed for the first 10 of each class, as Python WARNING [file, line] (class): message; exudyn.config.suppressWarnings stops the printing of all warnings, events and deprecations. The category solver prints each of its events once (it counted them only), and the warnings of the library that were printed with print reach the log file.

  • The counters of 1.13 moved into exudyn.diagnostics (#3638): exu.sys['deprecationUse'] is replaced by exu.diagnostics.deprecation.counts, keyed 'source.name'; exu.special.solver.initialConstraintsViolations by exu.diagnostics.solver.counts['initialConstraintsViolations']; exu.special.deprecations.recordUse is removed, as the uses are always counted.

  • exudyn.HT has one way for each operation (#3181): SetTranslation(p), RotateVector(v), RotateVectorTransposed(v), SetIdentity(), Get() and Invert() are removed; write H.translation = p or exu.HT(translation=p), H.rotation @ v, H.rotation.T @ v, exu.HT(), (H.rotation, H.translation) and H = H.Inverse(). H.rotation, H.translation, twist.velocity and twist.angularVelocity are read-only numpy views of the object: they follow its later changes, and writing into them raises; np.array(H.translation) copies (#3184).

  • exudyn.rigidBodyUtilities computes in C++ through exudyn.cUtilities (#2960, #2961, #3073): ComputeOrthonormalBasisVectors and GramSchmidt return a 3x3 array of the vectors as rows (unpacked as before), a wrong size or a singular input raises a ValueError, and RotationVector2RotationMatrix of a rotation vector longer than 2 pi rotates by its length - the angle was reduced by 2 pi without the vector, which gave no rotation matrix.

  • The functions of a whole system moved to exudyn.systemUtilities (#2997, #3004): SystemEnergy, LoadPotentialEnergy and NumericalJacobian are no longer in exudyn.advancedUtilities; SystemEnergy.ComputeSystemEnergies() is Compute(), CreateLoadEnergySensor(mbs, load) is SystemEnergy(mbs, items=[load]).AddSensor(components=['loads']). NumericalJacobian takes systemCoordinates, velocityLevel and epsilon = 1e-8. from exudyn.utilities import * includes the module, and with it DrawSystemGraph again.

  • The lists of vectors and matrices are Python sequences (#3512): a for loop over a Vector2DList, Vector3DList or Vector6DList stops at its end and an index out of range raises IndexError, as for the matrix lists; before, both ended in an InternalError.

  • The reference pages of the Python utilities leave out the functions, classes and methods whose names start with an underscore: they are internal and may change without notice (#3224).

Tools

  • The fast module refuses what the regular one refuses (#3293, #3295): checks of the input to exudyn.symbolic and the calls of mbs.GetNodeOutput and alike on a system that is not assembled were compiled out of exudynCPPfast, which then crashed or computed with wrong sizes; they raise in both modules. The fast module keeps every check whose error a user can cause - a wrong size, index or parameter - and leaves out only the checks of Exudyn’s own invariants and the range checks of its vectors and matrices. A pickle that names exudyn.exudynCPP, as a stored FEM mesh may, loads with the fast module.

Deprecations

Each warns once per session at the line of the script and is counted in exudyn.diagnostics.deprecation; the complete list, with those of earlier releases, is Deprecations.

deprecated

instead

removed

ObjectJointSliding, MarkerBodyBeamShape (#3693, #3694)

ObjectJointCurve on a MarkerBeamCurve over the chain of beam elements

1.15

CreateRedundantCoordinateMBS(createJointTorqueLoads, jointLoadUserFunctionList) (#3386)

Robot.SetControl

2027

robotics.models.ManipulatorPANDA (#3255)

ManipulatorFrankaEmikaPanda

2029

the class robotics.InverseKinematicsNumerical (#3269)

Robot.InverseKinematicsNumerical, KinematicChain.InverseKinematicsNumerical

2029

robotics.utilities.LoadURDFrobot, GetURDFrobotData, GetRoboticsToolboxInternalModel (#3256)

the same names in robotics.urdfImport

2029

exudyn.special.deprecations.symbolicStarProduct (#3016)

dot() or @ for the products, multiply() for the product of the components

2029

exudyn.special.deprecations.userFunctionListArguments (#3008)

the read-only numpy arrays of the arguments; copy one to change it

2031

MarkerSuperElementRigid.offset (#3621)

localHT, e.g. localHT=HTtranslate(offset); its translation turns with the interface

2031

MarkerSuperElementRigid.useAlternativeApproach, rotationsExponentialMap (#3613)

rotationMode; leave rotationsExponentialMap out

2031

MarkerSuperElementRigid.rotationMode = Standard (#3768)

rotationMode = Alternative, or BestFit for large rotations of the interface

2029

ObjectContactCurveCircles.contactModel = 0 (#3634)

contactModel = 1, the integral model, as which 0 is computed, or 2, the point model

2031

newton.numericalDifferentiation.forAE, forODE2, forODE2Connectors (#3205)

nothing: they have no effect

2031

visualizationSettings.contact.showSpheres, showTriangles, showTori, colorSpheres, colorTriangles, colorTori (#3340)

contact.show.spheres, …, contact.color.spheres, …

2031

exudyn.special.solver.multiThreadingLoadBalancing (#3627)

simulationSettings.parallel.useLoadBalancing

2031

localPosition of MarkerBodyRigid and MarkerKinematicTreeRigid is documented as deprecated in favour of localHT of the rigid body markers; it works as before and gives no warning yet (#3179).

What is new to use

Nonlinear solid elements

Solid tetrahedra on material items (#3529, #3531, #3532, #3544, #3618): ObjectSolidTetrahedron is a geometrically nonlinear solid element with 4 or 10 NodePoint nodes (TET4, TET10), and ObjectSolidFEM a mesh of such elements as one object, for large meshes: the elements as rows of mesh node numbers, the mass as sparse triplets, the work split into tasks of elementsPerTask elements that run on all threads together with the other items.

  • Analytic Jacobian, consistent or lumped mass, linearKinematics, meanDilatation against the locking of nearly incompressible materials; activeElement=False for a single element that only reads its nodes - a view of the stress at a point.

  • MarkerSuperElementPosition, MarkerSuperElementRigid, MarkerBodyMass and LoadMassProportional act on the mesh. The output variables Strain and Stress give the Euler-Almansi strain and the Cauchy stress, StrainLocal and StressLocal the Green-Lagrange strain and the second Piola-Kirchhoff stress, averaged at the mesh nodes for sensors and contours; StrainPlasticLocal, Temperature, HistoryLocal, and the equivalent strain as contour with component -1 (#3575, #3586, #3690); mbs.GetObjectOutputIntegrationPoints gives positions, strains and stresses at the integration points.

  • exudyn.FEM.nonlinear.CreateSolidFEM(mbs, fem, material) adds a mesh of a FEMinterface with its data nodes, FEMinterface.CreateTetrahedralBlockMesh makes the mesh of a block without a mesher, and CreateSolidTetrahedraFromFEM adds single tetrahedra on elements of a mesh.

  • History at the integration points (#3545, #3550, #3551, #3596, #3598): the plastic strains of LawPlasticityJ2, the viscous strains of LawViscoelasticMaxwell and the history of a user law are kept in NodeGenericData (dataNodeNumber, dataNodeNumbers per element of the mesh); the outputs at a node are the linear fields through the integration points of each element, averaged over the elements of the node.

  • Temperatures (#3533): prescribed nodal temperatures, temperature, with the LawThermalExpansion of the material; the elastic part of the deformation gives the stress.

  • Initial stress (#3597): initialStress, an initial second Piola-Kirchhoff stress per integration point, added to the stress of the law - in the forces, the geometric stiffness (the stress stiffening of a prestressed part), the energy, the trial stress of plasticity and the outputs; exudyn.FEM.nonlinear.InitialStressFromFunction evaluates a field at the points.

  • Surface pressure (#3559, #3599): pressureFaces, pressures and followerPressure, as a dead load on the reference faces or a follower load with its stiffness in the Jacobian; FEMinterface.GetSolidElementFaces gives the faces in a list of nodes, e.g. of a plane.

  • Distributed loads (#3600): LoadDistributed is a load of a field of the position and the velocity - an acceleration, the centrifugal field of a rotation, or a Python or symbolic loadUserFunction -, integrated at the points of the mass rule of MarkerBodyMass, ObjectSolidTetrahedron and ObjectSolidFEM, with its derivatives in the Jacobian (the spin softening of a rotor).

Theory: Nonlinear solid elements, the history in The history at the integration points, the single element and the mesh in The single element and the mesh. Examples: solidFEMCantilever.py, solidFEMPlasticClip.py, flexBodyDemoPlasticCantilever.py; test models solidFEMTest.py, solidTetrahedronTest.py, solidPlasticityJ2Test.py, solidViscoelasticMaxwellTest.py, solidThermalExpansionTest.py, solidInitialStressTest.py, solidFEMPressureTest.py, loadDistributedTest.py. Important to know: a large mesh belongs into one ObjectSolidFEM, not into single tetrahedra; a load or joint on a superelement marker is differentiated by the nodes of the marker only.

Materials and sections

Materials as items (#3522): mbs.AddMaterial adds a material - its type named by its solid law, MaterialSolidBasic (St. Venant-Kirchhoff), MaterialSolidNeoHooke or MaterialSolidMooneyRivlin, with the density -, referred to by a MaterialIndex; GetMaterial, ModifyMaterial, GetMaterialParameter, SetMaterialParameter (by a path, 'damping.beta'), GetMaterialDefaults, GetMaterialNumber, DeleteMaterial and GetMaterialHistorySize (#3709) work as for the other items, and a pickled system keeps its materials. The groups of a material are its laws: LawDampingRayleigh, LawPlasticityJ2 (J2 plasticity with linear isotropic hardening, yieldStress, hardeningModulus), LawViscoelasticMaxwell (generalized Maxwell branches, shearModuli, relaxationTimes) and LawThermalExpansion.

User material laws (#3688, #3689, #3690, #3691, #3692): MaterialSolidUser takes the second Piola-Kirchhoff stress of a stressUserFunction(mbs, t, itemNumber, X, E, E_t, h0, h, parameters) at each integration point - symbolic, in the threads and with its derivatives from the recording, or in Python with central differences -, with numberOfHistoryVariables per point and a postNewtonUserFunction for switches (stick and slip, a crack open or closed). In the law, mbs.systemData.GetTime(...) and mbs.GetObjectOutputBody(itemNumber, variableType, X) read the time, the step size, the temperature, position and velocity of the point. Neo-Hooke, Mooney-Rivlin, plasticity, Maxwell viscoelasticity and a 3D Prandtl element are reproduced as user laws to round-off; see Material laws, and the test models materialSolidUserTest.py, materialSolidUserHistoryTest.py, materialSolidUserPostNewtonTest.py and solidPiezoPatchTest.py (a piezoelectric patch actuator).

Materials and sections from exudyn.materials (Module: materials, #3720, #3740): StandardMaterial(MaterialName.Steel) gives a MaterialSolidBasic of a common material - steels, cast iron, aluminium, titanium, copper, glass, concrete, ABS, PLA, PMMA, a soft rubber -, typical values for examples and first models; BeamSectionFromMaterial(material, sectionGeometry) computes the BeamSection of a linear elastic material and a polygon, circle, ellipse or tube (RectangularSection, CircularSection, TubeSection), with the damping matrix from the Rayleigh \(\beta\) of the material; PlateSectionFromMaterial(material, thickness) gives the PlateSection of an isotropic plate, PlaneStressMatrix its material matrix.

Items take a section (#3736, #3737, #3739): ObjectANCFCable, ObjectANCFCable2D, ObjectALEANCFCable2D and ObjectBeamGeometricallyExact2D take sectionData, a BeamSection, and ObjectANCFThinPlate a PlateSection, which fills their section parameters (the item page lists the map); GenerateBeamElementsAlongLine and GenerateBeamElementsAlongCurve take beamSection, ShellMesh takes plateSection. The section classes are on Structural element data; BeamSectionGeometry has the crossSectionType Tube with innerRadius (#3735). Test models beamSectionFromMaterialTest.py, beamSectionDataTest.py, standardMaterialsTest.py, materialItemsTest.py.

exudyn.FEM, reduced bodies and interface elements

The package exudyn.FEM (Module: FEM, #3725) with its topic modules; the material items serve the modes, the reduced body and ObjectSolidFEM alike: ImportMeshFromNGsolve, ComputePostProcessingModes, ComputePostProcessingModesNGsolve and CreateNonlinearFEMObjectGenericODE2NGsolve take material= - an item, its dict, {region: material} for an NGsolve mesh, or a material number of mbs - besides the old arguments (#3731).

Mass and stiffness matrices without NGsolve (#3729): FEMinterface.ComputeMassAndStiffnessMatrices(material) computes them for a tetrahedral mesh with the elements of ObjectSolidFEM, one material or one per element set; the eigenmodes, the Hurty-Craig-Bampton modes and the reduced bodies follow, for a mesh of CreateTetrahedralBlockMesh or of the Abaqus import as well. VolumeToSurfaceElements runs in linear time (#3753).

Interface elements between RBE2 and RBE3 (#3732): ComputeHurtyCraigBamptonModes computes the static modes of HCBstaticModeSelection.FlexibleIE - RBE3 plus the weighted projections of the interface displacements on polynomial fields - and of PolynomialIE - RBE2 plus these fields -, with interfaceFields a list of 'stretch', 'shear', 'warping', 'bending' or a degree; FEMinterface.GetInterface gives the frame, the coordinates, the fields and the projector of an interface. A C profile cut in two reduced bodies, tied by these amplitudes, twists as the one body to 0.4 percent with fields of degree 3, against +4.5 percent with RBE3 and -42 percent with RBE2.

Reduced bodies joined at an interface (#3733, #3734, #3741, #3742, #3743, #3744): MarkerSuperElementInterface gives the pose of an interface and the amplitudes of its fields - on ObjectSolidFEM the best-fit rigid motion -; ObjectJointInterface joins two such interfaces, or an interface and a rigid marker, by Lagrange multipliers, and ObjectConnectorInterfaceSpringDamper by an elastic layer - normal and tangential stiffness and damping at the nodes or at points of exudyn.FEM.InterfaceQuadrature, or a tractionUserFunction per point for nonlinear laws and gaps. The parts of a body, each reduced with FlexibleIE modes, deform as one body, and a reduced part joins a geometrically nonlinear one. Theory: Interface elements between RBE2 and RBE3, Joining reduced bodies at an interface. Example flexBodyDemoTiedBodies.py; test models interfaceElementsTorsionTest.py, interfaceJointFFRFTest.py, interfaceLayerTest.py.

MarkerSuperElementRigid.rotationMode (#3606, #3612): exu.MarkerRotationMode.Alternative (the default) for bodies with a reference frame such as ObjectFFRFreducedOrder; BestFit, the rotation of the polar decomposition of the weighted node positions with its exact angular velocity and Jacobian, for large rotations of an interface on superelements without a reference frame such as ObjectSolidFEM. Which mode fits which body: The rotation of an interface in joints.

Faster superelements: ObjectFFRF with a sparse mass matrix, 8-20 times faster for meshes of some hundred to thousand nodes (#3449), and its own sparse Jacobian, 550 times faster than the numerical one at 1525 nodes (#3447); ObjectFFRFreducedOrder with its own parallel Jacobian (#3212) and markers from precomputed modes, 30-170 times faster for interfaces of 135-620 nodes (#2184); mbs.ComputeItem(body, exu.ComputeItemType.MassMatrix) for a body with a sparse mass matrix (#2183).

Curves and surfaces

Curves in 3D (#3646, #3686): exudyn.cUtilities.Curve is a curve of cubic and quintic polynomial segments and exact screw segments (lines, arcs, helices), with the position, a frame of the tangent and a director and their derivatives, boxes and the closest point; exudyn.curves (Module: curves) builds it from screws, Hermite data, quintic transitions and C2 or C4 splines with a rotation-minimizing director, and curves.CurveBuilder piece by piece - lines, arcs, helices, twists, transitions of continuous curvature, splines through points or frames, symbolic curves, closed curves.

Curve markers - a curve as a marker, with its position, frame, curvature, velocities and Jacobians at a curve parameter, read from Python by mbs.GetMarkerCurveOutput:

  • MarkerRigidCurve (#3647): a curve in the frame of any rigid marker - rigid bodies, rigid nodes, kinematic-tree links, superelement frames.

  • MarkerBeamCurve (#3651, #3654, #3666, #3667, #3696, #3700): the curve along a chain of beam elements - ANCF cables, ObjectANCFBeam with 2 or 3 nodes, ObjectBeamGeometricallyExact and its 2D form -, open or closed (a belt), a C2 B-spline of the nodes or with elementShape=True the shape of each element, on an exact reference curve (referenceSegments), with the frame of the cross sections, and sectionOffset for a rail on the surface of a beam.

  • MarkerSuperElementCurve (#3655, #3657): the curve through points embedded in ObjectFFRFreducedOrder, ObjectFFRF, ObjectSolidFEM or ObjectGenericODE2; FEMinterface.CurveSamples embeds a curve in the mesh.

Joints on curves (#3650, #3653, #3697): ObjectJointCurve guides a point or a rigid body along a curve marker - a slider on a rail, a roller coaster, a carriage on a flexible beam - with the curve parameter as a coordinate of the joint, the rotations about the curve frame lockable, a driving force along the curve, a twist about the tangent (a nut on a curved threaded rod) and a prescribed curve parameter by curveCoordinateUserFunction; ObjectJointCurve2D is the same in the plane. It replaces the sliding joints, see the deprecations.

Contacts on curves (#3658, #3662, #3669, #3674, #3683, #3698, #3699): a curve marker with a radius is a tube. ObjectContactSphereCurve - balls on rails, wires and flexible tubes; ObjectContactCurveCurve - two tubes, point contact where they cross, line contact where they are nearly parallel, rods on rods; ObjectContactCircleCurve

  • a wheel or roller, sharp or round rim, on a rigid or flexible rail, with an analytic Jacobian; ObjectContactCurveTriangle - a floor for beams. They have the contact law, the impact models, friction and the contactForceUserFunction of the primitive contacts.

Surfaces and surface markers (#3745, #3746, #3749): exudyn.cUtilities.Surface is a surface of rectangular patches - planes, parts of cylinders, spheres and ellipsoids, exact, and Bezier patches up to degree 5 -, written by exudyn.surfaces (Module: surfaces). MarkerRigidSurface puts it on a rigid marker; MarkerPlateSurface is the midsurface or a face of ObjectANCFThinPlate, MarkerSuperElementSurface the triangles of a mesh of ObjectSolidFEM, ObjectFFRFreducedOrder and the other superelements. ObjectContactSphereSurface is a sphere on such a surface - a ball on a plate, in a bore, on a dome, on a solid -, on the active patch, which is switched after a step, with the coordinates of that patch only and their derivatives also after the switch (#3757); mbs.GetMarkerSurfaceOutput evaluates a surface marker.

Theory: Curves in space (how the curves are built, how smooth they must be for a use, how their users switch the segments, the step size at impacts) and Surfaces in space. Examples: curveMarkersDemo.py (beads on a C1 and a C2 wire, a sleeve on a flexible cable, a marble on two rails), rollerCoaster.py (a loop and banked turns), rollerCoasterFlexible.py (the car on two bogies with wheels and guide rollers on a flexible track of geometrically exact beams), flexibleBeamsFalling.py (three beams falling across two rods, on each other and on the floor), flexBodyDemoSlidingRails.py (a carriage on two flexible reduced rails). Important to know: a joint with locked rotations needs a curve continuous in its curvature (C2) - see the section on smoothness.

Beams and plates

  • ObjectANCFBeam with 3 nodes (#3663): two nodes give the linear element, three nodes - left, middle, right - the quadratic one, with reduced integration against locking; a cantilever converges with a few quadratic elements. It takes MarkerBodyRigid, has the output variables StrainLocal, CurvatureLocal, ForceLocal and TorqueLocal (#3679) and an exact Jacobian by nested automatic differentiation (#3213); see ObjectANCFBeam.

  • Precurved ObjectANCFBeam (#3668): with strainIsRelativeToReference = 1 the reference configuration of the nodes is stress-free; referenceAxialShearStrain and referenceTwistCurvature add constant strains without stress, e.g. the curvature of a heated bimetal strip or of a piezo layer.

  • Beams along a curve (#3687, #3680): beams.GenerateBeamElementsAlongCurve creates beam elements of every beam type along a curve, stress-free in the curved reference configuration, with a number of elements or a largest element length, and the curve marker on request; GenerateBeamElementsAlongLine creates all beams as well, with axisY and nodeType. Test model curveBuilderBeamsTest.py.

  • Beam sections drawn (#3735, #3677): tubes, circles and ellipses, and the contour colors on the section of ObjectBeamGeometricallyExact and ObjectANCFBeam.

  • ObjectANCFThinPlate is no longer under construction (#3566, #3568): its description names the benchmarks it is checked on, and the cantilever, hemispherical shell and Schwab plate tests show their convergence when run directly.

  • ObjectContactFrictionCircleCable2D has offset, as the frictionless ObjectContactCircleCable2D (#3695).

Contact

Contact between primitive shapes (#3317, #3320, #3323, #3329, #3331, #3332, #3334, #3364, #3365, #3366): penalty contacts with the contact law of the sphere contacts, the output Distance (the signed gap, also when the contact is deactivated, #3319) and a Python or symbolic contactForceUserFunction (#3324):

  • ObjectContactSphereCylinder; ObjectContactCylinderCylinder with capsules (isCapsule0/1) and a hollow cylinder (isHollowCylinder1, a shaft in a bore); ObjectContactCylinderTriangle; ObjectContactConeCone (with isHollowCone1, a taper in its seat) and ObjectContactConeTriangle, for truncated cones; ObjectContactConvexConvex, two convex polytopes given by points and triangles; ObjectContactPrimitiveConvex, a sphere, capsule, cylinder or cone (exu.ContactPrimitiveType) against a polytope.

  • Up to 4 (polytopes: 8) contact points carry a line or a face of contact - a roller on the floor rests on the two ends of its line, a box on its 4 corners. ObjectContactSphereTriangle(infinitePlane=True) and the cylinder and cone triangle contacts contact the plane of the triangle, for a floor or a wall of any size.

  • exudyn.cUtilities.ConvexShape and exudyn.cUtilities.Distance give the signed distance, the closest points and the normal of two shapes.

  • Create functions (#3342, #3347): mbs.CreateSphereCylinderContact, CreateCylinderCylinderContact, CreateCylinderTriangleContact, CreateConeConeContact, CreateConeTriangleContact, CreateConvexConvexContact and CreatePrimitiveConvexContact add the item with its markers and a data node of the right size; CreateSphereTriangleContact takes the triangle points as a list and infinitePlane.

Friction, rolling and plasticity (#3546, #3547, #3548, #3549, #3560, #3572, #3336): ObjectContactSphereTriangle and ObjectContactSphereTorus take a rolling resistance (rollingFriction, rollingViscousFriction), a drilling resistance about the normal (drillingFriction, drillingRadius, drillingViscousFriction) and an elastic bristle of the sliding friction (frictionStiffness, frictionDamping), so that a body under a load below the Coulomb limit rests without creeping; the cylinder contacts take the rolling resistance about their axes and the bristle, ObjectContactConvexConvex the bristle. The adhesive elasto-plastic model of ObjectContactSphereSphere (contactPlasticityRatio, adhesionCoefficient, adhesionExponent, constantPullOffForce) is an option of the cylinder, cone and convex contacts.

A lubricated journal bearing (#3335, #3345): ObjectJournalBearing is a revolute joint with clearance whose oil film carries the journal with the force of the short (Ocvirk) or long (Sommerfeld) bearing, exu.JournalBearingModel, and a contact beyond the clearance; a forceUserFunction adds further models.

Roller chain drives (#3631): exudyn.machines (Module: machines) has RollerChain (from its dimensions, or RollerChain.FromStandard('08B') for ISO 606 series B), RollerChainSprocket (the tooth form of DIN 8196 and its polynomial contact segments for ObjectContactCurveCircles) and RollerChainDrive, which places the links around the sprockets and creates the links, joints and contacts (CreateItems); chainDriveExample.py is a drive of three sprockets with a tensioner.

Contact forces drawn (#3339): visualizationSettings.contact.showContactForces draws the force on marker 0 as a red and on marker 1 as a green arrow at each contact point, contact.contactForcesRadius sizes them; contact.show.cylinders and .cones draw the shapes.

The contact items are a group of the reference manual, Object (Contact), with a general page on the data node, the active set and the Create functions (#3344). Theory: Contact between primitive shapes. Example contactPrimitivesShowcase.py; test models contactPrimitivesTableTest.py, createPrimitiveContactsTest.py, journalBearingTest.py, contactPlasticityTest.py, hollowContactTest.py. Important to know: the data node of a contact holds its active set and, with a bristle or plasticity, its state - the Create functions size it. On the way: convex shapes resting on a face keep the penetration and normal of the face, and a polytope of more than 8 points landing on a face no longer stops the solver (#3338, #3346, #3349, #3573, #3578); two cylinders side by side with a slight tilt are in line contact (#3571).

Joints, connectors and loads

  • A helical (screw) joint (#3421, #3423): ObjectJointHelicalZ with mbs.CreateHelicalJoint: the frame of marker 1 turns about the \(z\)-axis of marker 0 and moves along it by the pitch per radian; the five constraints can be switched off one by one.

  • Inactive bodies (#3527): activeBody=False of ObjectMassPoint and ObjectRigidBody takes a body out of the equations - no mass, no forces -, while its node, markers, outputs and drawing work; set during a simulation by SetObjectParameter, as activeConnector of the connectors.

  • A floating base for the kinematic tree (#1549, #3211): ObjectKinematicTree takes baseNodeNumber, a rigid body node - NodeRigidBodyRotVecLG for the explicit solvers -, whose frame is the base of the tree; the tree has its own parallel Jacobian with the derivative of the mass matrix term, jacobianMassMatrixDerivative.

  • MarkerBodiesRelativeRotationCoordinate has localRotation0 and localRotation1, the frames between which it measures (#3270).

  • mbs.systemData.AddODE1LoadDependencies declares the dependencies of loads on ODE1 coordinates, which computeLoadsJacobian includes in the Jacobian (#1548).

Robotics

The user manual has the chapter Robotics - the modules, the workflows, the URDF import, path planning and ROS -, with the notebooks tutorialRobotics and tutorialPathPlanning (#3281).

  • Kinematics and dynamics in C++ (#3259, #3260, #3265, #3269, #3276): exudyn.cUtilities.KinematicChain, created by Robot.GetKinematicChain(), computes the frames, the Jacobian and the static torques (about 1 us), the analytic inverse kinematics InverseKinematicsAnalytic(HT, qReference, configuration) of 3R robots and of 6R robots with a spherical wrist or the UR geometry (about 8 us, all solutions, the nearest first; ArmConfiguration(q) gives the signs [shoulder, elbow, wrist]), the numerical one InverseKinematicsNumerical(HT, qInitial, weights, tolerance, maxIterations, restarts) of any serial robot by Levenberg-Marquardt (about 10 us), and with inertias the inverse dynamics InverseDynamics(q, q_t, q_tt) by the recursive Newton-Euler algorithm (about 2 us for 6 links); Robot has the same functions in Python, and Robot.GetGlobalToolHT(q).

  • Trajectories (#3262, #3272, #3274, #3283): ProfilePolynomial5 and the Cartesian paths ProfileCartesianLinear, ProfileCartesianCircular, ProfileCartesianScrew and ProfileCartesianSpline of exudyn.robotics.motion, which keep the arm configuration (keepConfiguration=True) and raise when the joints jump; Trajectory.Add(profile, blendTimeWithNext) blends a profile with the next, also 'auto' within the velocity limits and with blendSpace='cartesian'; GetBlendings reports the blendings; Trajectory.FromWaypoints (#3384).

  • Control and sensors (#3262, #3270, #3276): Robot.SetControl(trajectory, compensation) with mbs.SetPreStepUserFunction(robot.PreStepControl) controls both models, the kinematic tree and the redundant coordinates, with 'dynamic' compensation by the inverse dynamics - a fast trajectory of the TX2-90L followed 20 times more closely than with 'static'; Robot(q0, enableEndStops, frictionRegularization) and the RobotLink arguments jointLimits, viscousFriction, coulombFriction, endStopStiffness, endStopDamping (for all links SetJointFriction, SetEndStops); Robot.AddSensors(mbs, outputVariables).

  • Robot models (#3262, #3277, #3373, #3374, #3375): ManipulatorStaubliTX2_90L, ManipulatorUR10, ManipulatorKukaLBRiiwa14 and QuadrupedANYmalB in exudyn.robotics.models (Module: robotics.models); the models have named 'configurations' and an 'initialConfiguration', which LinkDict2Robot(model, initialConfiguration=..., friction=True) sets, with the friction of the model.

  • Storing a robot (#3267, #3273, #3285, #3356): Robot.GetDictionary() and SetDictionary() with a format version 'dictionaryVersion', Robot.SaveToHDF5 and LoadFromHDF5 with the graphics, the meshes and textures; a robot from a URDF file loads without the Robotics Toolbox then.

  • URDF import (Robots from URDF files, #3263, #3282, #3356, #3357, #3372, #3382): urdfImport.LoadURDFgraphics reads the visual meshes without the Robotics Toolbox and AddURDFgraphics puts them on the links; RobotFromURDFdata creates the Robot from GetURDFrobotData in one call, ReduceURDFrobotData leaves out joints and links (the fingers of a gripper); GetURDFrobotData handles flipped joints, reports problems of the inertias in 'inertiaProblems', computes missing ones from the meshes (densityForInertiaEstimation, CompleteInertiasFromMeshes), draws textured meshes, and with collision=True reads the collision geometries, fitted by up to two capsules per link (FitCapsulesToMesh).

  • Collision check, path planning and navigation (Path planning and navigation, #3380, #3383, #3384, #3390): Robot.GetCollisionModel and exudyn.cUtilities.CollisionModel with MinimumDistance, IsFree and IsEdgeFree; the module robotics.navigation (Module: robotics.navigation) with RRT-Connect and ShortcutPath for serial robots, an occupancy grid with A*, RRT-Connect in the plane and pure pursuit for mobile robots.

  • Robots as user kinematic trees (#3508, #3511, #3513, #3515-#3519, #3359): Robot.CreateKinematicTree(mbs, userItemCreator=creator) creates a robot as symbolic user item, also on a floating base, and Robot.CreateKinematicTree(mbs, floatingBase=inertia) a robot on a floating base.

Examples in python/Examples/robotics: staubliTX2trajectories.py, staubliTX2blending.py, pathPlanningUR5.py, mobileRobotsNavigation.py, quadrupedsFloatingBase.py, serialRobotInteractiveLimits.py (the TX2-90L moved by sliders and the mouse, with end stops, #3362), humanRobotInteraction.py, spotReinforcementLearning.py (a trained SAC policy, without a training run, #3506).

Solvers

  • Implicit Runge-Kutta solvers in C++ (#3287, #3288, #3290, #3307, #3318): DynamicSolverType.TrapezoidalGGL, LobattoIIIA4, LobattoIIIC4GGL, Radau3 and Radau5 run with mbs.SolveDynamic on every model of the implicit solver: index-3 constraints without index reduction, orders 2, 4, 4, 3 and 5 in positions and velocities, constant steps or, by default, the automatic step size with absoluteTolerance, relativeTolerance and the error estimate of timeIntegration.errorEstimate; velocity-level constraints, Lie group nodes at the order of the method. Radau5 is L-stable, a step costs about half a step of LobattoIIIC4GGL. Which solver to take: Recommendations for the dynamic solvers (#3370), with the warning that the error of the algebraic coordinates grows again at very small steps (#3369); theory: Implicit Runge-Kutta solvers.

  • mbs.SetPreStageUserFunction(function) (#3535), function(mbs, t), is called at the time of each stage: loads and control targets set there keep the order of the multi-stage solvers; the implicit Runge-Kutta solvers call PreNewtonResidualUserFunction.

  • Rigid bodies on Euler parameters with the explicit solvers (#3507): NodeRigidBodyEP with its constraint is integrated by all explicit solvers, the Euler parameters projected onto the unit norm after each step; see Euler parameters with explicit solvers. VelocityVerlet is no longer marked as under development (#3377).

  • The solution in memory (#3710, #3712): simulationSettings.solution.storeInternal keeps the rows of the solution file in memory, with or without the file, up to solution.internalSizeLimit (50 MB); mbs.GetSolutionData() returns them, or the solution file of the last simulation, mbs.SolutionViewer() shows them without a file, mbs.ResetSolutionData() frees them; see The solution in memory.

  • Consistent initial conditions (#2234): the implicit solver checks the initial positions and velocities against the constraints and warns, naming the item; generalizedAlpha.projectInitialVelocities = True projects the initial velocities; see Consistent initial conditions.

  • Drift of the constraints (#565): generalizedAlpha.checkConstraintDrift checks the drift of the position-level constraints during the run and stops above constraintDriftTolerance, on for TrapezoidalIndex2; mbs.ComputeConstraintResiduals, ComputeItemType.ConstraintDrift, AlgebraicEquations_t, the output variable ConstraintEquation and SystemConstraintDrift give the drift; see Drift of the constraints.

  • Intel MKL PARDISO as sparse solver (experimental; #3431, #3538, #3633, #3542): exu.LinearSolverType.PardisoMKL when MKL is installed (pip install mkl), loaded at run time; the residual is checked and refined (refinementSteps), and a failing matrix falls back to SparseLU, up to linearSolver.pardiso.maximumFallbacks; exu.special.solver.PardisoInfo() tells whether MKL is found, and GetLinearSolverInfo() of the solver classes gives the counters of the linear solver.

  • Multithreading (#3494, #3500, #1202, #1203, #3209, #3428, #3437, #3432): the residual runs in one parallel region, so that 5 rigid bodies with 5 connectors already run about 25 % faster on 4 threads; the Jacobians of the objects and constraints without Python user functions are computed in parallel; parallel.suspendWorkersDuringFactorization, exu.special.solver.multithreading.StartPersistentThreads(n), workersIdleSpinTime, and the experimental exu.special.solver.eigenSparse.parallelSubstitution.

  • simulationSettings.linearSolver.dropThreshold leaves out the tiny entries of the sparse Newton Jacobian (#3448); newton.numericalDifferentiation.constraintReactionDerivative = True adds the derivative of the reaction forces of the constraints to the Jacobian (#3230).

Diagnostics and messages

exudyn.diagnostics counts what happened in a run (Diagnostics: what happened in a run, exudyn.diagnostics, #3638, #3711): events that do not stop a simulation but explain its result, in the categories localIterations, itemWarnings, solver, deprecation and warnings. Each has counts, reportLevel (0 counts, 1 also stores records with the item, the system and the time, 2 also prints), GetRecords() and Reset(); exu.diagnostics.Summary() and HasEvents() cover all, and a solver with verboseMode >= 1 prints the counts at its end. Every warning is counted by its class, e.g. solver.minimumStepSize, with the line of the script; a script or a library warns the same way with exudyn.diagnostics.Warn(event, message). With show.computationTime, the CPU-time statistics list the time spent in user functions (#2007).

Renderer and GUI

  • An icon bar (#3026, #3040, #3044, #3592, #3593): it folds in from the right border - quit, zoom all, zoom to a region, the views, the ruler, the mouse coordinates, the display of lines, edges, faces, transparency and shadow, the update interval, the visibility of the items, the output variable of the contour plot and its component; Icon bar. SHIFT and dragging zooms to the rectangle dragged; CTRL+A zooms to the selected item, as SC.renderer.ZoomToItem does (#3027).

  • Scopes (#3237, #3248, #3251, #3252, #3401, #3682): three per view, view0.window.scope0 to scope2, plot stored sensor values over time or over another sensor, in OpenGL, the raytracer and saved images; zoomed and moved with the mouse while paused; graphics in the coordinates of a graph by SC.renderer.scopes.SetGraphics; see Scopes and RendererScopes. Example scopeExample.py.

  • Buttons and sliders (#3400): SC.renderer.AddButton and AddSlider with SC.renderer.SetControlUserFunction(f), or exudyn.interactive.WindowControls with one function per element; general.iconBarAndControlsInImages puts them into saved images; see Buttons and sliders. Example renderWindowControls.py.

  • Textures (#2154, #2155, #3029-#3036, #3268): SC.renderer.AddTexture(name, image, interpretation, flags) adds an image, shared by all SystemContainers; a TriangleList with 'texture' and 'textureCoordinates' is drawn with it by OpenGL and the raytracer; graphics.Quad and graphics.Cylinder take texture=name, graphics.ProjectTexture gives texture coordinates by a projection; GetTexture and the dictionaries of the renderer, the SystemContainer and the Robot keep them. Example texturesExample.py.

  • A ruler (#2244): view0.window.showRuler or F5 shows scales in an orthographic view, also in the raytracer.

  • Stored configurations CFG0 to CFG3 (#3043, #3045): four sets of visualizationSettings and model views, switched by icons and stored from the dialog or by exudyn.misc.GUI.StoreVisualizationSettings(SC, CFG=0); see Stored configurations CFG0 to CFG3.

  • The raytracer (Using the raytracer, #3438, #3439, #3468, #3473, #3475, #3476, #3477, #3486): its own threads, balanced dynamically, also while a solver runs; images 13-23 % faster; soft shadows sampled on a rotated spiral, adaptive shadow samples (raytracer.advanced.adaptiveShadowSamples), blurred reflections of a material with a roughness (raytracer.reflectionSamples, default 8, which multiplies the cost of its reflections), raytracer.advanced.minimumShadowWeight to save the shadow rays of weak reflections, raytracer.advanced.backFaceColor to check the normals of a mesh (#3275).

  • The scopes’ vertical axis is labelled by yLabel or the output variable shared by its lines (#3682).

  • More: view0.scene.hideMbs … view3.scene.hideMbs leave chosen systems out of a view (#3442); SC.renderer.GetDictionary() and SetDictionary() (#2075); SystemContainer(attachToRenderer=False) computes without taking the render window (#2259); a script may rebuild its model while the window stays open (#3239); the markers, connectors, loads and sensors on user items are drawn in the main thread, loads.drawWithUserFunction draws a Python load user function with multithreaded rendering (#3003); a line copied in the dialogs stays in the clipboard (#2994); the visualization dialog refuses a list or matrix the setting cannot take (#3249).

Graphics

  • Screws (#3425): graphics.ScrewThread draws external and internal threads of metric, triangular, trapezoidal, square or own profiles; graphics.HexagonPrism, graphics.Bolt and graphics.Nut; machines.MetricThread('M10') gives the ISO metric threads M2 to M60 with the sizes of bolt and nut.

  • Meshes (#2281, #3264, #3275): graphics.OrientTriangles orients the triangles of a TriangleList consistently and every closed part - or open part enclosing a volume - outward, graphics.CheckTriangleOrientation reports; FromSTLfile, FromSTLfileASCII and FromPointsAndTrigs take orientTriangles=True, the readers checkOrientation; graphics.FromSTLfile computes with density the volume, mass, center of mass and inertia of the mesh, and scale takes three factors.

  • graphics.Capsule (#3366), graphics.RollerChainSprocket and graphics.RollerChainLink (#3631).

  • The values of OutputVariableType, NodeType, MarkerType, CrossSectionType, LinearSolverType and TextureFlags combine with | and & (#3037).

User items

User items are items whose equations are Python or symbolic user functions, with the interfaces of the built-in ones - markers, sensors, loads and connectors work on them; see User items.

  • ObjectUserBody (#2986, #3046, #3056-#3058, #3062-#3064, #3104, #3120): a body whose mass matrix, forces, positions, rotations and Jacobians are user functions of qRef, qTotal, q_t and parameters (named by exudyn.advancedUtilities.ParameterLayout); constantMassMatrix, a massIntegralUserFunction for gravity, an outputVariableUserFunction for every output, its graphicsData drawn deformed.

  • NodeUser (#2974): a node with any number of coordinates and a position, and optionally an orientation, of user functions.

  • ObjectConnectorUser (#2975, #3102, #3119, #3183, #3194): a connector whose forceUserFunction(mbs, t, itemNumber, HT0, twist0, HT1, twist1, dataCoordinates, parameters) gets the frame and twist of each marker and returns the forces and torques on them, with data coordinates and a postNewtonStepUserFunction; a markerAccessUserFunction reads the markers as exudyn.ConnectorMarker for forces at points it computes itself - a contact searching the closest point on a flexible body.

  • ObjectJointUser (#2976, #3101, #3147, #3183): 1 to 6 equations of the frames of two rigid markers, constraintUserFunction(mbs, t, itemNumber, HT0, HT1, parameters) with its jacobianUserFunction, which Assemble requires; JointJacobianUserFunction of exudyn.symbolics.userItems derives it (#3235).

  • MarkerBodyUser (#3065, #3103) and MarkerNodeUser (#3236): markers on several bodies or nodes whose position, rotation or coordinate are user functions; a connector or joint on a user item needs its Jacobian functions, which Assemble checks (#3107).

  • ObjectGenericDAE (#3170, #3189-#3191, #3195): ODE2, ODE1 and algebraic equations on the coordinates of its nodes, linear terms by matrices, nonlinear ones by user functions, a constraintUserFunction, a massMatrixUserFunction, data nodes and a postNewtonStepUserFunction.

  • OutputVariableType, NodeType and MarkerType have UserType0 to UserType3, named by exu.special.userTypes.SetName (exudyn.special.userTypes, #2989); SensorUserFunction.itemNumbers reads items instead of sensors (#2977).

  • exudyn.Twist (#3182) is the velocity of a frame, velocity and angularVelocity; PointVelocity, LocalTwist and RelativeTwist of exudyn.cUtilities compute with an HT and a Twist.

Test models userRigidBodyTest.py, userConnectorTest.py, userJointTest.py, userMarkerTest.py, userTetrahedronTest.py, genericDAETest.py.

Symbolic user functions, the symbolic system and its export

Symbolic user functions (Symbolic user functions) are faster and do more: vector and matrix results without memory allocation and in the threads (#2978, #3005, #3006, #3020-#3022, #3039), shared values computed once by a flat program and a table of operations (#3053, #3054, #3157), esym.Optimize (#3085), numpy’s functions and operators with symbolic operands (#3011, #3015, #3018), esym.cross, esym.pi, IfThenElse of numbers (#3070-#3072), Diff of vectors and matrices and UserFunction.EvaluateJacobian in one pass (#3115, #3116, #3171), esym.Jacobian (#3163), esym.Function(result, inputs, name) (#3149), esym.LookupTable (#3192), the outputs of other items read at every call (#2984), the time read at every call (#3689), deep recordings in linear time (#3090), and GetStatistics (#3142); one recording serves any number of items and systems in threads (#3705). The functions of exudyn.cMath take an exudyn.symbolic.Real and are recorded (#3114).

The package exudyn.symbolics (#3165) holds the Python parts built on exudyn.symbolic:

  • kinematics - the rotation and kinematics functions of exudyn.cUtilities for symbolic and numeric arguments, HT and Twist for symbolic parts (#3069, #3182, #3185, #3186);

  • userItems - UserItemCreator(mbs) (User items with the interfaces of the built-in items, #3125, #3128, #3140, #3193, #3203, #3238), whose CreateGround, CreateMassPoint, CreateRigidBody, CreateSpringDamper, CreateCartesianSpringDamper, CreateRigidBodySpringDamper, CreateTorsionalSpringDamper, CreateRevoluteJoint, CreatePrismaticJoint, CreateSphericalJoint, CreateDistanceConstraint, CreateCoordinateConstraint, CreateSphereSphereContact, CreateForce, CreateTorque and CreateKinematicTree take the arguments of those of mbs and create user items, so that one script builds a system of either; parameters may be expressions of named variables (#3152, #3159, #3207);

  • systemModel - SymbolicSystem(mbs) (Symbolic system, #3110 and following) evaluates the mass matrix, forces, constraints and an exact Jacobian of a system of user items, gives its Equations() as expressions, derivatives by parameters, and writes a state back into mbs for the renderer and the sensors; NumpySystem and SystemVariables;

  • solvers and advancedSolvers (Symbolic solvers, #3112, #3126, #3220, #3241-#3247, #3250, #3253) - SolveExplicit, SolveGeneralizedAlpha, SolveTrapezoidalGGL and SolveImplicitRungeKutta with automatic steps, post-Newton switches and output at exact write times;

  • codeExport and systemExport (Export of the equations, #3087, #3088, #3520, #3523, #3525, #3701) - GetFlatProgram(format=...) writes a recording as numpy, exudyn.symbolic, sympy or C++ code; SymbolicSystem.Export writes the forces, the mass matrix, optionally the Jacobians and outputs, as C++ files that run without Exudyn, CompileExport compiles them (also on Linux and macOS) and CompiledSystem.Simulate runs all steps in the compiled code;

  • utilities - SampleTime, Noise, SparseMatrix, IfThenElse (#3192, #3199).

In short, on the way to these: UserItemCreator.CreateSphereSphereContact with friction and the impact models, equal to mbs.CreateSphereSphereContact to 1e-13 (#3187, #3197, #3219), CreateTorsionalSpringDamper with unlimitedRotations (#3218); SymbolicSystem with the data coordinates and post-Newton functions of ObjectConnectorUser and ObjectGenericDAE (#3196), with Euler parameters (#3238); SolveExplicit eliminates coordinates fixed to the ground (#3238); esym.Function up to 5.6 times faster to create (#3198); the postNewtonFunction, the constraintUserFunction of ObjectConnectorCoordinateVector and the outputVariableUserFunction of ObjectUserBody can be symbolic (#2985); flatEvaluation = False restores the tree evaluation (#3053); IfThenElse evaluated with its operands (#3089); a numpy matrix returned by a Python user function is copied once into the item (#1864); a Python post-Newton step of a connector runs in the main thread, where it hung in the threads (#3095); a named Matrix from an array counted twice (#3092); MainSolverExplicit, MainSolverImplicitSecondOrder and MainSolverStatic have WriteSensorsToFile (#3241); a Cartesian spring-damper of UserItemCreator on a mass point is drawn (#3333).

The chapter “Symbolic system and user functions” (Symbolic system and user functions) has the notebook tutorialSymbolicSystem; examples symbolicSystemSpringDamper.py, symbolicSystemRigidBodyPendulum.py, symbolicSystemExportRobot.py.

Python library and tools

  • exudyn.cMath (#2954, #2959, #2963): the portable math functions of the C++ code for Python - the test models give the same results on Windows and Linux to the last bit; see Why own math in Exudyn?.

  • exudyn.cUtilities (exudyn.cUtilities, #2960, #2961): the rotation and kinematics functions in C++, which exudyn.rigidBodyUtilities calls, and the curves, surfaces, convex shapes, kinematic chains and collision models above.

  • exudyn.systemUtilities (Quantities of the whole system, #2997): SystemEnergy and SystemConstraintDrift with Compute(), ComputeItems() and AddSensor(), ComputeSystemGraph, DrawSystemGraph, LoadPotentialEnergy, NumericalJacobian, ComputeConstraintResiduals.

  • exudyn.advancedUtilities.SaveDictToHDF5 stores a list of only int or only float values as one dataset (#3267); each of the five vector and matrix lists is built from a list of its own type as a copy, Vector3DList(x) (#3512); CreateRigidBodySpringDamper, CreateTorsionalSpringDamper and CreateSphereSphereContact have an example in their documentation, as the other Create functions (#3235).

  • Examples and the performance tests of the Exudyn paper (#3505): python/Examples/publications/MSD2024Gerstmayr, with the results against the paper in Multithreading: the performance tests of the Exudyn paper.

What is new to read

New pages of the user manual:

New sections in existing pages:

The reference manual has pages for the material items and the laws, and the contact items are a group of it with a general page (#3344); the section classes are documented on Structural element data (#3736). The tutorials tutorialRobotics, tutorialPathPlanning and tutorialSymbolicSystem are notebooks of python/Notebooks/.

For developers, the internals describe how parts of Exudyn work inside, written for whoever changes them: the symbolic recording and the symbolic system, the user functions and user items, the system Jacobians, the solvers, the sparse solvers, the parallel regions, the linear algebra, the raytracer and the scopes, the superelements, the solid tetrahedra, the materials, the package exudyn.FEM, the interface elements, ObjectANCFBeam, the curves, the beam curves and CurveBuilder, the surfaces, the contacts between primitive shapes, their friction, ObjectContactCurveCircles and the roller chains, the reaction forces of the constraints, the helical joint, the symmetric basis, exudyn.systemUtilities, exudyn.diagnostics, the robotics classes and the path planning. The developer documentation has the decisions that set the course of the project and the release workflow.

What changed behind the scenes

Analytic and parallel Jacobians. Most items give their Jacobian themselves, analytic or by automatic differentiation, and in parallel - the 3D joints on their relative frame (#2884), the rigid bodies on Euler parameters, Tait-Bryan angles and Lie group nodes (#3209, #3210, #3217), the connectors and contacts from the kinematics of their markers (#3201, #3204), ObjectANCFBeam (#3213), ObjectKinematicTree (#3211) and the connectors on its links (#3216, #3229), ObjectFFRF and ObjectFFRFreducedOrder (#3447, #3212), the hydraulic actuator (#3214), ObjectContactCurveCircles and ObjectContactCircleCurve (#3635, #3698), and the objects and constraints without Python user functions in general (#1202, #1203). Examples: an ANCF cable of 2000 elements takes 4.6 instead of 20.9 ms per Jacobian with 8 threads, a chain of 60 tree links 1.2 instead of 6.1 s, flexibleBeamsFalling.py its first 0.5 s 14 s instead of 23 s, the car of rollerCoasterFlexible.py on wheels a minute instead of 40 minutes.

Faster solving: EigenSparse solves with the rows of its factors, about twice as fast (exu.special.solver.eigenSparse.solveByRows = False switches back, #3441); the residual in one parallel region with pinned threads (#3494, #3500); ObjectKinematicTree allocates no memory per step (#3291); symbolic recordings evaluated by a table of operations (#3157, #3160); FEMinterface.VolumeToSurfaceElements in linear time, 0.05 s instead of 21 s for 24 000 Tet4 (#3753).

Tests and tools. The test models give the same results on Windows and Linux to the last bit, by exudyn.cMath (#2954); the examples and test models that read testData find it beside their own file and run from any directory (#3303); the fast module keeps every check a user can trigger (#3293, #3295). The changes of every issue are in the changelog.

Version 1.13

A revision of the whole project rather than a feature release: the layout of the repository, the build, the tests, the documentation and the development tools. Most of it is invisible from a model script. The parts that are not are first.

Note

The individual issues of this revision carry 1.11.x version numbers, because the micro version counts closed issues continuously and does not restart; 1.12.0 is the point at which the revision was declared complete. 1.12 itself was not published: 1.13.0 is the first release after 1.11 and carries the revision together with what followed it.

What can break a script

ObjectANCFThinPlate computes other values. Its curvatures use the material measure - for a strip the curvature of ObjectANCFCable2D -, its integration rules changed (useReducedOrderIntegration 0: Gauss 5 x 5; 1 and 2: Lobatto 3 x 3 for the membrane, Gauss 2 x 2 for the bending), and a variable thickness gives the stiffness from the local thickness. Results change slightly; the outputs change in form: StrainLocal has 6 components through the thickness instead of the 3 membrane strains, CurvatureLocal and TorqueLocal are in the order \(xx,\, yy,\, xy\) with one sign - positive where the surface bends towards its normal -, and StressLocal has the opposite sign of its bending part (#2857, #2864).

bodyOrNodeList and bodyList of the Create functions are not accepted: the items are given in itemNumbers; a script that passes either gets a TypeError that says so, and exudev scripts --fix renames them (#2863).

Visualization parameters of items that draw nothing are gone: show of Node1D, the generic nodes, ObjectGenericODE1, the coordinate markers, LoadCoordinate and SensorUserFunction, show and color of ObjectConnectorCoordinateVector, and drawSize of ObjectConnectorGravity. A script that gives them, e.g. visualization=VCoordinateVectorConstraint(show=False), leaves them out; exudev scripts finds them (#2843).

exudyn.AccessFunctionType.SuperElementAlternativeRotationMode is gone: it was a mode of MarkerSuperElementRigid (useAlternativeApproach), not an access type, and is passed as an argument now (#2744).

Star imports export only what a module defines. from exudyn.utilities import * used to drag in everything that module had imported itself — np, sin, cos, sqrt, graphics and more. Every module now declares __all__, so a script that relied on those names arriving through Exudyn raises NameError. The fix is one line at the top of the script:

import numpy as np
from math import sin, cos, sqrt
import exudyn.graphics as graphics

from exudyn.utilities import * provides less (#2756): no longer the beam generators, the MainSystem extensions and the old graphics helpers, which each have their own place. A script that used them without importing them gets a NameError, and the fix is one line:

name

write instead

GenerateStraightLineANCFCable2D, GenerateSlidingJoint, GenerateAleSlidingJoint, GenerateStraightBeam

from exudyn.beams import GenerateStraightBeam (the one used)

CreateDistanceSensorGeometry, CreateDistanceSensor, DrawSystemGraph

mbs.CreateDistanceSensor(...), mbs.DrawSystemGraph(...)

color4red, color4steelblue, …

graphics.color.red, graphics.color.steelblue, …

GraphicsDataRectangle(x0, y0, x1, y1, color)

graphics.Lines([[x0,y0,0], [x1,y0,0], [x1,y1,0], [x0,y1,0], [x0,y0,0]], color=color)

GraphicsDataOrthoCubeLines(x0, y0, z0, x1, y1, z1, color)

graphics.BrickXYZ(x0, y0, z0, x1, y1, z1, addFaces=False, addEdges=True, edgeColor=color)

RefineMesh, ShrinkMeshNormalToSurface, … - the mesh functions of exudyn.graphicsDataUtilities

from exudyn.graphicsDataUtilities import RefineMesh (the one used)

GraphicsDataRectangle, GraphicsDataOrthoCubeLines and the color4... names are deprecated; the scripts of the repository use exudyn.graphics for them. exudev scripts <folder> names every such line of a script.

Names that are gone. Eleven small vector helpers were removed from exudyn.basicUtilities — numpy does all of them, faster and in one call; what they did is in the basicUtilities.py of Exudyn 1.11.0. They returned lists, numpy returns arrays:

removed

use

NormL2(v), VSum(v)

np.linalg.norm(v), np.sum(v)

VAdd(a, b), VSub(a, b), ScalarMult(s, v)

np.array(a) + b, np.array(a) - b, s*np.array(v)

VMult(a, b) (the scalar product)

np.dot(a, b)

Vec2Tilde(v), Tilde2Vec(m)

Skew(v), Skew2Vec(m) of exudyn.rigidBodyUtilities

DiagonalMatrix(n, value), eye2D, eye3D

value*np.eye(n), np.eye(2), np.eye(3)

The 23 deprecated GraphicsData... aliases in exudyn.utilities are gone as well; the current names are in exudyn.graphics - mostly the old name without the prefix, GraphicsDataSphere is graphics.Sphere. The exceptions: GraphicsDataOrthoCubePoint is graphics.Brick, GraphicsDataCube graphics.Cuboid, GraphicsDataOrthoCube graphics.BrickXYZ, GraphicsDataLine graphics.Lines, GraphicsDataFromSTLfileTxt graphics.FromSTLfileASCII, GraphicsData2PointsAndTrigs graphics.ToPointsAndTrigs, ExportGraphicsData2STL graphics.ExportSTL and MergeGraphicsDataTriangleList graphics.MergeTriangleLists (the aliases of 1.11.0).

Functions that moved inside the package: from exudyn.utilities into basicUtilities, advancedUtilities and mainSystemExtensions. A script that imports from exudyn.utilities in the usual way notices nothing; one that imported such a function by its full module path imports it from exudyn.utilities instead.

The files a run writes by default are in solution/: the solution file is solution/coordinatesSolution.txt, and the solver information and the restart file are there as well, so that a run writes nothing beside the script. A script that reads the solution file back as 'coordinatesSolution.txt' reads the new name 'solution/coordinatesSolution.txt' instead; a script that sets its own file names keeps them. exudev scripts <folder> finds both, and every file a script names without a directory.

InitializeFromRestartFile is gone from exudyn.utilities: it raised “not fully implemented” in every version. The restart file is still written (simulationSettings.solution.restart); how a simulation continues from it is #2850.

Item dictionaries are more forgiving, not less: a parameter that is left out keeps its default or its current value, where it used to raise KeyError.

A settings file changes what a script does, if you make one. ~/.exudyn/config.json is read at import into exudyn.special.overrideSettings and can override exudyn.config, any plain visualizationSettings — in every such structure that is created, not only in a SystemContainer — the size and position of a dialog, and the settings of the results monitor, which has no file of its own (User settings that persist between runs). Nothing writes it by itself, import exudyn prints one note naming what came from it, and EXUDYN_NO_USER_SETTINGS=1 ignores it — which is what a bug report needs. The test suites set that variable for themselves.

ObjectContactConvexRoll.rBoundingSphere is read-only. It is computed from coefficientsHull, and setting it never had an effect: the value was recomputed whenever the parameters changed. It is no longer an argument of the item and can no longer be set, so a script that passed it says so instead of being quietly ignored - delete the argument. Reading it — and pContact, the current potential contact point — works as before, with mbs.GetObjectParameter(objectNumber, 'pContact').

OpenVR is removed. The --openvr build flag, the settings under visualizationSettings.interactive.openVR, the openVR entry of the render state and the example openVRengine.py are gone. It could only be used with a head mounted display or an emulator, it was never part of a released wheel - it had to be compiled in - and it stood in the way of the coming rendering work. A script that only sets openVR settings runs once those lines are deleted; one that needs a head mounted display stays on Exudyn 1.11.

The text export of an image is removed. exportImages.saveImageFormat = 'TXT', the four exportImages.saveImageAsText... settings and exudyn.plot.LoadImage are gone. SC.renderer.GetGraphicsData() gives the same drawing elements, and more of them, as numpy arrays, without a render window; exudyn.plot.PlotImage draws what it returns, so a vector figure of a model is PlotImage(SC.renderer.GetGraphicsData(), fileName='model.pdf').

GraphicsData comes as rows. The functions of exudyn.graphics return points, normals, colors, triangles and edges as 2D numpy arrays - one row per point, color or triangle - and so does mbs.GetObject(..., addGraphicsData=True); they had been flat lists. Given to Exudyn, both forms are read. A script that indexes a returned list as flat, g['points'][3*i+1], reshapes it first: np.array(g['points']).reshape(-1,3)[i,1] works for both. graphics.Sphere returns the new type Spheres for a whole sphere instead of a TriangleList; the functions of exudyn.graphics that need triangles convert it (#2709).

Round primitives are curved. graphics.Cylinder, SolidOfRevolution (and with it Arrow, Basis, Frame, RigidLink, BallBearingRings) and Torus return 6-node triangles (triangles6) and curved rims (edges3) instead of flat triangles. nTiles keeps its meaning, the number of flat segments around: half as many curved elements carry them, and the renderer draws at least those segments. A script that reads g['triangles'] of such a shape gets the flat ones with graphics.Triangles6ToTriangles(g); graphics.ToPointsAndTrigs does this itself, so a contact mesh made from a cylinder with an even nTiles has the same facets as before, on more triangles (#2709).

The rotation of an ANCF slope node is one frame. NodePointSlope23 and the cross section of ObjectANCFBeam rotate with the orthonormal frame of their slopes (\( v_z\) normalized, \( v_y\) orthogonalized against it), and their angular velocity and rotation Jacobian are now its derivatives; they were a least-squares fit of both slopes, which differs where the cross section deforms. Joints and torques on these nodes converge as they should; the angular velocity output of a deformed cross section, and results with joints on slope nodes, change slightly (#2763).

The time integration uses the modified Newton method by default. timeIntegration.newton.useModifiedNewton is True: the Jacobian is kept over the steps and computed again only when Newton converges badly, which is much faster for most models. Results change within the tolerances of Newton - in most models from the eighth digit on, with contact and friction earlier; set it to False for the full Newton method. staticSolver.newton keeps the full Newton method (#2815).

The robotics classes compute with exudyn.HT. Robot.LinkHT, JointHT, COMHT, StdDH2HT, ModDHKK2HT, InverseKinematicsNumerical.GetCurrentRobotHT and dictJointType2HT return exu.HT instead of 4x4 numpy arrays, and RobotBase.HT, RobotTool.HT, RobotLink.localHT and preHT are stored as exu.HT, given as exu.HT or 4x4 matrix as before; the kinematics is about twice as fast. Scripts written for numpy arrays keep working: an exu.HT is indexed as its 4x4 matrix (H[0:3,3], also for writing, except the last row), H1 @ H2 is the product and H @ x what numpy computes, copy.deepcopy copies it, and np.array(H) gives the matrix. What no longer works is numpy arithmetic on it, such as H1 - H2: use np.array(H1) - np.array(H2) (#2821).

rigidBodyUtilities.HT is gone; its name is exudyn.HT now. The shortcut HT of the function HomogeneousTransformation(A, r), which from exudyn.utilities import * brought into a script, is removed, so that HT means one thing - the class exu.HT. A script that called HT(A, r) for a 4x4 array writes HomogeneousTransformation(A, r) (#2781).

What is new to use

Optional packages by name. pip install "exudyn[basic]" installs scipy and matplotlib with Exudyn, which most models need; [common] adds what frequently used features need, [tests], [all] and [rl] the larger sets, see Optional packages via the Exudyn extras.

Renamed settings keep working. A simulation setting that is renamed answers to its old name with a DeprecationWarning that names the new one, as the visualization settings do: parallel.multithreadedLLimitLoads, ...Residuals, ...Jacobians and ...MassMatrices are parallel.multithreadedLowerLimitLoads and so on, until 2031 (#2588, #2800). The same holds for item parameters: a renamed one is still taken under its old name - in the item class, in a dictionary and by mbs.GetObjectParameter/SetObjectParameter - with a warning naming the new one; the page of the item lists it (#2589).

mbs.CreateLinearSpringDamper creates a linear spring-damper along an axis between two rigid bodies or rigid markers, with the arguments of the joints - itemNumbers, position, axis, useGlobalFrame -, e.g. inside a prismatic joint (#1953).

A singular Jacobian with adaptive steps reduces the step. With adaptiveStep (the default) or automatic step size, the static and the implicit dynamic solvers take a singular system Jacobian as a failed step and reduce the step size, instead of stopping at once; a singularity of the model still ends the run, at the minimum step size, with the causing coordinate in the solver message and file (#1337). SC.GetSystem(i) keeps its SystemContainer alive, as SC.AddSystem() does, so that a system returned from a function works after the container went out of scope (#2851). ObjectContactFrictionCircleCable2D without a friction model - frictionStiffness and frictionVelocityPenalty zero - has no tangential force, also when its data node starts in slip (#1290).

A dynamic simulation continues from its restart file. With solution.restart.write the solvers write the state every solution.restart.writePeriod and at the end, and with solution.restart.continueIfAvailable the same script, started again, continues from it - appending to its solution and sensor files -, for a job that is stopped and resubmitted; see the user manual, Continuing a simulation from its restart file (#2850).

The Create functions take bodies, nodes or markers in itemNumbers. CreateSpringDamper, CreateCartesianSpringDamper, CreateRigidBodySpringDamper and CreateDistanceConstraint take a body at its local position, a node or a marker for each side; the joints and CreateTorsionalSpringDamper a body or a rigid marker; CreateCoordinateConstraint a body - its coordinates counted over its nodes -, a node, or None for the ground; the sphere contacts the sphere on a body, node or marker and the triangle or quad on a body; CreateForce and CreateTorque one body, node or marker in itemNumber. bodyNumbers and bodyNumber are the deprecated names until 2031, which exudev scripts --fix rewrites; the rolling discs keep bodyNumbers, as they take bodies only (#2863, #2337).

More markers on more bodies. ObjectRotationalMass1D takes forces and connectors anywhere on its table, not only on its axis; ObjectANCFBeam takes MarkerBodyRigid, so torques and joints with rotations act on its cross sections (#2775).

ANCF thin plates: damping, thickness and surface maps. ObjectANCFThinPlate has Kelvin-Voigt damping of the membrane and the bending stiffness (stiffnessProportionalDamping, bendingStiffnessProportionalDamping), which does not damp a rigid motion, and takes 12 thickness values - a thickness and its two gradients per node, which ShellMesh computes from a thicknessFunction. ShellMesh(surfaceMap=...) maps the mesh onto a surface, with the maps of exudyn.shells.SurfaceMap - SurfaceMap.Cylinder, ConeFrustum, HemisphericalShell, ToroidalPanel, … - or a map of one’s own; exudyn.shells has functions for constraints, edge loads and hinges of plate nodes (AddNodeConstraints, AddClampToGround, ApplyEdgeLoad, AddEdgeSpringDamper, …). visualizationSettings.bodies.shells draws the contour at a thickness coordinate (contourZeta), interpolated from the corners of the elements (reducedInterpolation), and along the normal (drawNormal) (#2857, #2858, #2859, #2864).

GeneralContact can keep a contact while the bodies penetrate. With keepContactWhilePenetrating = True a sphere-sphere or sphere-triangle contact acts as long as the bodies penetrate, and its damping may pull at the end of the contact, as ObjectContactSphereSphere and ObjectContactSphereTriangle do; by default it acts only while its force presses (#2848).

What an item computes, from Python. mbs.ComputeItem(item, what) computes, at the current state, what the solver computes for one object, node or marker - the position and rotation Jacobians of a body at a local position, its mass matrix and right-hand side, the forces of a connector, the equations, constraint Jacobian and reaction forces of a joint, the kinematics of a marker -, and mbs.ComputeItem(item) lists what applies (exu.ComputeItemType). exudyn.advancedUtilities.NumericalJacobian gives the numerical derivative to compare with, for testing a model or an item of one’s own (#2779).

exudyn.HT, the homogeneous transformation of the C++ core. exu.HT(rotation=A, translation=p) composes with * (H1*H2, and H*v for a point), inverts (Inverse()), and converts to and from the 4x4 matrix (HT44(), exu.HT(T44)) - faster than the 4x4 numpy arrays of exudyn.rigidBodyUtilities, whose function HomogeneousTransformation stays (#2780). It converts the rotation from and to Euler parameters, Tait-Bryan angles and the rotation vector, and the reference coordinates of the three rigid body nodes (GetCoordinatesEP(), SetCoordinatesRxyz(q), …), gives the frame of one HT seen from another (Relative), interpolates (InterpolateSO3, InterpolateSE3) and the angle and axis of its rotation; its Set functions return it, so that exu.HT().SetRotationAxis(axis, angle) is one line (#2810). LogSE3() and SetExpSE3(v) give and take the motion vector of a screw motion, LogR3xSO3() and SetExpR3xSO3(v) the translation and the rotation vector (#2819). The example homogeneousTransformationInterpolation.py drives rigid bodies along both interpolations; exu.HT(H) copies an HT (#2824).

The output variable HomogeneousTransformation. Every node, body point, marker and connector that gives Position and RotationMatrix also gives HomogeneousTransformation, the 4x4 matrix [A p; 0 1]: GetNodeOutput, GetObjectOutputBody and GetMarkerOutput return it as an exu.HT, a sensor stores its 16 values row by row, from which exu.HT(values) makes the HT (#2780, #2789, #2792).

A frame as one parameter. ObjectGround takes its frame as referencePosition and referenceRotation or at once as referenceHT - a 4x4 matrix, its 16 values or an exu.HT; a parameter left None is not given, and an HT given with one of its parts must agree with it. CreateGround and CreateRigidBody take referenceHT, and CreateRigidBody also initialHT for initialRotationMatrix and initialDisplacement (#2793, #2794). The rigid markers take localHT, a frame with a rotation in the body, link or node: MarkerBodyRigid and MarkerKinematicTreeRigid with localPosition as its translation, MarkerSuperElementRigid with offset, MarkerNodeRigid a rotation only - so a joint can take its axis from its markers instead of rotationMarker0/1 (#2795). ObjectKinematicTree takes its joint transformations and offsets as one list jointHTs, and numpy reads an exu.HT as its 4x4 matrix (np.array(H)), so the HT functions of exudyn.rigidBodyUtilities and the robotics classes take an exu.HT wherever they take a 4x4 array (#2798, #2799).

The rotation of a joint is its markers’. rotationMarker0/1 of ObjectJointGeneric, ObjectJointRevoluteZ, ObjectJointPrismaticX, ObjectConnectorRigidBodySpringDamper and ObjectConnectorTorsionalSpringDamper are deprecated and removed in 2031: the rotation is given to the markers as localHT, e.g. MarkerBodyRigid(bodyNumber=b, localHT=HomogeneousTransformation(A, p)); setting one other than the unit matrix gives a DeprecationWarning at the line that adds the item. The Create... functions, AddRevoluteJoint, AddPrismaticJoint, GetJointArgs and the robotics classes put the rotation into the markers they create (#2745). ObjectConnectorRigidBodySpringDamper applies rotationMarker0 after the frame of marker 0, as the joints do and as its page says; a model with a rotationMarker0 other than the unit matrix moves differently than before (#2801). ObjectContactCurveCircles has no rotationMarker0 any more: it was used only for drawing, and Assemble() refused any value other than the unit matrix; the curve lies in the frame of marker 0 (#2803).

Deprecations: once, counted, and found. A deprecated setting, item parameter or function warns once per session and name; exu.special.deprecations.warnOnce = False shows every use, to find all of them in a script. Every use is counted in exu.sys['deprecationUse'], by source (simulationSettings, visualizationSettings, items, functions) and name, so a test sees whether a model used anything deprecated (recordUse). exudev scripts also reports deprecated and removed item parameters, as keyword of the item class and as key of an item dictionary (#2804, #2805, #2806).

The deprecated functions of the Python library warn as well. AddRigidBody, AddRevoluteJoint, AddPrismaticJoint, graphics.BrickXYZ, GenerateStraightLineANCFCable2D and the others marked DEPRECATED in their description, and the arguments bodyList of the Create... functions and numberOfChildren/survivingIndividuals of GeneticOptimization, give a DeprecationWarning at the line of the script, once per session, and are counted in exu.sys['deprecationUse']['library']; each says what to use instead. They, and the deprecated functions of the C++ module, are removed in 2029; exudev scripts reports them in a script (#2807).

The simulation settings, reordered. No substructure ends in Settings any more, everything of the solution file is in solution.file, of the sensors in solution.sensors, of the restart file in solution.restart, and the solver of mbs.SolveDynamic is a setting. Every old name still works until 2031, with a DeprecationWarning naming the new one, and exudev scripts <folder> --fix rewrites a script to the new names (#2813):

old

new

solutionSettings

solution

solutionSettings.writeSolutionToFile, coordinatesSolutionFileName, solutionWritePeriod

solution.file.write, .name, .writePeriod

solutionSettings.appendToFile, binarySolutionFile, writeFileHeader, writeFileFooter, writeInitialValues

solution.file.append, .binary, .writeHeader, .writeFooter, .writeInitialValues

solutionSettings.solutionInformation, flushFilesDOF

solution.file.information, .flushAboveCoordinates

solutionSettings.exportVelocities, exportAccelerations, …

solution.file.export.velocities, .accelerations, …

solutionSettings.sensorsStoreAndWriteFiles, sensorsWritePeriod, sensorsAppendToFile, sensorsWriteFileHeader, sensorsWriteFileFooter

solution.sensors.active, .writePeriod, .append, .writeHeader, .writeFooter

solutionSettings.writeRestartFile, restartFileName, restartWritePeriod

solution.restart.write, .name, .writePeriod

solutionSettings.outputPrecision (files)

solution.precision

outputPrecision (console)

consolePrecision

linearSolverSettings, linearSolverType

linearSolver, linearSolver.solverType

displayComputationTime, displayGlobalTimers, displayStatistics

show.computationTime, show.globalTimers, show.statistics

timeIntegration.simulateInRealtime, realtimeFactor, realtimeWaitMicroseconds

timeIntegration.realtime.active, .factor, .waitMicroseconds

timeIntegration.explicitIntegration

timeIntegration.explicit

timeIntegration.explicitIntegration.dynamicSolverType

timeIntegration.solverType

newton.newtonResidualMode, newton.useNewtonSolver

newton.residualMode, newton.active

numericalDifferentiation.forODE2connectors, staticSolver.constrainODE1coordinates

forODE2Connectors, constrainODE1Coordinates

timeIntegration.solverType (default GeneralizedAlpha) is the solver mbs.SolveDynamic uses; a solverType given to SolveDynamic is used for that run and the setting is set back afterwards - SolveDynamic no longer leaves the explicit solver type written into the settings. An exudyn.MainSolverExplicit used directly takes the solver from timeIntegration.solverType and refuses an implicit one with a message naming the setting.

The binary solution file (solution.file.binary) stores its numbers as float if solution.precision is below 8 and as double otherwise (#2816).

Item parameters without the prefix physics, and a few more renamed. The parameters of the bodies and finite elements lost their prefix - physicsMass is mass, physicsInertia is inertia, physicsCenterOfMass is centerOfMass, physicsLength, physicsMassPerLength, physicsAxialStiffness, physicsBendingDamping and the others of the beams and the plate likewise; radiusSphere is sphereRadius (ContactSphereTorus, ContactSphereTriangle), the friction of ObjectConnectorCoordinateSpringDamperExt is dynamicFrictionForce, staticFrictionOffsetForce and viscousFrictionFactor (N s/m), factorValue1 of ObjectConnectorCoordinate is factor1, rollingFrictionViscous of ObjectConnectorRollingDiscPenalty is rollingViscousFriction (s/m), and intrinsicFormulation and classicalFormulation are useIntrinsicFormulation and useClassicalFormulation. The Create... functions take the new names. Every old name still works until 2031 with a DeprecationWarning - in the item class, in a dictionary, in GetObjectParameter/SetObjectParameter and as argument of a Create... function - and exudev scripts --fix rewrites it (#2814).

A system without coordinates - only ground, sensors and user functions - is solved by every solver: time advances, the user functions are called and the sensors record (#2790).

The frame of a rigid marker is drawn with visualizationSettings.markers.showBasis and basisSize: three lines in red, green and blue, or three arrows with short heads (#2791).

Curved shapes in GraphicsData. 6-node (quadratic) triangles - the key triangles6 of a TriangleList - quadratic lines (Lines with shape 'quadratic') and quadratic edges (edges3) are drawn curved: the renderers split them when they draw, as fine as visualizationSettings.openGL.advanced.curvedTriangleTilingAngle asks, and a change of it shows at once; each edge is split by its own curvature, so a surface curved in one direction is not split along the other. The type Spheres draws many spheres at once, and the raytracer intersects them exactly. The round shapes of exudyn.graphics - Cylinder, Sphere (also partial and hollow), Torus, SolidOfRevolution, Tube, LinkedCylinders and the shapes built from them - consist of 6-node triangles, as do the surfaces of quadratic NGsolve meshes and of Tet10 meshes (FEMinterface.VolumeToSurfaceElements) in the FFRF objects. python/Examples/graphicsCurvedShapes.py shows them all (#2709).

A command line for the installed package: python -m exudyn info prints the version, where the package is installed, which compiled module is loaded and which optional packages are present — the first thing to put into a bug report. monitor, plot and demo are the other three commands; see The command line: python -m exudyn.

Errors say what kind of problem they are. Everything Exudyn raises derives from exudyn.ExudynError and from the matching Python built-in, so except ValueError still works and except exudyn.SolverError is now possible — see Errors: what Exudyn raises.

Two environment variables keep a run quiet, which matters for parameter studies and for anything that runs unattended: EXUDYN_SUPPRESS_UI_WINDOW_OPEN=1 opens no renderer, viewer, plot or dialog window, and EXUDYN_OUTPUTDIRECTORY=<path> puts the files a model writes where you want them.

The windows can remember where you put them. The settings dialog has a store settings and a store positions button, the render window has a size and a position among its settings (view0.window.renderWindowSize and renderWindowPosition), and exudyn.plot.StorePlotWindowGeometry() keeps the plot windows of PlotSensor where they are arranged. Everything goes into ~/.exudyn/config.json, after showing what will be written (User settings that persist between runs).

The scene as data: SC.renderer.GetGraphicsData() returns every line, sphere, circle, text and triangle the renderer would draw, each with the item that drew it, and needs no window - for a test that checks what a model looks like, or for a figure drawn with matplotlib.

Stopping a simulation from a script: SC.renderer.StopSimulation() does what closing the render window does - the running simulation ends after its step, a later one before its first, and neither is reported as a solver failure - from a user function, another thread or a test; mbs.SetRenderEngineStopFlag(False) lets the next one run again.

exudyn.types answers questions about items from Python: which markers an object accepts, which item types exist.

mbs.Inspect(itemIndex, what) asks an existing item what it provides and requests - its output variables, its type flags, the node and marker types it requests, the access functions of a body - as lists of the exported enumerations; what is a member of exu.InspectType, or None for all that apply. A node marker answers the node types its node must provide as requirements, each a list of alternatives (#2817). The test model inspectTest.py shows it.

Tutorials as notebooks. python/Notebooks/ holds the tutorials as Jupyter notebooks, stored with the outputs of their last run; the documentation shows them with these outputs, and python/Examples/notebooks/ holds the same code as scripts. exudev notebooks runs them and stores the outputs. exudyn.interactive.ShowImage(SC) shows the scene in a notebook - an image of the raytracer, without a window (#2831). The examples of the Python-C++ interface chapter are notebooks of python/Notebooks/reference/, those of the user manual’s pages on graphics, solving and the renderer notebooks of python/Notebooks/snippets/; the tests run them, so each example on these pages shows what it printed.

Kinetic and potential energy as output variables (OutputVariableType.KineticEnergy, PotentialEnergy) of the bodies, beams, plates, superelements and spring-dampers, and exudyn.advancedUtilities.SystemEnergy for the energy of a whole system with its loads; an item that cannot compute its energy - with a user function defining its force - says so, and mbs.Inspect does not list it. The test models energiesTest.py and energiesFlexibleBodiesTest.py show them.

Springs and ropes drawn as tubes. visualizationSettings.connectors.curveTiling is the number of segments of a full turn of a spring winding or of the arc of a rope on a sheave, and connectors.drawSimplified = False draws the windings of the springs as a tube instead of lines and ObjectConnectorDistance as a rod of its drawSize; the rope of ObjectConnectorReevingSystemSprings is one closed tube along its spans and arcs (#2839, #2843). A 3D beam without section geometry is drawn as a line, and its contour colors follow it (#2837, #2843). ObjectConnectorGravity, if shown, is a line between its markers, and SensorLoad is drawn at the marker of its load (#2843).

What is new to read

The documentation is Markdown and is built with Sphinx for every release; the hand-written chapters are docs/manual/, and everything under docs/generated/ — the reference manual of all items, the Python utilities, the examples and the test models — is written by the generators from the definitions and the docstrings.

Until this release the documentation was one PDF, theDoc.pdf — a name that still appears in older issues, in scripts and in printed notes. It is the HTML documentation now: the same content, searchable, and one place per subject instead of a chapter and a PDF section saying it twice.

Installing and building are told once each. The installation instructions come before the first example, and building from source - which used to be described in three places that disagreed - is one page of the developer documentation, together with a page that takes a new developer from cloning the repository to a passing test run and one on the git workflow (#2646).

CHANGELOG.md is new: every resolved issue of the current release, newest first, with a table of every release above it. The version number says where an issue landed — the micro version is the count of issues closed in a release, so 1.10.160 is the 160th issue closed in release 1.10. The earlier releases are on the issue tracker page, which carries more about each issue than the changelog does, and the two no longer print the same list twice (#2599).

What changed behind the scenes

The wheels for Windows, Linux and macOS are built by continuous integration on every tagged release, and the documentation is built the same way. Everything else a maintainer does — build, test, documentation, issues, release — runs through one driver, exudev, which replaced sixteen batch files. None of that changes anything for a user of a wheel; it changes how quickly a fix reaches one.