CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   iteration on angles of attack (http://www.cfd-online.com/Forums/fluent/36630-iteration-angles-attack.html)

Vincent May 11, 2005 12:52

iteration on angles of attack
 
Hi,

Does anyone knows how to program in Fluent-Scheme so as to iterate a flow calculation around an airfoil on angles of attack ranging from 1 to 20 degrees for example, using the same mesh ? I also need to save the results of the calculation in a different file at each iteration.

Thank you in advance

Vincent.

Luca May 12, 2005 04:17

Re: iteration on angles of attack
 
Hi. you can use a define profile macro and hook it to your far-field bc. Luca

Peter Gasparovic May 13, 2005 07:02

Re: iteration on angles of attack
 
Run: fluent 2d -i angles.jou >& report_forces.txt

File "angles.jou" contain something like this: ;------------------------- rc airfoil.cas rd airfoil+1deg.dat ; ------------------------ (define tang 0.0349) /define/boundary-conditions velocity-inlet velocity-inlet-1 yes yes no 31.884 no 1 no tang yes no 1 no 0 q it 1200 wd airfoil+2deg.dat

/report/wall-forces 1 tang /report/wall-forces (- 0 tang) 1 /report/wall-moments 0.25 0 ;------------------------- ... repeat for angles 2-20 deg ;------------------------- exit yes

Peter Gasparovic May 13, 2005 07:10

Re: iteration on angles of attack
 

Sorry, I didn't manage to break lines

in this form

Vincent May 13, 2005 11:31

Re: iteration on angles of attack
 
So there is no way to use a do loop that would save me a lot of time repeating the same script for the rest of the angles of attack ?

Vincent.



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