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

How can I modify the codes?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2001, 05:43
Default How can I modify the codes?
  #1
JohnnyLam
Guest
 
Posts: n/a
I wrote codes below to simulate the flow over an circular cylinder. But the Cd was not exact to 0.6 for Re=1e7. Can you teach me what are errors, how can I improve the results. Thanks. ( johnny@vol.vnn.vn)

CODES: !Re = 3.09e-6 !air density = 1.23 !Velocity = 45 !Diameter = 1 !Vicousity coeifficient = 1.789e-5 !divisions of 1/4 circle = 64 !rectangle-wind tunnel size is 150x100 /unit,si /prep7 rectng,0,150,0,100 local,11,0,75,50,0,,,,1,1 csys,11 wpcsys,-1 pcirc,0.5,0,0,360 aovlap,all adel,2 !circle is deleted lsel,s,,,1,3,2 lesize,all,3,,,1 lsel,s,,,2,4,2 lesize,all,2,,,1 lsel,s,,,5,8 lesize,all,,,64,,1 allsel et,1,141 !mshape,0 !try triangle mesh amesh,all dl,4,,vx,45,0 !line 4, inlet, Vx = 45, Vy = 0 dl,4,,vy,0,0 vv dl,2,,pres,0,0 !outlet, P=0 dl,1,,vx,0,1 !line 1 - bottom dl,1,,vy,0,1 dl,3,,vx,0,1 !line3 - top line dl,3,,vy,0,1 dl,5,,vx,0,1 !lines on circle, dl,5,,vy,0,1 dl,6,,vx,0,1 dl,6,,vy,0,1 dl,7,,vx,0,1 dl,7,,vy,0,1 dl,8,,vx,0,1 dl,8,,vy,0,1

/solu FLDATA5,OUTP,PCOE,1 !add a pressure coefficient DOF fldata1,solu,turb,1 !turbular solution flda,iter,exec,1000 FLDATA3,TERM,PRES,1e-004 FLDATA3,TERM,TEMP,1e-004 flda,prot,visc,constant !fluid property, constant flda,prot,dens,constant fldata,nomi,dens,1.23 fldata,nomi,visc,1.789e-5 allsel solve FINISH /POST1 SET,LAST PLNSOL,PCOE,,0, lsel,s,,,5,8 nsll,s,1 INTSRF,PRES
  Reply With Quote

Old   June 1, 2001, 14:29
Default Re: How can I modify the codes?
  #2
clifford bradford
Guest
 
Posts: n/a
I assume this is a ANSYS Flotran?
  Reply With Quote

Old   June 1, 2001, 14:46
Default Re: How can I modify the codes?
  #3
Adrin Gharakhani
Guest
 
Posts: n/a
CODES: !Re = 3.09e-6

Hopefully, this is a typo! you should have 3.09e6. As for the rest, you are not "writing" a code as you claim, but just inputting data. As such, it is difficult to answer your general question without knowing the details.

Adrin Gharakhani
  Reply With Quote

Reply


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
Is it worth it? Jason Bardis Main CFD Forum 47 July 27, 2011 04:52
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
Comparison of CFD Codes Kerem Main CFD Forum 9 May 9, 2003 04:29
New List of Free CFD Codes Bert Laney Main CFD Forum 5 September 15, 1999 15:24


All times are GMT -4. The time now is 17:56.