Skip to content

Commit

Permalink
Merge pull request #114 from audunarn/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
audunarn authored Mar 28, 2022
2 parents 7588fc4 + b590568 commit bca0a00
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions ANYstructure_local/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ def any_constraints_all(x,obj,lat_press,init_weight,side='p',chk=(True,True,True
puls_uf = PULSrun.get_puls_line_results(x_id)["Buckling strength"]["Actual usage Factor"][0]
elif calc_object[0].Plate.get_puls_method() == 'ultimate':
puls_uf = PULSrun.get_puls_line_results(x_id)["Ultimate capacity"]["Actual usage Factor"][0]
if type(puls_uf) == str:
if type(puls_uf) == str or puls_uf is None:
return False, 'PULS', x, all_checks
all_checks[8] = puls_uf/PULSrun.puls_acceptance
if puls_uf/PULSrun.puls_acceptance >= 1:
Expand Down Expand Up @@ -1026,16 +1026,16 @@ def stress_scaling(sigma_old,t_old,t_new, fdwn = 1, fup = 0.5):

if t_new <= t_old: #decreasing the thickness
sigma_new = sigma_old*(t_old/(t_old-fdwn*abs((t_old-t_new))))
assert sigma_new >= sigma_old, 'ERROR no stress increase: \n' \
't_old '+str(t_old)+' sigma_old '+str(sigma_old)+ \
'\nt_new '+str(t_new)+' sigma_new '+str(sigma_new)
# assert sigma_new >= sigma_old, 'ERROR no stress increase: \n' \
# 't_old '+str(t_old)+' sigma_old '+str(sigma_old)+ \
# '\nt_new '+str(t_new)+' sigma_new '+str(sigma_new)

else: #increasing the thickness

sigma_new = sigma_old*(t_old/(t_old+fup*abs((t_old-t_new))))
assert sigma_new <= sigma_old, 'ERROR no stress reduction: \n' \
't_old '+str(t_old)+' sigma_old '+str(sigma_old)+ \
'\nt_new '+str(t_new)+' sigma_new '+str(sigma_new)
# assert sigma_new <= sigma_old, 'ERROR no stress reduction: \n' \
# 't_old '+str(t_old)+' sigma_old '+str(sigma_old)+ \
# '\nt_new '+str(t_new)+' sigma_new '+str(sigma_new)
return sigma_new

def stress_scaling_area(sigma_old,a_old,a_new, fdwn = 1, fup = 0.5):
Expand Down
1 change: 1 addition & 0 deletions ANYstructure_local/optimize_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ def update_running_time(self,*args):

if [self._new_check_buckling_ml_cl.get(),self._new_check_buckling_puls.get(),
self._new_check_buckling.get()].count(True) > 1:
tk.messagebox.showerror('You can only select one buckling type. Reselect.')
if self._new_check_buckling_puls.get():
self._new_check_buckling_puls.set(False)
if self._new_check_buckling_ml_cl.get():
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
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.2 ###
* Bug fixing.
* Ukraininan theme.
### What's new in 4.0 ###
* Cylinder design and optimization!
* Flat plate prescriptive buckling improved. Girder calculation added.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def readme():
name='ANYstructure', # Required
url = 'https://github.com/audunarn/ANYstructure',
entry_points={"console_scripts": ['ANYstructure = ANYstructure_local.__main__:main']},
version=4.0, # Required
version=4.2, # Required
license='MIT',
description='A plate field optimization tool for offshore structures calculated according to DNVGL standards',
long_description = readme(),
Expand Down

0 comments on commit bca0a00

Please sign in to comment.