/froudeScalingCopy.py
Python | 46 lines | 24 code | 10 blank | 12 comment | 3 complexity | 7d96af9bd0259e8181c99efeceff4b73 MD5 | raw file
- #!/usr/bin/env python
- import easygui as e
- from enthought.units.force import *
- from enthought.units.time import *
- from enthought.units.length import *
- from enthought.units.mass import *
- #inputFile = e.fileopenbox(msg = 'Choose your input file', title = 'Froude-Scaling Tool', filetypes = 'txt')
- inputFile = 'inputs.txt'
- inputFile = open(inputFile,'r')
- def ittc_57(Re):
- Cf = 0.075/(math.log10(Re)-2.0)**2.0
- vars = []
- data = []
- units = []
- for line in inputFile:
- if '=' in line:
- vars.append(line.split()[0])
- data.append(float(line.split()[2]))
- units.append(
- class Inputs(object):
- """docstring for Inputs"""
- def __init__(self, arg):
- super(Inputs, self).__init__()
- self.arg = arg
-
- inputs = Inputs()
- for i in range(len(vars)):
- print vars[i], data[i]
-
- """
- real_data = []
- for line in data:
- if line[0].isdigit():
- real_data =
- print line,
- """