From c99f7ee9eada8e1a29436d330186b025e614ded4 Mon Sep 17 00:00:00 2001 From: Sasha Date: Thu, 26 Jun 2025 14:23:12 +0100 Subject: [PATCH] Update aseredesign/readme.md --- aseredesign/readme.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/aseredesign/readme.md b/aseredesign/readme.md index df4e4af..9f3dc3d 100644 --- a/aseredesign/readme.md +++ b/aseredesign/readme.md @@ -12,15 +12,19 @@ It has the following limitations: 4. Increment the modAmount variable in the *aseredesign.py* 5. Run the python script and hope for green! +*** + ## Overview 1. Set up Python -2. Initial Python setup +2. Initial *aseredesign.py* setup 3. How to modify values with proper offsets in Optistruct 4. How to get dimensions into Python 5. How to get the results for the FEA 6. How to get the things calculated 7. Miscellaneous +*** + ## Set Up Python ### Windows 10/11: @@ -37,7 +41,7 @@ You can install them by running the commands "pip install math", "pip install cs 1. Install python 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) 2. Change the variable *Ebasis* and *mass_limit* in the beginning 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 1. Results Query 2. Start -4. Select all 3 loadcases - 1. Element Stresses (2D & 3D) > XX,YY,XY,vonMises > Mid > none > global - 2. Set and save as **panel_val_x.csv** in the same folder as the python script - 3. Element Stresses (1D):CBAR/CBEAM Axial Stresses > none - 4. Set and save as **stringer_val_x.csv** in the same folder as the python script +4. Then select do the following in the window: + 1. Select all 3 loadcases at the same time (using Ctrl+Click) + 2. Select: Element Stresses (2D & 3D) > XX,YY,XY,vonMises (select all 4 at the same time using Ctrl+Click) > Mid > none > global + 3. Set and save as **panel_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 ## How to get the things calculated: 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\") -3. Enter "python aserdesign.py" +3. Enter "python aseredesign.py" 4. Read and reiterate ***