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

Automation in Fluent

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

Like Tree2Likes
  • 1 Post By DonQuijote
  • 1 Post By chris85

Reply
 
LinkBack Thread Tools Display Modes
Old   June 19, 2012, 17:35
Default Automation in Fluent
  #1
New Member
 
Hannah Mac
Join Date: Jun 2012
Posts: 15
Rep Power: 5
hannah72206 is on a distinguished road
I'm extremely new to Ansys. I'm doing summer research and have just been introduced to it. My task is to create a flying wing shaped UAV in SolidWorks (done), and then to somehow automate a lift and drag curve for various angles of attack. I know how to do this manually, but the idea is to automate the whole process. Does anyone know of a way to do this? Maybe a macro? If so, could you point me in the right direction to get started?

This program needs to open up my geometry in Ansys, freeze it, create an enclosure (wind tunnel), create a Boolean subtracting the uav from the enclosure, make a general mesh, run it through the solver (with all the little settings to go with it) to find the lift and drag, then repeat by going back to the geometry and rotating the UAV a few degrees and going through the same process after that.

Help!

Also, any and all responses welcome. I don't even know if this is possible.
hannah72206 is offline   Reply With Quote

Old   June 20, 2012, 03:07
Default
  #2
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 5
DonQuijote is on a distinguished road
Hi,

You could try to use Ansys Workbench for that, making all design points you need. The input parameter that you need for your design points is your angle of attack. Remember to save data of all design points.

Hope this help you. If you have any doubt tell me
hannah72206 likes this.
DonQuijote is offline   Reply With Quote

Old   June 20, 2012, 04:06
Default
  #3
New Member
 
Chris
Join Date: Nov 2011
Posts: 19
Rep Power: 5
chris85 is on a distinguished road
Why do you need to go back and rotate the airfoil each time for each angle of attack. Just create a circular enclosure around the airfoil and work on getting a decent mesh. For the angle of attack change just change the fluid direction in the CFD package.

I would be concerned about automating the process as the mesh needs to be good and you may not get what is needed for a good solution.
rambex001 likes this.
chris85 is offline   Reply With Quote

Old   June 20, 2012, 06:38
Default
  #4
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 5
DonQuijote is on a distinguished road
If the goal is to automate the work, Ansys Workbench is the option and you would have to change the angle geometry since fluid components can not be parameterized. It has to take care in obtaining a good mesh resolution in all possible wake zones. A spheric domain is no needed since it would result in a waste of cells that could be better work in zone with higher gradients.
DonQuijote is offline   Reply With Quote

Old   June 21, 2012, 09:38
Default
  #5
New Member
 
Hannah Mac
Join Date: Jun 2012
Posts: 15
Rep Power: 5
hannah72206 is on a distinguished road
It sounds like you're saying that workbench already has a feature like this! That would be amazing. Could you explain it a little more thoroughly? The only thing on Ansys I've played with is Fluid Flow (Fluent). And forgive me for the dumb question, but what do you mean by "making all the design points you need"? Is that just making sure the geometry is set in the way you want it?
hannah72206 is offline   Reply With Quote

Old   June 21, 2012, 17:53
Default
  #6
New Member
 
Hannah Mac
Join Date: Jun 2012
Posts: 15
Rep Power: 5
hannah72206 is on a distinguished road
I've been doing some research, so you can probably disregard that second post of mine. However, I've made 8 design points and when I try to update them, I get an error that says "The Setup component in Fluid Flow for design point 0 requires user input before it can be updated." What does this mean? I've done the mesh and the set up.

My input is angle of attack. My outputs are lift and drag forces.
hannah72206 is offline   Reply With Quote

Old   June 22, 2012, 06:34
Default
  #7
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 5
DonQuijote is on a distinguished road
Hi,

did you solve the first design point? Try to solve the first one (set up in Fluent, initialize and converge it). If no data or criterion for solving in Fluent is given, workbench can't know when it has to stop iterating... I thing this could be the problem. So try to solve the first case, and then update all other design points
DonQuijote is offline   Reply With Quote

Old   June 22, 2012, 15:19
Default
  #8
New Member
 
Hannah Mac
Join Date: Jun 2012
Posts: 15
Rep Power: 5
hannah72206 is on a distinguished road
That worked like a charm. You are a lifesaver, truly!
hannah72206 is offline   Reply With Quote

Old   June 22, 2012, 15:26
Default
  #9
New Member
 
Hannah Mac
Join Date: Jun 2012
Posts: 15
Rep Power: 5
hannah72206 is on a distinguished road
This might need to go into a different thread, but maybe you have some ideas.
My next task is to be able to do the following automatically. As in, click a button and have the following happen:
- build a geometry from an excel file (I can probably figure that out)
- import that into solid works to create a geometry
- import that geometry into ansys and have it in the wind tunnel set up
- run the coefficient curves (what I most recently did)
- run that geometry through a shape optimizer
- export that geometry to an excel file.

And repeat.

I'm mostly wondering if you have any idea about the automation of all of that. I'm hoping I can figure out the individual parts myself, but I'm completely lost on how to accomplish the automation. And we really need it to be automated because we plan on running hundreds of designs through this process.
hannah72206 is offline   Reply With Quote

Old   June 25, 2012, 09:51
Default
  #10
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 5
DonQuijote is on a distinguished road
I'm glad to help you with design points, but I have no idea in treating Excel files, sorry.. . It would be fine to open a new post with your doubt. But it have to be possible to treat Excel files since there is a component system in Ansys Worckbench called Microsoft Office Excel...
Otherwise, why not to create the geometry in Design Modeler? So, it would be better to open a new post
DonQuijote is offline   Reply With Quote

Reply

Tags
ansys, automate, fluent, macros, uav

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
A Problem of Fluent Interpreted UDF: parse error knight Fluent UDF and Scheme Programming 11 December 8, 2013 10:00
heat transfer with RANS wall function, over a flat plate (validation with fluent) bruce OpenFOAM Running, Solving & CFD 5 September 25, 2013 04:40
Two questions on Fluent UDF Steven Fluent UDF and Scheme Programming 4 September 20, 2013 16:30
Alias problem when starting FLUENT from command line batch_error FLUENT 0 May 24, 2012 08:20
Problems in lauching FLUENT Lourival FLUENT 3 January 16, 2008 17:48


All times are GMT -4. The time now is 19:00.