PageRenderTime 40ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/froudeScalingCopy.py

https://bitbucket.org/i3enhamin/froudescalingfork
Python | 46 lines | 24 code | 10 blank | 12 comment | 3 complexity | 7d96af9bd0259e8181c99efeceff4b73 MD5 | raw file
  1. #!/usr/bin/env python
  2. import easygui as e
  3. from enthought.units.force import *
  4. from enthought.units.time import *
  5. from enthought.units.length import *
  6. from enthought.units.mass import *
  7. #inputFile = e.fileopenbox(msg = 'Choose your input file', title = 'Froude-Scaling Tool', filetypes = 'txt')
  8. inputFile = 'inputs.txt'
  9. inputFile = open(inputFile,'r')
  10. def ittc_57(Re):
  11. Cf = 0.075/(math.log10(Re)-2.0)**2.0
  12. vars = []
  13. data = []
  14. units = []
  15. for line in inputFile:
  16. if '=' in line:
  17. vars.append(line.split()[0])
  18. data.append(float(line.split()[2]))
  19. units.append(
  20. class Inputs(object):
  21. """docstring for Inputs"""
  22. def __init__(self, arg):
  23. super(Inputs, self).__init__()
  24. self.arg = arg
  25. inputs = Inputs()
  26. for i in range(len(vars)):
  27. print vars[i], data[i]
  28. """
  29. real_data = []
  30. for line in data:
  31. if line[0].isdigit():
  32. real_data =
  33. print line,
  34. """