Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94108310
penduleressortdesc.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 3, 23:49
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Dec 5, 23:49 (1 d, 10 h)
Engine
blob
Format
Raw Data
Handle
22737778
Attached To
rSYMKIT symkit
penduleressortdesc.h
View Options
#ifndef PENDULERESSORTDESC_H
#define PENDULERESSORTDESC_H
#include "descriptors/oscillateur.h"
class
PenduleRessort
:
public
Oscillateur
{
public:
/* Constructeurs */
PenduleRessort
(
const
Vector
&
p
,
const
Vector
&
p_p
,
const
double
&
k
,
const
double
&
l
,
const
double
&
m1
,
const
double
&
m2
,
const
double
&
fr1
=
0
,
const
double
&
fr2
=
0
,
const
double
&
g
=
9.81
,
integral_operation
op
=
NEWMARK
);
PenduleRessort
(
const
std
::
vector
<
double
>&
p
,
const
std
::
vector
<
double
>&
p_p
,
const
double
&
k
,
const
double
&
l
,
const
double
&
m1
,
const
double
&
m2
,
const
double
&
fr1
=
0
,
const
double
&
fr2
=
0
,
const
double
&
g
=
9.81
,
integral_operation
op
=
NEWMARK
);
/* Accesseurs */
double
getLenght
()
const
;
double
getk
()
const
;
double
getMass
(
int
index
)
const
;
double
getg
()
const
;
double
getFrottement
(
int
index
)
const
;
double
getPenduleAngle
()
const
;
double
getPenduleSpeed
()
const
;
double
getRessortPosition
()
const
;
double
getRessortSpeed
()
const
;
/* Manipulateurs */
void
setLenght
(
const
double
&
);
void
setk
(
const
double
&
);
void
setMass
(
const
double
&
m
,
int
index
);
void
setg
(
const
double
&
);
void
setFrottement
(
const
double
&
fr
,
int
index
);
void
setPenduleAngle
(
double
);
void
setPenduleSpeed
(
double
);
void
setRessortPosition
(
double
);
void
setRessortSpeed
(
double
);
double
energy
()
const
;
private:
/* Attributs */
double
k
;
double
l
;
double
g
;
double
m
[
2
];
double
fr
[
2
];
/* Equation caractérisant le mouvement d'un Pendule-Ressort */
virtual
Vector
equation
()
const
override
;
};
#endif
// PENDULERESSORTDESC_H
Event Timeline
Log In to Comment