Commit Graph

106 Commits

Author SHA1 Message Date
forbes
e32c9cd793 fix: use previous iteration dxNorm in convergence check
isConvergedToNumericalLimit() compared dxNorms->at(iterNo) to itself
instead of comparing current vs previous iteration. This prevented
the solver from detecting convergence improvement, causing it to
exhaust its iteration limit on assemblies with many constraints.

Fix: read dxNorms->at(iterNo - 1) for the previous iteration's norm.
2026-02-01 21:10:12 -06:00
Aik-Siong Koh
b9ba0976f2 Replace assert(false) with throw SimulationStoppingError(To be implemented.) 2025-09-16 11:32:22 -05:00
Jacob Oursland
bacb65f9c0 Remove overzealous asserts that break debug builds by deferring to base class. 2025-08-27 10:18:25 -05:00
Tobias Pisani
c1f052eaf9 Fix build on GCC
Adds <algorithm> include to two source files where libstdc++
does not indirectly include them
2025-08-26 19:50:09 -05:00
Aik-Siong Koh
d9ad3290c0 constraintSpecs and constraintSpec and clean up. 2025-08-12 20:57:08 -05:00
Aik-Siong Koh
1a8fdc32d3 Implement Power function 2025-08-07 21:43:45 -05:00
Benjamin Nauck
09d6175a2b Remove warning about unused variables (#87) 2025-01-21 11:40:11 -07:00
Chris Mayo
07785b7576 include cstdint for SIZE_MAX (#86)
GCC 15 is removing cstdint from the C++ Standard Library.
2024-11-27 15:07:28 -07:00
huguesdpdn
2e3659c4bc Fix compilation under gcc7.5 (#81)
* Correct typo in individual license file name

* Fix compilation under GCC 7.5 for Ubuntu
2024-11-04 23:00:12 +08:00
Chris Mayo
9e44ac50b8 Install missing headers (#84) 2024-10-24 13:34:54 +08:00
huguesdpdn
91f70382be Correct compilation warnings for 'int' casts with correct types (#75) 2024-09-08 09:01:10 -06:00
aiksiongkoh
6bf651cd31 Cmake gtest (#79)
* Check rackpin and gear for zero radii

* rebase zero-radii-check (#69)

* contributing

* Update push-freecad.yml

updated actions/checkout to v4

* dragging log for debugging

* fix calcdxNorm crash

* setDebug and remove MBDyn*

* Update cmakelists.txt

* fix includes for gcc-14

gcc-14 is more disciplined about not including <algorithm> transitively.

* fix runDragStep

* backhoe files (#65)

* Mark unused variables to silence compiler warnings. (#64)

* Backhoe issues (#67)

* backhoe issues

* runDragStep edit

* backhoe issues

* runDragStep edit

* Reduce large drag step progressively until convergence.

* Switch to using built-in M_PI, even on MSVC (#68)

---------

Co-authored-by: Brad Collette <bradcollette@pop-os.localdomain>
Co-authored-by: mosfet80 <realeandrea@yahoo.it>
Co-authored-by: PaddleStroke <pierrelouis.boyer@gmail.com>
Co-authored-by: Jed Brown <jed@jedbrown.org>
Co-authored-by: sliptonic <shopinthewoods@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* in progress

* Gtest added

* With changes from Assembly

* WinMerge main and this branch

* Add flag for GTest

* Flag to suppress OndselSolverMain

* rebase zero-radii-check (#69)

* contributing

* Update push-freecad.yml

updated actions/checkout to v4

* dragging log for debugging

* fix calcdxNorm crash

* setDebug and remove MBDyn*

* Update cmakelists.txt

* fix includes for gcc-14

gcc-14 is more disciplined about not including <algorithm> transitively.

* fix runDragStep

* backhoe files (#65)

* Mark unused variables to silence compiler warnings. (#64)

* Backhoe issues (#67)

* backhoe issues

* runDragStep edit

* backhoe issues

* runDragStep edit

* Reduce large drag step progressively until convergence.

* Switch to using built-in M_PI, even on MSVC (#68)

---------

Co-authored-by: Brad Collette <bradcollette@pop-os.localdomain>
Co-authored-by: mosfet80 <realeandrea@yahoo.it>
Co-authored-by: PaddleStroke <pierrelouis.boyer@gmail.com>
Co-authored-by: Jed Brown <jed@jedbrown.org>
Co-authored-by: sliptonic <shopinthewoods@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* in progress

* Gtest added

* With changes from Assembly

* Add flag for GTest

* Flag to suppress OndselSolverMain

---------

Co-authored-by: Brad Collette <bradcollette@pop-os.localdomain>
Co-authored-by: mosfet80 <realeandrea@yahoo.it>
Co-authored-by: PaddleStroke <pierrelouis.boyer@gmail.com>
Co-authored-by: Jed Brown <jed@jedbrown.org>
Co-authored-by: sliptonic <shopinthewoods@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-08-30 15:19:30 -06:00
huguesdpdn
20845a39cc Correct compilation warnings with exceptions (#76) 2024-08-15 16:38:24 -06:00
lorenz
9b9ceeeff6 win: compiling with clang needs also _USE_MATH_DEFINES (#73) 2024-08-13 07:20:20 -06:00
aiksiongkoh
3d6a23a678 Cmake gtest (#72)
* Check rackpin and gear for zero radii

* rebase zero-radii-check (#69)

* contributing

* Update push-freecad.yml

updated actions/checkout to v4

* dragging log for debugging

* fix calcdxNorm crash

* setDebug and remove MBDyn*

* Update cmakelists.txt

* fix includes for gcc-14

gcc-14 is more disciplined about not including <algorithm> transitively.

* fix runDragStep

* backhoe files (#65)

* Mark unused variables to silence compiler warnings. (#64)

* Backhoe issues (#67)

* backhoe issues

* runDragStep edit

* backhoe issues

* runDragStep edit

* Reduce large drag step progressively until convergence.

* Switch to using built-in M_PI, even on MSVC (#68)

---------

Co-authored-by: Brad Collette <bradcollette@pop-os.localdomain>
Co-authored-by: mosfet80 <realeandrea@yahoo.it>
Co-authored-by: PaddleStroke <pierrelouis.boyer@gmail.com>
Co-authored-by: Jed Brown <jed@jedbrown.org>
Co-authored-by: sliptonic <shopinthewoods@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>

* in progress

* Gtest added

---------

Co-authored-by: Brad Collette <bradcollette@pop-os.localdomain>
Co-authored-by: mosfet80 <realeandrea@yahoo.it>
Co-authored-by: PaddleStroke <pierrelouis.boyer@gmail.com>
Co-authored-by: Jed Brown <jed@jedbrown.org>
Co-authored-by: sliptonic <shopinthewoods@gmail.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-07-30 14:45:59 -06:00
PaddleStroke
64e546fe80 Merge pull request #70 from Ondsel-Development/fix-compiler-warnings
Fix various compiler warnings
2024-07-05 16:50:27 +02:00
Aik-Siong Koh
9171be6fb6 Check rackpin and gear for zero radii 2024-06-28 10:08:52 -06:00
Pieter Hijma
2b48cda825 Fix various compiler warnings 2024-06-27 20:45:29 +02:00
Chris Hennes
d50532d3e7 Switch to using built-in M_PI, even on MSVC (#68) 2024-06-25 18:12:17 -06:00
aiksiongkoh
9058e0849d Backhoe issues (#67)
* backhoe issues

* runDragStep edit

* backhoe issues

* runDragStep edit

* Reduce large drag step progressively until convergence.
2024-06-24 22:24:38 -06:00
Chris Hennes
79a1e4ed4c Mark unused variables to silence compiler warnings. (#64) 2024-06-24 17:23:28 -06:00
aiksiongkoh
a0ed650e0e backhoe files (#65) 2024-06-23 19:13:04 -06:00
PaddleStroke
19c373dff5 Merge pull request #62 from Ondsel-Development/dragging.log
fix runDragStep
2024-06-12 18:21:29 +02:00
Aik-Siong Koh
a36daffb8d fix runDragStep 2024-06-11 17:33:40 -05:00
Jed Brown
568fbfda3c fix includes for gcc-14
gcc-14 is more disciplined about not including <algorithm> transitively.
2024-05-12 11:50:02 -06:00
Aik-Siong Koh
aa0d5ada2e setDebug and remove MBDyn* 2024-04-25 13:35:10 -06:00
Aik-Siong Koh
18a8b5cecf fix calcdxNorm crash 2024-04-24 16:22:29 -06:00
Aik-Siong Koh
5e19e4acd2 dragging log for debugging 2024-04-22 14:44:10 -06:00
PaddleStroke
5925f978aa Merge branch 'main' into setmotionJoint 2024-04-09 10:52:48 +02:00
Aik-Siong Koh
8d3aecbcfb Limits output issue. 2024-04-08 23:01:06 -06:00
Aik-Siong Koh
55963abe51 rackPin issue. 2024-04-08 21:54:34 -06:00
Aik-Siong Koh
abd5d4af44 updateMbDFromRotationMatrix 2024-04-07 08:12:16 +02:00
Aik-Siong Koh
5a0dadcdde updateMbDFromRotationMatrix 2024-04-05 15:41:20 -06:00
Aik-Siong Koh
994f90d7ae setmotionJoint and TranslationLimit 2024-04-04 08:30:30 +02:00
Aik-Siong Koh
c3c6903f1f setmotionJoint and TranslationLimit 2024-04-03 13:56:16 -06:00
Aik-Siong Koh
ad4a563b42 Implement Limits 2024-04-03 08:56:40 +02:00
Aik-Siong Koh
3a9e7cecab size_t and const 2024-04-03 08:56:40 +02:00
Aik-Siong Koh
85557e1fa4 AllowRotation and size_t 2024-04-03 08:56:40 +02:00
aiksiongkoh
fe99ad2593 Solve dragging (#47)
runPreDrag, runDragStep, runPostDrag, PosICDragNewtonRaphson
2024-01-11 14:28:38 +01:00
Aik-Siong Koh
5907363be7 rackscrew.asmt now runs.
CMakeLists.txt

gitignore

rackscrew.asmt now runs.

CMakeLists.txt

remove cached assembly.asmt
2023-12-13 14:52:16 -06:00
Aik-Siong Koh
2bb83b82c0 CompoundJoints debugged 2023-12-12 15:27:26 -07:00
Aik-Siong Koh
56bba4e921 MBDyn new joints, sine, cosine 2023-12-12 15:27:26 -07:00
Aik-Siong Koh
c81c5dc2ac size_t count 2023-12-12 15:27:26 -07:00
Aik-Siong Koh
c29df1719e (int) added 2023-12-12 15:27:26 -07:00
John Dupuy
87ed8700e2 modify code to suppress or fix warnings in gcc and clang (#41)
* first fix to start branch PR

* explicit conversion from sizet to int

* Array.h and DiagonalMatrix.h

* many sizet to int conversions

* removed some unused variables and added expl overrides

* removed many unused parameters

* more typing

* even more

* last of the easy changes
2023-12-08 10:00:00 -07:00
PaddleStroke
8eb7d5d59c Remove EXPORT tag as we do not use dll. (#39) 2023-12-04 02:07:31 -07:00
Aik-Siong Koh
9266d9cdf9 CMakeLists.txt 2023-12-01 11:25:54 -07:00
Aik-Siong Koh
173b94323a MBDynGravity 2023-12-01 01:39:50 -07:00
Aik-Siong Koh
428e81c5ce using namespace MbD; 2023-12-01 01:13:13 -07:00
Aik-Siong Koh
a2871455f4 ASMTPointInPlaneJoint::storeOnLevel 2023-12-01 00:53:36 -07:00