|
| static void | get_input (string filename, out double m_1, out double m_2, out double x_1_0, out double y_1_0, out double x_2_0, out double y_2_0, out double v_x1_0, out double v_y1_0, out double v_x2_0, out double v_y2_0, out double t_final) |
| | Reads input from a file with the given file name.
|
| static void | input_constraints (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) |
| | Verifies that input values satisfy the physical constraints and software constraints.
|
◆ get_input()
| void InputParameters.get_input |
( |
string | filename, |
|
|
out double | m_1, |
|
|
out double | m_2, |
|
|
out double | x_1_0, |
|
|
out double | y_1_0, |
|
|
out double | x_2_0, |
|
|
out double | y_2_0, |
|
|
out double | v_x1_0, |
|
|
out double | v_y1_0, |
|
|
out double | v_x2_0, |
|
|
out double | v_y2_0, |
|
|
out double | t_final ) |
|
inlinestatic |
Reads input from a file with the given file name.
- Parameters
-
| filename | name of the input file |
| 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) |
◆ input_constraints()
| void InputParameters.input_constraints |
( |
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 ) |
|
inlinestatic |
Verifies that input values satisfy the physical constraints and software constraints.
- 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) |
The documentation for this class was generated from the following file: