Update aseredesign/readme.md

This commit is contained in:
Sasha 2025-06-26 14:23:12 +01:00
parent eab7f49935
commit c99f7ee9ea

View file

@ -12,15 +12,19 @@ It has the following limitations:
4. Increment the modAmount variable in the *aseredesign.py* 4. Increment the modAmount variable in the *aseredesign.py*
5. Run the python script and hope for green! 5. Run the python script and hope for green!
***
## Overview ## Overview
1. Set up Python 1. Set up Python
2. Initial Python setup 2. Initial *aseredesign.py* setup
3. How to modify values with proper offsets in Optistruct 3. How to modify values with proper offsets in Optistruct
4. How to get dimensions into Python 4. How to get dimensions into Python
5. How to get the results for the FEA 5. How to get the results for the FEA
6. How to get the things calculated 6. How to get the things calculated
7. Miscellaneous 7. Miscellaneous
***
## Set Up Python ## Set Up Python
### Windows 10/11: ### Windows 10/11:
@ -37,7 +41,7 @@ You can install them by running the commands "pip install math", "pip install cs
1. Install python 1. Install python
2. `pip install colorama`, `pip install csv`, `pip install math` 2. `pip install colorama`, `pip install csv`, `pip install math`
## Initial Python setup ## Initial *aseredesign.py* setup
1. Open *aseredesign.py* in your text or code editor or choice (vim, Visual Studio, Notepad++, etc) (On Windows, rightclick the file and hit "Open with" and choose notepad if you don't have any preference) 1. Open *aseredesign.py* in your text or code editor or choice (vim, Visual Studio, Notepad++, etc) (On Windows, rightclick the file and hit "Open with" and choose notepad if you don't have any preference)
2. Change the variable *Ebasis* and *mass_limit* in the beginning 2. Change the variable *Ebasis* and *mass_limit* in the beginning
3. Hit save 3. Hit save
@ -85,18 +89,20 @@ It's literally just the amount of times the analysis is repeated, with the x at
3. Post > Tools 3. Post > Tools
1. Results Query 1. Results Query
2. Start 2. Start
4. Select all 3 loadcases 4. Then select do the following in the window:
1. Element Stresses (2D & 3D) > XX,YY,XY,vonMises > Mid > none > global 1. Select all 3 loadcases at the same time (using Ctrl+Click)
2. Set and save as **panel_val_x.csv** in the same folder as the python script 2. Select: Element Stresses (2D & 3D) > XX,YY,XY,vonMises (select all 4 at the same time using Ctrl+Click) > Mid > none > global
3. Element Stresses (1D):CBAR/CBEAM Axial Stresses > none 3. Set and save as **panel_val_x.csv** in the same folder as the python script
4. Set and save as **stringer_val_x.csv** in the same folder as the python script 4. Select all three loadcases again
5. Select: Element Stresses (1D):CBAR/CBEAM Axial Stresses > none
6. Set and save as **stringer_val_x.csv** in the same folder as the python script
"x" is a variable, starting at 0. I personally used 0 for the simulation results of the unmodified panel. Testing this all with the unmodified panel and comparing it with the previously given solution is a good sanity check to see if Hyperworks and this program is set up properly "x" is a variable, starting at 0. I personally used 0 for the simulation results of the unmodified panel. Testing this all with the unmodified panel and comparing it with the previously given solution is a good sanity check to see if Hyperworks and this program is set up properly
## How to get the things calculated: ## How to get the things calculated:
1. Go to your terminal or command line. 1. Go to your terminal or command line.
2. Enter "cd *your/folder/path/*" (To get *your/folder/path/* on Windows, open the File Explorer, go to the folder with the python file and click on the folder name in the top bar and copy that. On Windows it looks like this: "C:\Users\walter\Desktop\funpythonscript\") 2. Enter "cd *your/folder/path/*" (To get *your/folder/path/* on Windows, open the File Explorer, go to the folder with the python file and click on the folder name in the top bar and copy that. On Windows it looks like this: "C:\Users\walter\Desktop\funpythonscript\")
3. Enter "python aserdesign.py" 3. Enter "python aseredesign.py"
4. Read and reiterate 4. Read and reiterate
*** ***