Skip to content

Commit 3f69b6f

Browse files
authored
Merge pull request #4117 from opensim-org/exponential_contact_force
Add class `ExponentialContactForce`
2 parents 120f269 + e5313ae commit 3f69b6f

File tree

8 files changed

+2394
-39
lines changed

8 files changed

+2394
-39
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ v4.6
1616
- Fixed bug in `C3DFileAdapter` where there was an error when reading C3D files with more than 255 markers. It now excludes non-marker points (POINT:ANGLES, POINT:POWERS, POINT:FORCES, POINT:MOMENTS, and POINT:SCALARS). (#3606)
1717
- updated `ezc3d` version to `1.5.19`.
1818
- Removed `WrapCylinderObst`, `WrapDoubleCylinderObst`, and `WrapSphereObst`. (#4120)
19+
- Added `ExponentialContactForce`, a class that models forces between a point and a contact plane using exponential springs. Improved computational performance over the Hunt-Crossley contact model is achieved in non-slip conditions through the use of an elastic frictional force component which reduces system stiffness (enabling larger integration step sizes) and eliminates drift velocity. (#4117)
20+
1921

2022
v4.5.2
2123
======

OpenSim/Common/Array.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
* limitations under the License. *
2424
* -------------------------------------------------------------------------- */
2525

26-
/* Note: This code was originally developed by Realistic Dynamics Inc.
27-
* Author: Frank C. Anderson
26+
/* Note: This code was originally developed by Realistic Dynamics Inc.
27+
* Author: Frank C. Anderson
2828
*/
2929

3030
#include "Assertion.h"
@@ -69,7 +69,7 @@ template<class T>
6969
class Array {
7070

7171
public:
72-
Array(Array const&) = default;;
72+
Array(Array const&) = default;
7373
Array(Array&&) noexcept = default;
7474
Array& operator=(Array const&) = default;
7575
Array& operator=(Array&&) noexcept = default;

OpenSim/Moco/Components/ActuatorInputController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void ActuatorInputController::extendConnectToModel(Model& model) {
9494

9595
const auto& controlNames = getControlNames();
9696
const auto& controlIndexes = getControlIndexes();
97-
OPENSIM_ASSERT(getNumControls() == static_cast<int>(controlNames.size()))
97+
OPENSIM_ASSERT(getNumControls() == static_cast<int>(controlNames.size()));
9898

9999
const auto& input = getInput<double>("controls");
100100
const auto inputControlLabels = getInputControlLabels();

0 commit comments

Comments
 (0)