TAGGED: automate, fluent, meshing, spaceclaim
-
-
July 21, 2021 at 11:18 amdeadvermin97Subscriber
Hi, I'm a student (using ANSYS on a student license) still really new to ANSYS and am trying to get the 2D flow fields for many different NACA 4 airfoils (to be called on an as-needed basis), and would like to automate the process.
I have a python script to write the airfoil coordinates into a txt file given the NACA 4 digits. I've used scripting in SpaceClaim to create a geometry from the txt file. I've done similar scripting for Meshing of the geometry, and I used a journal for setting up and solving in Fluent.
In other words, the individual parts are pretty much automated but I don't know how to connect between them. Any suggestions?
July 21, 2021 at 2:50 pmRKAnsys EmployeeHello,
I hope you are using Workbench for this. If you have used scripting in SC, create a driving dimension that can be called in the script and this will appear in the parameters tab in WB. And this way, you can change the driving dimension parameters / meshing parameters and run different design points.
July 22, 2021 at 3:19 amdeadvermin97SubscriberThanks! But just calling attention to the part where I use an external python script to create a txt file of the coordinates given the parameters. Everything within SC and ANSYS is done after, from importing the coordinates from the txt file. Nothing within the ANSYS part of the process really changes except for the txt file it imports (whose name remains the same but contents updates).
So for using parameters in WB, I have the current problem of my parameters not changing within WB but externally. I have considered moving the python script to within my SC script, but then is there an alternative to saving and uploading an external txt file that would work fully within SC instead? Also, I'm still not sure how that would automate between the different applications unless there's some function of WB I'm seriously missing (x_x) Sorry, I haven't been using it long.
While we're on this, it would be really helpful for me to know how to call ANSYS externally, if there are ways people usually do that.
July 29, 2021 at 3:29 amdeadvermin97SubscriberUPDATE: I've tried recording a Workbench Journal and repeating all my steps from scratch. Unfortunately, this does not seem to work as the wb journal doesn't appear to record the steps I take to create my geometry (nor does it seem to record when I attempt to upload and run my previously written scscript either). I found another discussion about this but it was not resolved there either:
I've read the Workbench help on journalling, it doesn't mention anything different from what I've been doing. Can someone pick this up again?
Viewing 3 reply threads- The topic ‘Automating from SpaceClaim to Fluent’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script error Code: 800a000d
- Cyclone (Stairmand) simulation using RSM
- Fluent fails with Intel MPI protocol on 2 nodes
- error udf
- Diesel with Ammonia/Hydrogen blend combustion
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
Top Contributors-
1231
-
543
-
523
-
225
-
209
Top Rated Tags© 2024 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-