2
College of Engineering and Computer Science Mechanical Engineering Department Mechanical Engineering 692 Computational Fluid Dynamics Spring 2010 Number: 17535  Instructor: Larry Caretto Fourth Computer Exercise Introduction This exercise is intene to intro uce stuents to gri generation !or C"# programs$ The "%uent coe oes not pro&ie a gri generation capabi%i ties$ Instea it can import gri s !rom a &ariety o! programs$ The program you 'i %% be using toni ght is ca%%e (ambit$ It 'as e&e%ope b y the company) "%uent) Inc$) be!ore they 'ere purchase by *NS+S$ *NS+S sti%% mai ntains (ambit) but it oes not p%an any !uture &ersions$ Instea) !uture users 'i %% be expecte to e&e%op their gris in 'hate&er computer,aie,esign -C*#. programs they are using$ The exercise !o%%o's a (ambit tutoria%) 'hich i%%ustrates the e&e%opment o! a gri !or a t'o, imensiona% mixing e%bo' prob%em simi%ar to the one that 'e use in "%uent !or the !irst computer exercise$ I! you o not comp%ete the entire t utoria%) you can continue to 'or/ on it outsie o! c%ass$ The instructions be%o' are intene to augment the instructions in the tutoria%) 'hich are much more extensi&e than the items mentione be%o'$ These instructions assume that y ou are 'or/ing !rom a computer in the c%assroom on the echanica% ngineering computer %abs in # 1114111$ In the instruct ions be%o') items sho'n in bold represent items that 'ere copie &erbatim !rom t he screen$ The instruction t o 6se%ect Table of Contents  !orm the Help menu means that there is a menu %abe%e 68e%p an you shou% se%ect the menu item 6Tab%e o! contents$$ Getting Started Start the (ambit coe by c%ic/ing on the Gambit 2.4. i con on your es/top$ C%ic/ 9 in the (ambit Startup ;ino'$ ;hen the (ambit coe is !u%% y %oae you 'i%% see a mu%tisection screen 'ith the %argest part a b%ac/ ar ea 'here you 'i%% isp%ay the gri$ *t this point se%ect Table of Contents !orm the Help menu$  *!ter you see t he comman prompt) s e%ect More Documentation! !rom the Help m enu$ 9n the resu%ting bro'ser screen se%ect Tutorial Guide !rom the 8TL menu$ Se%ect the seco n tutoria% Modeling a Mi"ing Elbo#$% $ +ou 'i%% get a 'arning about b% oc/e content !rom your bro'ser $ C%ic/ the option to a%%o' b%oc/e content) then c%ic/ Modeling a Mi"ing Elbo# a secon time to get the instructions !or the tu toria%$ ;hen the out%ine appears c%ic/ &rere'uisites  to begin$  *%though the prere <uisites section st ates that you shou% ha&e 'or/e through t utoria% 1) 'e ' i%% s/ip this step since the instructions !or the secon tutoria% re!er you to the &arious p%aces that you ha&e to c%ic/$ In aition) the instruc tor can pro&ie you 'ith a o&er&ie' o! t he user inter!ace that 'i%% !ami%iar i=e you 'ith 'hat you nee !or this secon tu toria%$ Note that in the Global Control  section in the %o'er) right,han corner o! the screen the %ast button in the mi%e ro' is the uno button$ acarana -ngineering. 3333 ai% Coe >hone: 1$77$?? ,mai%: %caretto@csun$eu 2A5 "ax: 1$77$21?0

pex4

  • Upload
    eyob233

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

Page 1: pex4

7/27/2019 pex4

http://slidepdf.com/reader/full/pex4 1/2

College of Engineering and Computer ScienceMechanical Engineering Department

Mechanical Engineering 692 Computational Fluid Dynamics

Spring 2010 Number: 17535  Instructor: Larry Caretto

Fourth Computer Exercise

Introduction

This exercise is intene to introuce stuents to gri generation !or C"# programs$ The "%uentcoe oes not pro&ie a gri generation capabi%ities$ Instea it can import gris !rom a &ariety o!programs$ The program you 'i%% be using tonight is ca%%e (ambit$ It 'as e&e%ope by thecompany) "%uent) Inc$) be!ore they 'ere purchase by *NS+S$ *NS+S sti%% maintains (ambit)but it oes not p%an any !uture &ersions$ Instea) !uture users 'i%% be expecte to e&e%op theirgris in 'hate&er computer,aie,esign -C*#. programs they are using$

The exercise !o%%o's a (ambit tutoria%) 'hich i%%ustrates the e&e%opment o! a gri !or a t'o,imensiona% mixing e%bo' prob%em simi%ar to the one that 'e use in "%uent !or the !irst computerexercise$ I! you o not comp%ete the entire tutoria%) you can continue to 'or/ on it outsie o!c%ass$

The instructions be%o' are intene to augment the instructions in the tutoria%) 'hich are muchmore extensi&e than the items mentione be%o'$ These instructions assume that you are 'or/ing!rom a computer in the c%assroom on the echanica% ngineering computer %abs in #1114111$ In the instructions be%o') items sho'n in bold represent items that 'ere copie&erbatim !rom the screen$ The instruction to 6se%ect Table of Contents !orm the Help menumeans that there is a menu %abe%e 68e%p an you shou% se%ect the menu item 6Tab%e o!contents$$

Getting Started

Start the (ambit coe by c%ic/ing on the Gambit 2.4. icon on your es/top$ C%ic/ 9 in the(ambit Startup ;ino'$ ;hen the (ambit coe is !u%%y %oae you 'i%% see a mu%tisection screen'ith the %argest part a b%ac/ area 'here you 'i%% isp%ay the gri$ *t this point se%ect Table ofContents !orm the Help menu$

 *!ter you see the comman prompt) se%ect More Documentation! !rom the Help menu$ 9n theresu%ting bro'ser screen se%ect Tutorial Guide !rom the 8TL menu$ Se%ect the secon tutoria%Modeling a Mi"ing Elbo#$%$ +ou 'i%% get a 'arning about b%oc/e content !rom your bro'ser$C%ic/ the option to a%%o' b%oc/e content) then c%ic/ Modeling a Mi"ing Elbo# a secon time toget the instructions !or the tutoria%$ ;hen the out%ine appears c%ic/ &rere'uisites to begin$

 *%though the prere<uisites section states that you shou% ha&e 'or/e through tutoria% 1) 'e 'i%%s/ip this step since the instructions !or the secon tutoria% re!er you to the &arious p%aces that youha&e to c%ic/$ In aition) the instructor can pro&ie you 'ith a o&er&ie' o! the user inter!ace that'i%% !ami%iari=e you 'ith 'hat you nee !or this secon tutoria%$ Note that in the Global Control section in the %o'er) right,han corner o! the screen the %ast button in the mi%e ro' is the unobutton$

acarana -ngineering. 3333 ai% Coe >hone: 1$77$??,mai%: %caretto@csun$eu 2A5 "ax: 1$77$21?0

Page 2: pex4

7/27/2019 pex4

http://slidepdf.com/reader/full/pex4 2/2

The tutoria% !i%es sho' some ia%og boxes that are s%ight%y i!!erent !rom the ones actua%%y in(ambit$ The shape o! some boxes is i!!erent an the tutoria% sho's se%ecte boxes co%ore re'ith b%ac/ chec/ mar/s$ 8o'e&er) 'hen you se%ect a box in (ambit it 'i%% turn re) but ha&e nochec/ mar/$

Set the &ertica% height o! your bro'ser to the maximum height !or the screen$ Bea the initia%

screens on Introduction) &rere'uisites) an &roblem Description$ Note that you can mo&eamong screens by c%ic/ing the >re&ious or Next boxes at the top or bottom o! the text$

Spen a bit o! time 'ith the prob%em escription screen$ a/e sure you unerstan 'hat ishappening here$ ;hen you get to section 2$? >rob%em #escription) you 'i%% be as/e to se%ect"%uent ? as the so%&er$ #o not o this Instea) se%ect (luent )* !rom the Sol+er  menu$

"o%%o' the remaining irections as inicate$ Note that some (ambit commans combine a/eystro/e 'ith a mouse c%ic/$ "or examp%e) you 'i%% see the !o%%o'ing instruction in Step 2$1:6/. Ctrl ,right,c%ic/ the nine gri points sho'n in "igure 2,3$ This means that you shou% ho%o'n the contro% /ey 'hi%e c%ic/ing the nine points sho'n in the !igure$

+ou shou% sa&e your 'or/ o!ten to ma/e sure that you o not ha&e to start o&er$ Note the%ocation o! the output !i%es !rom (ambit because you 'i%% e&entua%%y 'ant to use the !i%e as aninput !i%e to "%uent$

Some Modifications

In the comman uner step 3 you are as/e to 6se%ect the !o%%o'ing comman buttons in orer$Norma%%y this means ma/ing a %e!t c%ic/ !or each button sho'n$ 8o'e&er note that the thirbutton has an , Dust outsie its %o'er right corner$ This means that you shou% use a right c%ic/!or this button on%y$

In Step A: Set Eounary Types) the instructions re!er to the use o! "%uent ? as the so%&er$ Theinstructions gi&en a%so app%y to "%uent 54 except that there is no 6IN"L9; as state in thetutoria%$ Se%ect 6FL9CIT+GINLT as the bounary types !or the i!!erent in%ets$ +ou can a%souse more meaning!u% names then in%et1 an in%et2$ I! this gi&es you an error message in thetranscript 'ino') se%ect >BSSHBGINLT$

The (inal Test

Start "%uent an se%ect ,ead !rom the (ile menu$ Se%ect Case !rom the submenu an then %ocatethe mesh !i%e that you exporte !rom (ambit$$

acarana -ngineering. 3333 ai% Coe >hone: 1$77$??,mai%: %caretto@csun$eu 2A5 "ax: 1$77$21?0