Biorbd
Release_1.13.0
Toggle main menu visibility
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
9
namespace
BIORBD_NAMESPACE {
10
namespace
internal_forces {
11
class
Geometry
;
12
namespace
ligaments {
13
20
class
BIORBD_API
LigamentSpringSecondOrder
:
public
Ligament
{
21
public
:
25
LigamentSpringSecondOrder
();
26
35
LigamentSpringSecondOrder
(
36
const
utils::Scalar&
stiffness
,
37
const
utils::Scalar&
epsilon
,
38
const
utils::String
&
name
,
39
const
Geometry
& geometry,
40
const
LigamentCharacteristics
&
characteristics
);
41
51
LigamentSpringSecondOrder
(
52
const
utils::Scalar&
stiffness
,
53
const
utils::Scalar&
epsilon
,
54
const
utils::String
&
name
,
55
const
Geometry
& geometry,
56
const
LigamentCharacteristics
&
characteristics
,
57
const
internal_forces::PathModifiers
& pathModifiers);
58
63
LigamentSpringSecondOrder
(
const
Ligament
& other);
64
69
LigamentSpringSecondOrder
(
const
std::shared_ptr<Ligament> other);
70
74
virtual
~LigamentSpringSecondOrder
();
75
80
LigamentSpringSecondOrder
DeepCopy
()
const
;
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>
126
m_epsilon
;
127
};
128
129
}
// namespace ligaments
130
}
// namespace internal_forces
131
}
// namespace BIORBD_NAMESPACE
132
133
#endif
// BIORBD_LIGAMENTS_LIGAMENT_SPRING_SECOND_ORDER_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::LigamentSpringSecondOrder::DeepCopy
LigamentSpringSecondOrder DeepCopy() const
Deep copy of a second order spring like ligament.
Definition
LigamentSpringSecondOrder.cpp:58
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::LigamentSpringSecondOrder
LigamentSpringSecondOrder()
Contruct a Ligament.
Definition
LigamentSpringSecondOrder.cpp:17
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::setEpsilon
void setEpsilon(const utils::Scalar &epsilon)
Set the epsilon.
Definition
LigamentSpringSecondOrder.cpp:85
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::stiffness
const utils::Scalar & stiffness() const
Get the stiffness.
Definition
LigamentSpringSecondOrder.cpp:71
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::epsilon
const utils::Scalar & epsilon() const
Get the epsilon.
Definition
LigamentSpringSecondOrder.cpp:81
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::m_stiffness
std::shared_ptr< utils::Scalar > m_stiffness
stiffness of the ligament
Definition
LigamentSpringSecondOrder.h:124
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::computeFl
virtual void computeFl()
Compute the Force-length of the contractile element.
Definition
LigamentSpringSecondOrder.cpp:121
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::setStiffness
void setStiffness(const utils::Scalar &stiffness)
Set the stiffness.
Definition
LigamentSpringSecondOrder.cpp:75
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::setType
virtual void setType()
Set type to second order spring like ligament.
Definition
LigamentSpringSecondOrder.cpp:116
BIORBD_NAMESPACE::internal_forces::ligaments::LigamentSpringSecondOrder::m_epsilon
std::shared_ptr< utils::Scalar > m_epsilon
small parameter to avoid negative value
Definition
LigamentSpringSecondOrder.h:126
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
LigamentSpringSecondOrder.h
Generated by
1.18.0