Skip to content

Commit cd253dc

Browse files
committed
Small bug as per issue #127 fixed.
1 parent 302824d commit cd253dc

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
ANYstructure is the ultimate steel structure design tool for plate fields and cylinders!
33
Weight optimization for all structures with machine learning capabilities.
44
Calculations are based on DNV standards and rules
5+
### What's new in 4.9.1 ###
6+
* Corrected bug in loading old save files
7+
* Corrected error on buckling flat plate calculation
58
### What's new in 4.8 ###
69
* Reporting table on cylinders.
710
* Color coding on come cylinder properties.

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,9 @@ Documentation
4646
-------------
4747

4848
Documentation is cointained in the tool. Help -> Open documentation.
49+
50+
Website
51+
-------------
52+
53+
https://sites.google.com/view/anystructure/start
54+

any_files/calc_structure.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,11 +2960,14 @@ def unstiffened_shell(self, conical = False, shell_data = None):
29602960

29612961
if smsd < 0:
29622962
smsd = -smsd
2963+
sm0sd = -smsd
29632964
else:
29642965
if geometry in [2, 6]:
29652966
smsd = 0
2967+
sm0sd = 0
29662968
else:
29672969
smsd = smsd
2970+
sm0sd = smsd
29682971

29692972
sjsd = math.sqrt(math.pow(sxsd,2) - sxsd*shsd + math.pow(shsd,2) + 3 * math.pow(tsd, 2)) # (3.2.3)
29702973

@@ -3120,26 +3123,12 @@ def table_3_2(chk):
31203123
fEh_used = 0.25 * E * math.pow(t / r, 2)
31213124
else:
31223125
fEh_used = fElat if self._end_cap_pressure_included == 'not included in axial stresses' else fEhyd
3123-
#
3124-
# if geometry in [2,6]:
3125-
# sxsd = self._sasd+smsd
3126-
# else:
3127-
# sxsd = min(self._sasd, self._sasd+smsd, smsd-smsd)
3128-
31293126

31303127
sjsd = math.sqrt(math.pow(sxsd,2) - sxsd*shsd + math.pow(shsd,2) + 3 * math.pow(tsd, 2)) # (3.2.3)
31313128

31323129
sa0sd = -sasd if sasd < 0 else 0
31333130
sh0sd = -shsd if shsd < 0 else 0
31343131

3135-
if smsd < 0:
3136-
sm0sd = -smsd
3137-
else:
3138-
3139-
if geometry in [2,6]:
3140-
sm0sd = 0
3141-
else:
3142-
sm0sd = smsd
31433132

31443133
if any([fEax == 0, fEbend == 0, fEt_used == 0, fEh_used == 0, sjsd == 0]):
31453134
lambda_s_pow = 0

pyinstaller_input.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
C:\Python\Python311\Scripts\pyinstaller -y -i "C:/GitHub/ANYstructure/ANYicon.ico" --add-data "C:/GitHub/ANYstructure/ANYstructure_documentation.pdf";"." --add-data "C:/GitHub/ANYstructure/sections.csv";"." --add-data "C:/GitHub/ANYstructure/ship_section_example.txt";"." --add-data "C:/GitHub/ANYstructure/images";"images/" --add-data "C:/GitHub/ANYstructure/ml_files";"ml_files/" --add-data "C:/GitHub/ANYstructure/matplotlibrc";"." --add-data "C:/GitHub/ANYstructure/bulb_anglebar_tbar_flatbar.csv";"." -n ANYstructure --noconsole "C://GitHub/ANYstructure/main_application.py"
1+
C:\Python\Python311\Scripts\pyinstaller -y -i "C:/GitHub/ANYstructure/ANYicon.ico" --add-data "C:/GitHub/ANYstructure/any_files/ANYstructure_documentation.pdf";"." --add-data "C:/GitHub/ANYstructure/any_files/sections.csv";"." --add-data "C:/GitHub/ANYstructure/any_files/ship_section_example.txt";"." --add-data "C:/GitHub/ANYstructure/any_files/images";"images/" --add-data "C:/GitHub/ANYstructure/any_files/ml_files";"ml_files/" --add-data "C:/GitHub/ANYstructure/matplotlibrc";"." --add-data "C:/GitHub/ANYstructure/any_files/bulb_anglebar_tbar_flatbar.csv";"." -n ANYstructure --noconsole C://GitHub/ANYstructure/__main__.py"

0 commit comments

Comments
 (0)