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

Static Public Member Functions

static Object[] get_input (String filename) throws FileNotFoundException
 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.

Member Function Documentation

◆ get_input()

Object[] BSS.InputParameters.get_input ( String filename) throws FileNotFoundException
static

Reads input from a file with the given file name.

Parameters
filenamename of the input file
Returns
array containing the following values:
mass of the first star (kg)
mass of the second star (kg)
initial x-position of the first star (m)
initial y-position of the first star (m)
initial x-position of the second star (m)
initial y-position of the second star (m)
initial x-velocity of the first star (m/s)
initial y-velocity of the first star (m/s)
initial x-velocity of the second star (m/s)
initial y-velocity of the second star (m/s)
final time (s)

◆ input_constraints()

void BSS.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 )
static

Verifies that input values satisfy the physical constraints and software constraints.

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)

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