CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Automate Ansys Workbench

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2024, 03:49
Default Automate Ansys Workbench
  #1
New Member
 
Lucas
Join Date: May 2024
Posts: 2
Rep Power: 0
Luc19 is on a distinguished road
Hello,



i have some problems to automate Ansys. I am completly new to Ansys by the way.

My task is to simulate a large number of centrifugal compressors. For that i have a Matlab tool, that generates me the needed .inf files for Turbogrid. Afer that i want CFX to calculate the efficiency.


Now i need to automate Ansys to make the same steps for all the generated .inf files. The best way i found so far, is to create a session file in the Workbench and record my steps. Is there a better way than this?

And is it possible to control this from Python?



Any help is appreciated.
Luc19 is offline   Reply With Quote

Old   May 26, 2024, 04:50
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,750
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Make sure you are talking about the correct software names.

ANSYS Workbench = Tool used to control all ANSYS products (from FEA to CFD, electro magnetics and everything else)

CFX Pre = pre processor for CFX.

CFX Pre can use session files, workbench cannot. Are you actually using CFX-Pre?
Opaque likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 29, 2024, 06:17
Default
  #3
New Member
 
Lucas
Join Date: May 2024
Posts: 2
Rep Power: 0
Luc19 is on a distinguished road
Thank you for answering.



I got that term wrong, i recorded a journal in the workbench, where i set up a trubogrid and a cfx instance. That works atleast if i use the same .inf file again, didnt testet what happens when i open another .inf file with the same journal.



As far as i know i can adjust the journal file in text editor after recording it. Is there a list of commands i can use, for example to change a setting in CFX-Pre without recording the whole journal again? Couldnt find anything like that in the Ansys help documents.



My method now would be, that, after the first iteration, i open this journal file with python and change the path to my next .inf file in it and start the journal again.

I just dont know if that is the easiest way, or if i just dont know about a feature that would help me.
Luc19 is offline   Reply With Quote

Old   May 29, 2024, 06:26
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,750
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I use workbench as little as possible. I use the CFX tools stand alone almost always as you have much more control over what is going on, and it crashes less.

If you are using turbogrid, CFX-Pre and the CFX-Solver then I would automate that myself using a batch file (if you are windows) or the equivalent in LINUX. All these tools can be called from the command line, and controlled using session files, CCL and other methods.
zacko likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
ansys, automation, cfx, worbench

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ansys Installation on Docker Container mohsen.shiea ANSYS 11 March 14, 2024 11:18
Run Ansys Journal Files in an opened Workbench from an external Python Script LStar ANSYS 2 March 27, 2023 02:42
Possibility to use Ansys workbench for coupling Fluent and Maxwell in Two computers vanhoivanbinh ANSYS 6 December 15, 2022 06:37
polarization of permanent magnets in cylindrical coordinate system in ansys workbench J.sepaseh Electromagnetics 0 December 19, 2019 13:34
Pro/E to ANSYS Parameterization Guide Trues ANSYS 4 April 18, 2018 05:52


All times are GMT -4. The time now is 16:23.