Biorbd Release_1.13.0
Loading...
Searching...
No Matches
LigamentSpringLinear.h
1#ifndef BIORBD_LIGAMENTS_LIGAMENT_SPRING_LINEAR_H
2#define BIORBD_LIGAMENTS_LIGAMENT_SPRING_LINEAR_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
17class BIORBD_API LigamentSpringLinear : public Ligament {
18 public:
23
32 const utils::Scalar& stiffness,
33 const utils::String& name,
34 const Geometry& geometry,
36
46 const utils::Scalar& stiffness,
47 const utils::String& name,
48 const Geometry& geometry,
50 const internal_forces::PathModifiers& pathModifiers);
51
56 LigamentSpringLinear(const Ligament& other);
57
62 LigamentSpringLinear(const std::shared_ptr<Ligament> other);
63
67 virtual ~LigamentSpringLinear();
68
74
80 void DeepCopy(const LigamentSpringLinear& other);
81
86 const utils::Scalar& stiffness() const;
87
92 void setStiffness(const utils::Scalar& stiffness);
93
94 protected:
98 virtual void setType();
99
103 virtual void computeFl();
104
105 std::shared_ptr<utils::Scalar> m_stiffness;
106};
107
108} // namespace ligaments
109} // namespace internal_forces
110} // namespace BIORBD_NAMESPACE
111
112#endif // BIORBD_LIGAMENTS_LIGAMENT_SPRING_LINEAR_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.
virtual void computeFl()
Compute the Force-length of the contractile element.
void setStiffness(const utils::Scalar &stiffness)
Set the ligament stiffness.
std::shared_ptr< utils::Scalar > m_stiffness
stiffness of the ligament
const utils::Scalar & stiffness() const
Return the ligament stiffness.
virtual void setType()
Set type to linear spring like ligament.
LigamentSpringLinear DeepCopy() const
Deep copy of a linear spring like ligament.
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