Skip to content

Commit

Permalink
Merge pull request #123 from audunarn/move_dir_2
Browse files Browse the repository at this point in the history
Various
  • Loading branch information
audunarn authored Feb 15, 2023
2 parents 04b621d + c913223 commit e0a335a
Show file tree
Hide file tree
Showing 95 changed files with 253 additions and 229 deletions.
Binary file modified ANYstructure_install.ifp
Binary file not shown.
82 changes: 41 additions & 41 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,46 @@ include images\fls_button.gif
include images\img_axial_stresses.gif
include images\img_ext_pressure_button.gif
include images\img_ext_pressure_button_def.gif
include images\img_fixation_parameters.gif
include images\img_generate_report.gif
include images\img_int_pressure_button.gif
include images\img_int_pressure_button_search.gif
include images\img_multi_opt.gif
include images\img_optimize.gif
include images\img_plate_and_stiffener.gif
include images\img_stf_button.gif
include images\img_stiffener.gif
include images\img_stress_button.gif
include images\img_T_L_FB.gif
include images\img_title.gif
include images\img_transverse_stress.gif
include images\ANYstructure_logo.jpg
include images\current_comps_NONE.png
include images\Buckling_Strength_of_Shells.png
include images\Panel_geometry_definitions.png
include ship_section_example.txt
include ANYstructure_documentation.pdf
include sections.csv
include bulb_anglebar_tbar_flatbar.csv
include ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_1_SP.pickle
include ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_1_SP.pickle
include ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_1_SP.pickle
include ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_1_SP.pickle
include ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_2,_3_SP.pickle
include ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_2,_3_SP.pickle
include ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_2,_3_SP.pickle
include ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_2,_3_SP.pickle
include ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_1_UP.pickle
include ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_1_UP.pickle
include ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_1_UP.pickle
include ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_1_UP.pickle
include ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_2,_3_UP.pickle
include ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_2,_3_UP.pickle
include ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_2,_3_UP.pickle
include ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_2,_3_UP.pickle
include ml_files\CL_CSR-Tank_req_cl_predictor.pickle
include ml_files\CL_CSR-Tank_req_cl_UP_scaler.pickle
include ml_files\CL_CSR_plate_cl,_CSR_web_cl,_CSR_web_flange_cl,_CSR_flange_cl_predictor.pickle
include ml_files\CL_CSR_plate_cl,_CSR_web_cl,_CSR_web_flange_cl,_CSR_flange_cl_SP_scaler.pickle
include any_files\images\img_fixation_parameters.gif
include any_files\images\img_generate_report.gif
include any_files\images\img_int_pressure_button.gif
include any_files\images\img_int_pressure_button_search.gif
include any_files\images\img_multi_opt.gif
include any_files\images\img_optimize.gif
include any_files\images\img_plate_and_stiffener.gif
include any_files\images\img_stf_button.gif
include any_files\images\img_stiffener.gif
include any_files\images\img_stress_button.gif
include any_files\images\img_T_L_FB.gif
include any_files\images\img_title.gif
include any_files\images\img_transverse_stress.gif
include any_files\images\ANYstructure_logo.jpg
include any_files\images\current_comps_NONE.png
include any_files\images\Buckling_Strength_of_Shells.png
include any_files\images\Panel_geometry_definitions.png
include any_files\ship_section_example.txt
include any_files\ANYstructure_documentation.pdf
include any_files\sections.csv
include any_files\bulb_anglebar_tbar_flatbar.csv
include any_files\ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_1_SP.pickle
include any_files\ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_1_SP.pickle
include any_files\ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_1_SP.pickle
include any_files\ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_1_SP.pickle
include any_files\ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_2,_3_SP.pickle
include any_files\ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_2,_3_SP.pickle
include any_files\ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_2,_3_SP.pickle
include any_files\ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_2,_3_SP.pickle
include any_files\ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_1_UP.pickle
include any_files\ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_1_UP.pickle
include any_files\ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_1_UP.pickle
include any_files\ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_1_UP.pickle
include any_files\ml_files\CL_output_cl_buc_predictor_In-plane_support_cl_2,_3_UP.pickle
include any_files\ml_files\CL_output_cl_buc_scaler_In-plane_support_cl_2,_3_UP.pickle
include any_files\ml_files\CL_output_cl_ult_predictor_In-plane_support_cl_2,_3_UP.pickle
include any_files\ml_files\CL_output_cl_ult_scaler_In-plane_support_cl_2,_3_UP.pickle
include any_files\ml_files\CL_CSR-Tank_req_cl_predictor.pickle
include any_files\ml_files\CL_CSR-Tank_req_cl_UP_scaler.pickle
include any_files\ml_files\CL_CSR_plate_cl,_CSR_web_cl,_CSR_web_flange_cl,_CSR_flange_cl_predictor.pickle
include any_files\ml_files\CL_CSR_plate_cl,_CSR_web_cl,_CSR_web_flange_cl,_CSR_flange_cl_SP_scaler.pickle


5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
ANYstructure is the ultimate steel structure design tool for plate fields and cylinders!
Weight optimization for all structures with machine learning capabilities.
Calculations are based on DNV standards and rules
### What's new in 4.6 ###
### What's new in 4.7 ###
* Corrected error on girder caluculation for cylinder buckling.
* Added 1.10 load factor option for cylinder buckling.
* Better compability with linux
* Better compability with linux.
* Python 3.11 based.
### What's new in 4.4 ###
* Backup and restore feature added.
### What's new in 4.3 ###
Expand Down
7 changes: 2 additions & 5 deletions __main__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import sys, multiprocessing, ctypes
import tkinter as tk
try:
from main_application import Application
except ModuleNotFoundError:
from ANYstructure.main_application import Application
from any_files.main_application import Application

def main(args=None):
"""The main routine."""
Expand All @@ -23,4 +20,4 @@ def main(args=None):
# you want your project to do.

if __name__ == "__main__":
main()
main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions any_files/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import sys, multiprocessing, ctypes, os
import tkinter as tk
from any_files.main_application import Application

def main(args=None):
"""The main routine."""

if args is None:
args = sys.argv[1:]

multiprocessing.freeze_support()
errorCode = ctypes.windll.shcore.SetProcessDpiAwareness(2)
root = tk.Tk()
width = root.winfo_screenwidth()
height = root.winfo_screenheight()
root.geometry(f'{width}x{height}')
my_app = Application(root)
root.mainloop()

# Do argument parsing here (eg. with argparse) and anything else
# you want your project to do.

if __name__ == "__main__":
main()
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions calc_structure.py → any_files/calc_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
from scipy.optimize import minimize

try:
import helper as hlp
import SN_curve_parameters as snc
import any_files.helper as hlp
import any_files.SN_curve_parameters as snc
except ModuleNotFoundError:
import ANYstructure.helper as hlp
import ANYstructure.SN_curve_parameters as snc
import ANYstructure.any_files.helper as hlp
import ANYstructure.any_files.SN_curve_parameters as snc


class Structure():
Expand Down
4 changes: 2 additions & 2 deletions compartment_window.py → any_files/compartment_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from matplotlib import pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
try:
import test
import any_files.test
except ModuleNotFoundError:
import ANYstructure.test
import ANYstructure.any_files.test
import numpy as np

class CreateCompartmentWindow():
Expand Down
15 changes: 7 additions & 8 deletions example_data.py → any_files/example_data.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# This scripts provide dtat to be used for testing the code


try:
import calc_loads as load
import calc_structure as calc_structure
import make_grid_numpy as grid
import any_files.calc_loads as load
import any_files.calc_structure as calc_structure
import any_files.make_grid_numpy as grid
except ModuleNotFoundError:
import ANYstructure.calc_loads as load
import ANYstructure.calc_structure as calc_structure
import ANYstructure.make_grid_numpy as grid
import ANYstructure.any_files.calc_loads as load
import ANYstructure.any_files.calc_structure as calc_structure
import ANYstructure.any_files.make_grid_numpy as grid

import random

Expand Down Expand Up @@ -375,7 +374,7 @@ def get_line_to_struc(geo = False):
Stiffener = get_structure_object(line)
Girder = None # CalcScantlings(ex.obj_dict_heavy)
initial_calc_obj = calc_structure.AllStructure(Plate=Plate, Stiffener=Stiffener, Girder=Girder,
main_dict=prescriptive_main_dict)
main_dict=prescriptive_main_dict)
to_return[line]=[initial_calc_obj, None, None, [None], {}]
return to_return

Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions fatigue_window.py → any_files/fatigue_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import tkinter as tk

try:
import example_data as test
import SN_curve_parameters as sn
import any_files.example_data as test
import any_files.SN_curve_parameters as sn
except ModuleNotFoundError:
import ANYstructure.example_data as test
import ANYstructure.SN_curve_parameters as sn
import ANYstructure.any_files.example_data as test
import ANYstructure.any_files.SN_curve_parameters as sn


class CreateFatigueWindow():
Expand Down
5 changes: 3 additions & 2 deletions grid_window.py → any_files/grid_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
import copy
import matplotlib.animation as animation


try:
import example_data as test
import any_files.example_data as test
except ModuleNotFoundError:
import ANYstructure.example_data as test
import ANYstructure.any_files.example_data as test


def dist(p, q):
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Empty file added any_files/images/__init__.py
Empty file.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
21 changes: 12 additions & 9 deletions load_window.py → any_files/load_window.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@

try:
import example_data as test
from calc_loads import *
from helper import *
except ModuleNotFoundError:
import ANYstructure.example_data as test
from ANYstructure.calc_loads import *
from ANYstructure.helper import *
import any_files.example_data as test
from any_files.calc_loads import *
from any_files.helper import *

# try:
# import any_files.example_data as test
# from any_files.calc_loads import *
# from any_files.helper import *
# except ModuleNotFoundError:
# import ANYstructure.any_files.example_data as test
# from ANYstructure.any_files.calc_loads import *
# from ANYstructure.any_files.helper import *

import tkinter as tk
from tkinter import messagebox
Expand Down
Loading

0 comments on commit e0a335a

Please sign in to comment.