CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Automating using script

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

LinkBack Thread Tools Display Modes
Old   October 26, 2015, 12:30
Thumbs up Automating using script
New Member
Alex Petty
Join Date: Jan 2014
Posts: 3
Rep Power: 5
pettya is on a distinguished road

So last year I talked with a professor, no longer teaching here, who brought up using a script to automate the solution method in fluent. Does anyone have any tutorials on how to do this. I want to adjust my angle of attack by .5 degree increments and then have it save the results.
pettya is offline   Reply With Quote

Old   October 26, 2015, 13:45
Senior Member
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 1,903
Rep Power: 26
LuckyTran will become famous soon enoughLuckyTran will become famous soon enough
How do you propose to change the angle of attack? If it does not involve re-meshing each time then it's pretty simple to do using a Fluent journal file. For example, you can simple modify the direction vector of the incoming flow angle to change the angle of attack, simple changes to the boundary conditions are easy to do in Fluent.

One way to get started is not that complex. Set up you your entire case file for one case through the GUI as you normally would. Then you only need to learn the TUI commands to change the angle of attack and write them to the journal file. Your journal file will look something like this:

rcd "filename"
/define/boundary-conditions/ blahblahblah
/define/boundary-conditions/ blahblahblah
solve monitors residual reset y
/solve/iterate 100000
wcd "filename"

And then copy and paste for all your angles of attack

Pressing enter/return will give a list of all available TUI commands. Use this to figure out which commands are needed.
LuckyTran is offline   Reply With Quote

Old   October 26, 2015, 13:52
New Member
Alex Petty
Join Date: Jan 2014
Posts: 3
Rep Power: 5
pettya is on a distinguished road
Like you stated I would prefer to keep it simple by adjust the component vector.

Thanks for the start
pettya is offline   Reply With Quote


automation, scripting

Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Workbench] Run ICEM Script in Workbench Script MIZOR ANSYS Meshing & Geometry 6 June 23, 2017 03:52
Grid Check Script SU2 2 April 23, 2015 01:54
[ICEM] Generalize ICEM script for different sizes of same geometry. Akash kumar ANSYS Meshing & Geometry 0 November 16, 2014 09:38
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36
Perl script for intialisation pratik mehta CFX 2 September 10, 2008 03:09

All times are GMT -4. The time now is 07:50.