Class representing an ODE system.
More...
|
| | 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.
|
| int | getDimension () |
| | returns the ODE system dimension
|
| void | computeDerivatives (double t, double[] q, double[] dq) |
| | function representation of an ODE system
|
Class representing an ODE system.
◆ ODE()
| BSS.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_1 | mass of the first star (kg) |
| m_2 | mass of the second star (kg) |
| x_1_0 | initial x-position of the first star (m) |
| y_1_0 | initial y-position of the first star (m) |
| x_2_0 | initial x-position of the second star (m) |
| y_2_0 | initial y-position of the second star (m) |
| v_x1_0 | initial x-velocity of the first star (m/s) |
| v_y1_0 | initial y-velocity of the first star (m/s) |
| v_x2_0 | initial x-velocity of the second star (m/s) |
| v_y2_0 | initial y-velocity of the second star (m/s) |
| t_final | final time (s) |
◆ computeDerivatives()
| void BSS.ODE.computeDerivatives |
( |
double | t, |
|
|
double[] | q, |
|
|
double[] | dq ) |
function representation of an ODE system
- Parameters
-
| t | current independent variable value in ODE solution |
| q | dependent variables (m) |
| dq | change in dependent variables (m) |
◆ getDimension()
| int BSS.ODE.getDimension |
( |
| ) |
|
returns the ODE system dimension
- Returns
- dimension of the ODE system
The documentation for this class was generated from the following file: