BSS
Loading...
Searching...
No Matches
ODE Class Reference

Class representing an ODE system. More...

#include <ODE.hpp>

Public Member Functions

 ODE (double m_1, double m_2, double x_1_0, double y_1_0, double x_2_0, double y_2_0, double v_x1_0, double v_y1_0, double v_x2_0, double v_y2_0, double t_final)
 Constructor for ODE objects.
void operator() (vector< double > q, vector< double > &dq, double t)
 function representation of ODE system

Detailed Description

Class representing an ODE system.

Constructor & Destructor Documentation

◆ ODE()

ODE::ODE ( double m_1,
double m_2,
double x_1_0,
double y_1_0,
double x_2_0,
double y_2_0,
double v_x1_0,
double v_y1_0,
double v_x2_0,
double v_y2_0,
double t_final )

Constructor for ODE objects.

Parameters
m_1mass of the first star (kg)
m_2mass of the second star (kg)
x_1_0initial x-position of the first star (m)
y_1_0initial y-position of the first star (m)
x_2_0initial x-position of the second star (m)
y_2_0initial y-position of the second star (m)
v_x1_0initial x-velocity of the first star (m/s)
v_y1_0initial y-velocity of the first star (m/s)
v_x2_0initial x-velocity of the second star (m/s)
v_y2_0initial y-velocity of the second star (m/s)
t_finalfinal time (s)

Member Function Documentation

◆ operator()()

void ODE::operator() ( vector< double > q,
vector< double > & dq,
double t )

function representation of ODE system

Parameters
qdependent variables (m)
dqchange in dependent variables (m)
tcurrent independent variable value in ODE solution

The documentation for this class was generated from the following file: