DblPend
All Classes Files Functions
Functions
InputParameters.py File Reference

Provides the function for reading inputs and the function for checking the physical constraints on the input. More...

Functions

def python.InputParameters.get_input (filename)
 Reads input from a file with the given file name. More...
 
def python.InputParameters.input_constraints (L_1, L_2, m_1, m_2)
 Verifies that input values satisfy the physical constraints. More...
 

Detailed Description

Provides the function for reading inputs and the function for checking the physical constraints on the input.

Author
Dong Chen
Note
Generated by Drasil v0.1-alpha

Function Documentation

◆ get_input()

def python.InputParameters.get_input (   filename)

Reads input from a file with the given file name.

Parameters
filenamename of the input file
Returns
length of the first rod (m)
length of the second rod (m)
mass of the first object (kg)
mass of the second object (kg)

◆ input_constraints()

def python.InputParameters.input_constraints (   L_1,
  L_2,
  m_1,
  m_2 
)

Verifies that input values satisfy the physical constraints.

Parameters
L_1length of the first rod (m)
L_2length of the second rod (m)
m_1mass of the first object (kg)
m_2mass of the second object (kg)