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

Automating using script

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

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

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
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,654
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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
Default
  #3
New Member
 
Alex Petty
Join Date: Jan 2014
Posts: 3
Rep Power: 12
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

Reply

Tags
automation, scripting

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
[Workbench] Run ICEM Script in Workbench Script MIZOR ANSYS Meshing & Geometry 9 April 4, 2018 08:45
Grid Check Script pdp.aero SU2 2 April 23, 2015 02: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 10:36
Perl script for intialisation pratik mehta CFX 2 September 10, 2008 04:09


All times are GMT -4. The time now is 04:12.