Biorbd
Release_1.13.0
Toggle main menu visibility
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
9
namespace
BIORBD_NAMESPACE {
10
namespace
internal_forces {
11
class
Geometry
;
12
namespace
ligaments {
13
17
class
BIORBD_API
LigamentSpringLinear
:
public
Ligament
{
18
public
:
22
LigamentSpringLinear
();
23
31
LigamentSpringLinear
(
32
const
utils::Scalar&
stiffness
,
33
const
utils::String
&
name
,
34
const
Geometry
& geometry,
35
const
LigamentCharacteristics
&
characteristics
);
36
45
LigamentSpringLinear
(
46
const
utils::Scalar&
stiffness
,
47
const
utils::String
&
name
,
48
const
Geometry
& geometry,
49
const
LigamentCharacteristics
&
characteristics
,
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
73
LigamentSpringLinear
DeepCopy
()
const
;
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
BIORBD_NAMESPACE::internal_forces::Compound::name
const utils::String & name() const
Return the name of the muscle.
Definition
Compound.cpp:48
BIORBD_NAMESPACE::internal_forces::Geometry
Class Geometry of the muscle.
Definition
Geometry.h:31
BIORBD_NAMESPACE::internal_forces::PathModifiers
Holder of all the path modifiers of a muscle.
Definition
PathModifiers.h:18
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentCharacteristics
Class Holds that ligament characteristics.
Definition
LigamentCharacteristics.h:19
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::computeFl
virtual void computeFl()
Compute the Force-length of the contractile element.
Definition
LigamentSpringLinear.cpp:101
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::setStiffness
void setStiffness(const utils::Scalar &stiffness)
Set the ligament stiffness.
Definition
LigamentSpringLinear.cpp:81
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::m_stiffness
std::shared_ptr< utils::Scalar > m_stiffness
stiffness of the ligament
Definition
LigamentSpringLinear.h:105
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::stiffness
const utils::Scalar & stiffness() const
Return the ligament stiffness.
Definition
LigamentSpringLinear.cpp:77
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::setType
virtual void setType()
Set type to linear spring like ligament.
Definition
LigamentSpringLinear.cpp:97
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::DeepCopy
LigamentSpringLinear DeepCopy() const
Deep copy of a linear spring like ligament.
Definition
LigamentSpringLinear.cpp:64
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringLinear::LigamentSpringLinear
LigamentSpringLinear()
Contruct a Ligament.
Definition
LigamentSpringLinear.cpp:20
BIORBD_NAMESPACE::internal_forces::ligaments::Ligament::characteristics
const LigamentCharacteristics & characteristics() const
Return the ligament characteristics.
Definition
Ligament.cpp:237
BIORBD_NAMESPACE::internal_forces::ligaments::Ligament::Ligament
Ligament()
Construct a ligament.
Definition
Ligament.cpp:20
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
InternalForces
Ligaments
LigamentSpringLinear.h
Generated by
1.18.0