Biorbd Release_1.13.0
Loading...
Searching...
No Matches
LigamentSpringSecondOrder.h
1#ifndef BIORBD_LIGAMENTS_LIGAMENT_SPRING_SECOND_ORDER_H
2#define BIORBD_LIGAMENTS_LIGAMENT_SPRING_SECOND_ORDER_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/Ligaments/Ligament.h"
7#include "Utils/Scalar.h"
8
9namespace BIORBD_NAMESPACE {
10namespace internal_forces {
11class Geometry;
12namespace ligaments {
13
20class BIORBD_API LigamentSpringSecondOrder : public Ligament {
21 public:
26
36 const utils::Scalar& stiffness,
37 const utils::Scalar& epsilon,
38 const utils::String& name,
39 const Geometry& geometry,
41
52 const utils::Scalar& stiffness,
53 const utils::Scalar& epsilon,
54 const utils::String& name,
55 const Geometry& geometry,
57 const internal_forces::PathModifiers& pathModifiers);
58
64
69 LigamentSpringSecondOrder(const std::shared_ptr<Ligament> other);
70
75
81
87 void DeepCopy(const LigamentSpringSecondOrder& other);
88
93 const utils::Scalar& stiffness() const;
94
99 void setStiffness(const utils::Scalar& stiffness);
100
105 const utils::Scalar& epsilon() const;
106
111 void setEpsilon(const utils::Scalar& epsilon);
112
113 protected:
117 virtual void setType();
118
122 virtual void computeFl();
123
124 std::shared_ptr<utils::Scalar> m_stiffness;
125 std::shared_ptr<utils::Scalar>
127};
128
129} // namespace ligaments
130} // namespace internal_forces
131} // namespace BIORBD_NAMESPACE
132
133#endif // BIORBD_LIGAMENTS_LIGAMENT_SPRING_SECOND_ORDER_H
const utils::String & name() const
Return the name of the muscle.
Definition Compound.cpp:48
Class Geometry of the muscle.
Definition Geometry.h:31
Holder of all the path modifiers of a muscle.
LigamentSpringSecondOrder DeepCopy() const
Deep copy of a second order spring like ligament.
std::shared_ptr< utils::Scalar > m_stiffness
stiffness of the ligament
virtual void computeFl()
Compute the Force-length of the contractile element.
void setStiffness(const utils::Scalar &stiffness)
Set the stiffness.
virtual void setType()
Set type to second order spring like ligament.
std::shared_ptr< utils::Scalar > m_epsilon
small parameter to avoid negative value
const LigamentCharacteristics & characteristics() const
Return the ligament characteristics.
Definition Ligament.cpp:237
Wrapper around the std::string class with augmented functionality.
Definition String.h:18