Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
HillThelenActiveOnlyType.cpp
1
#define BIORBD_API_EXPORTS
2
#include "InternalForces/Muscles/HillThelenActiveOnlyType.h"
3
4
#include <math.h>
5
6
#include "InternalForces/Muscles/Characteristics.h"
7
#include "InternalForces/Muscles/MuscleGeometry.h"
8
#include "Utils/String.h"
9
10
using namespace
BIORBD_NAMESPACE;
11
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
()
12
: internal_forces::muscles::
HillThelenType
() {
13
setType
();
14
}
15
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
(
16
const
utils::String
&
name
,
17
const
internal_forces::muscles::MuscleGeometry
&geometry,
18
const
internal_forces::muscles::Characteristics
&
characteristics
)
19
: internal_forces::muscles::
HillThelenType
(
20
name
,
21
geometry,
22
characteristics
) {
23
setType
();
24
}
25
26
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
(
27
const
utils::String
&
name
,
28
const
internal_forces::muscles::MuscleGeometry
&geometry,
29
const
internal_forces::muscles::Characteristics
&
characteristics
,
30
const
internal_forces::muscles::State
&emg)
31
: internal_forces::muscles::
HillThelenType
(
32
name
,
33
geometry,
34
characteristics
,
35
emg) {
36
setType
();
37
}
38
39
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
(
40
const
utils::String
&
name
,
41
const
internal_forces::muscles::MuscleGeometry
&geometry,
42
const
internal_forces::muscles::Characteristics
&
characteristics
,
43
const
internal_forces::PathModifiers
&pathModifiers)
44
: internal_forces::muscles::
HillThelenType
(
45
name
,
46
geometry,
47
characteristics
,
48
pathModifiers) {
49
setType
();
50
}
51
52
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
(
53
const
utils::String
&
name
,
54
const
internal_forces::muscles::MuscleGeometry
&geometry,
55
const
internal_forces::muscles::Characteristics
&
characteristics
,
56
const
internal_forces::PathModifiers
&pathModifiers,
57
const
internal_forces::muscles::State
&emg)
58
: internal_forces::muscles::
HillThelenType
(
59
name
,
60
geometry,
61
characteristics
,
62
pathModifiers,
63
emg) {
64
setType
();
65
}
66
67
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
(
68
const
internal_forces::muscles::Muscle
&other)
69
: internal_forces::muscles::
HillThelenType
(other) {}
70
71
internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
(
72
const
std::shared_ptr<Muscle> other)
73
: internal_forces::muscles::
HillThelenType
(other) {}
74
75
internal_forces::muscles::HillThelenActiveOnlyType
76
internal_forces::muscles::HillThelenActiveOnlyType::DeepCopy
()
const
{
77
internal_forces::muscles::HillThelenActiveOnlyType
copy;
78
copy.
DeepCopy
(*
this
);
79
return
copy;
80
}
81
82
void
internal_forces::muscles::HillThelenActiveOnlyType::DeepCopy
(
83
const
internal_forces::muscles::HillThelenActiveOnlyType
&other) {
84
internal_forces::muscles::HillThelenType::DeepCopy
(other);
85
}
86
87
void
internal_forces::muscles::HillThelenActiveOnlyType::computeFlPE
() {
88
*
m_FlPE
= 0;
89
}
90
91
void
internal_forces::muscles::HillThelenActiveOnlyType::computeDamping
() {
92
*
m_damping
= 0;
93
}
94
95
void
internal_forces::muscles::HillThelenActiveOnlyType::setType
() {
96
*
m_type
= internal_forces::muscles::MUSCLE_TYPE::HILL_THELEN_ACTIVE;
97
}
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::PathModifiers
Holder of all the path modifiers of a muscle.
Definition
PathModifiers.h:18
BIORBD_NAMESPACE::internal_forces::muscles::Characteristics
Class Holds that muscle characteristics.
Definition
Characteristics.h:19
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenActiveOnlyType
Muscle of Hill type augmented by Thelen (https://simtk-confluence.stanford.edu/display/OpenSim/Thelen...
Definition
HillThelenActiveOnlyType.h:16
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenActiveOnlyType::setType
virtual void setType()
Set type to Hill_Thelen.
Definition
HillThelenActiveOnlyType.cpp:95
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenActiveOnlyType::DeepCopy
HillThelenActiveOnlyType DeepCopy() const
Deep copy of a Hill-Thelen-type muscle.
Definition
HillThelenActiveOnlyType.cpp:76
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenActiveOnlyType::computeDamping
virtual void computeDamping()
Compute the muscle damping.
Definition
HillThelenActiveOnlyType.cpp:91
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenActiveOnlyType::computeFlPE
virtual void computeFlPE()
Compute the Force-Length of the passive element.
Definition
HillThelenActiveOnlyType.cpp:87
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenActiveOnlyType::HillThelenActiveOnlyType
HillThelenActiveOnlyType()
Contruct a Hill-Thelen-type muscle.
Definition
HillThelenActiveOnlyType.cpp:11
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenType::DeepCopy
HillThelenType DeepCopy() const
Deep copy of a Hill-Thelen-type muscle.
Definition
HillThelenType.cpp:74
BIORBD_NAMESPACE::internal_forces::muscles::HillThelenType::HillThelenType
HillThelenType()
Contruct a Hill-Thelen-type muscle.
Definition
HillThelenType.cpp:16
BIORBD_NAMESPACE::internal_forces::muscles::HillType::m_damping
std::shared_ptr< utils::Scalar > m_damping
Muscle damping (spring force).
Definition
HillType.h:214
BIORBD_NAMESPACE::internal_forces::muscles::HillType::m_FlPE
std::shared_ptr< utils::Scalar > m_FlPE
Force-Length of the passive element.
Definition
HillType.h:218
BIORBD_NAMESPACE::internal_forces::muscles::MuscleGeometry
Class muscle geometry of the muscle.
Definition
MuscleGeometry.h:34
BIORBD_NAMESPACE::internal_forces::muscles::Muscle
Base class of all muscle.
Definition
Muscle.h:27
BIORBD_NAMESPACE::internal_forces::muscles::Muscle::characteristics
Characteristics & characteristics() const
Return the muscle characteristics.
Definition
Muscle.cpp:254
BIORBD_NAMESPACE::internal_forces::muscles::Muscle::m_type
std::shared_ptr< MUSCLE_TYPE > m_type
The type of the muscle.
Definition
Muscle.h:343
BIORBD_NAMESPACE::internal_forces::muscles::State
EMG holder to interact with the muscle.
Definition
State.h:17
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
src
InternalForces
Muscles
HillThelenActiveOnlyType.cpp
Generated by
1.18.0