Page MenuHomec4science

pendulecp2.h
No OneTemporary

File Metadata

Created
Fri, Dec 13, 20:18

pendulecp2.h

#ifndef PENDULECP2_H
#define PENDULECP2_H
#include "descriptors/oscillateur.h"
class PenduleCp2 : public Oscillateur
{
public:
/* Constructeurs */
PenduleCp2(const Vector& p,
const Vector& p_p,
const double& l1, const double& l2,
const double& m1, const double& m2,
const double& g = 9.81,
integral_operation op = NEWMARK);
PenduleCp2(const std::vector<double>& p,
const std::vector<double>& p_p,
const double& l1, const double& l2,
const double& m1, const double& m2,
const double& g = 9.81,
integral_operation op = NEWMARK);
/* Accesseurs */
double getl1() const;
double getl2() const;
double getm1() const;
double getm2() const;
double getg() const;
/* Manipulateurs */
void setl1(const double&);
void setl2(const double&);
void setm1(const double&);
void setm2(const double&);
void setg(const double&);
/* Convertit position en un SVector<3> pour l'implementation graphique */
virtual SVector<3> cartesiennes() const override;
SVector<3> cartesiennes2() const;
private:
double l1;
double l2;
double m1;
double m2;
double g;
/* Equation caractérisant le mouvement d'un Pendule Couplé */
virtual Vector equation() const override;
};
#endif // PENDULECP2_H

Event Timeline