''' **************************************************************** File : main.py Purpose : The Base Scipt from where the execution begins Class Objects are Created to perform analysis App : PyNAT - Python Based Naval Architecture Tools Version : 2021a Paradigm : Object Oriented Model Author : Praveen Kumar Ch ***************************************************************** ''' from HullGeometry import HullGeometry from HydroStatics import HydroStatics from FileSystem import FileSystem from LAS_KN_1A import LAS_KN_1A from LAS_KN_0B import LAS_KN_0B from LAS_GZ import LAS_GZ from ENV_PROP import ENV_PROP import matplotlib.pyplot as plt import os import msvcrt as m import time #----------------------------------------------------------------------------- # Creation of 'FileSystem' Object # Object Contains The File Names and paths to be utilized by program # See "FileSystem.py" #----------------------------------------------------------------------------- t0=time.time() print("\n\n*********************************************************************") print(" Py-NAT 2021a") print("*********************************************************************") fs=FileSystem() #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # Creation of 'ENV_PROP' Object # Contains Environment properties like water density #----------------------------------------------------------------------------- print("\n\nThe Environemnt Properties are being read...\t...\t...\t...\t...") ep=ENV_PROP(fs) print("\nEnvironment Properties File Read") #----------------------------------------------------------------------------- # Creation of 'HullGeometry' Object # Object Contains Data defining the ship hull geometry # object Contains Script to read and prepare Hull Geometry # Contians Script to fit Splines # See the Script file "HullGeometry.py" #----------------------------------------------------------------------------- print("\n\nThe Hull Geometry is being read and prepared...\t...\t...\t...\t...") givenShip=HullGeometry(fs) tend=time.time() print("\nThe Hull Geometry Data Preperation Complete.") print("\nCheck the Prepared Hull Geometry Data in Directory:\t...\\",fs.sec_dir) print("\nTotal Time Elapsed for Hull Geometry Preperations :\t",tend-t0) print("\nClose Body Plan Plot to Continue.") plt.show() #---------------------------------------------------------------------------------- iLoops=0 maxLoops=50 while(iLoops