Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Automating from SpaceClaim to Fluent

    • deadvermin97
      Subscriber

      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?

    • RK
      Ansys Employee
      Hello,
      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.
    • deadvermin97
      Subscriber
      Thanks! 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.
    • deadvermin97
      Subscriber
      UPDATE: 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.