Fluent一个英文例子.docx

上传人:b****6 文档编号:4770861 上传时间:2022-12-08 格式:DOCX 页数:35 大小:1.02MB
下载 相关 举报
Fluent一个英文例子.docx_第1页
第1页 / 共35页
Fluent一个英文例子.docx_第2页
第2页 / 共35页
Fluent一个英文例子.docx_第3页
第3页 / 共35页
Fluent一个英文例子.docx_第4页
第4页 / 共35页
Fluent一个英文例子.docx_第5页
第5页 / 共35页
点击查看更多>>
下载资源
资源描述

Fluent一个英文例子.docx

《Fluent一个英文例子.docx》由会员分享,可在线阅读,更多相关《Fluent一个英文例子.docx(35页珍藏版)》请在冰豆网上搜索。

Fluent一个英文例子.docx

Fluent一个英文例子

LaminarPipeFlow

ProblemSpecification

Considerfluidflowingthroughacircularpipeofcontantcross-section.ThepipediameterD=0.2mandlengthL=8m.TheinletvelocityVin=1m/s.Considerthevelocitytobeconstantovertheinletcross-section.Thefluidexhaustsintotheambientatmospherewhichisatapressureof1atm.Takedensityρ=1kg/m3andcoefficientofviscosityµ=2x10-3kg/(ms).TheReynoldsnumberRebasedonthepipediameteris

whereVavgistheaveragevelocityattheinlet,whichis1m/sinthiscase.

SolvethisproblemusingFLUENT.Plotthecenterlinevelocity,wallskin-frictioncoefficient,andvelocityprofileattheoutlet.Validateyourresults.

Note:

Thevaluesusedfortheinletvelocityandflowpropertiesarechosenforconvenienceratherthantoreflectreality.ThekeyparametervaluetofocusonistheReynoldsno.

PreliminaryAnalysis

Weexpecttheviscousboundarylayertogrowalongthepipestartingattheinlet.Itwilleventuallygrowtofillthepipecompletely(providedthatthepipeislongenough).Whenthishappens,theflowbecomesfully-developedandthereisnovariationofthevelocityprofileintheaxialdirection,x(seefigurebelow).Onecanobtainaclosed-formsolutiontothegoverningequationsinthefully-developedregion.YoushouldhaveseenthisintheIntroductiontoFluidMechanicscourse.Wewillcomparethenumericalresultsinthefully-developedregionwiththecorrespondinganalyticalresults.Soit'sagoodideaforyoutogobacktoyourtextbookintheIntrocourseandreviewthefully-developedflowanalysis.Whatarethevaluesofcenterlinevelocityandfrictionfactoryouexpectinthefully-developedregionbasedontheanalyticalsolution?

Whatisthesolutionforthevelocityprofile?

We'llcreatethegeometryandmeshinGAMBITwhichisthepreprocessorforFLUENT,andthenreadthemeshintoFLUENTandsolvefortheflowsolution.

GotoStep1:

CreateGeometryinGAMBIT

Step1:

CreateGeometryinGAMBIT

StrategyforCreatingGeometry

Inordertocreatetherectangle,wewillfirstcreatetheverticesatthefourcorners.We'llthenjoinadjacentverticesbystraightlinestoformthe"edges"oftherectangle.Lastly,we'llcreatea"face"correspondingtotheareaenclosedbytheedges.InStep2,we'llmeshthefacei.e.therectangle.Notethatin3Dproblems,you'llhavetoforma"volume"fromfaces.SothehierarchyofgeometricobjectsinGAMBITisvertices->edges->faces->volumes.

CreateaWorkingDirectory

Createafoldercalledpipeinaconvenientlocation.We'llusethisastheworkingfolderinwhichfilescreatedduringthesessionwillbestored.

NoteforACCELcomputerlabusers:

Eachusergetshis/herown100MBofdiskspaceunderS:

atACCEL.YoucanputyourfilesinS:

andit'llbeaccessiblefromanycomputer.Thisiswhereyoushouldputfilesthatyouwanttokeepandaccesslateron.

StartGAMBIT

Startyourcommandprompt.

Start>Run

InWindowsNT/2000/XP:

Typecmdandpressenter.

InWindows95/98/ME:

Typecommandandpressenter.

Navigateyourwaytoyourworkingfolder.Forexample,ifyoucreatedafoldernamedfluentondriveS:

inWindows,typecdS:

\fluentatthecommandpromptandpressEnter.

StartGAMBITbytypinggambit-idpipeatthecommandpromptandpressingEnter.

Ifthisdoesn'twork,trytypingthefullpathnametotheGAMBITexecutable:

c:

\fluent.inc\ntbin\ntx86\gambit-idpipe

ThisbringsuptheGAMBITinterfaceandtellsGAMBITtousepipeasthedefaultprefixforallfilescreatedduringthesession.InWindows,theExceedX-serverstartsupbeforetheGAMBITinterfacecomesup.Exceedisathird-partyapplicationneededtorendertheinterfaceinWindows(GAMBITwasoriginallydevelopedunderUnix).Tomakebestuseofscreenrealestate,movethewindowsandresizethemsothatyouapproximatethisscreenarrangement.ThiswayyoucanreadinstructionsinthebrowserwindowandimplementtheminGAMBIT.

Youcanresizethetextinthebrowserwindowtoyourtasteandcomfort:

InInternetExplorer:

Menubar>View>TextSize,thenchoosetheappropriatefontsize.

InNetscape:

Menubar>View>IncreaseFontorMenubar>View>DecreaseFont.

TheGAMBITInterfaceconsistsofthefollowing:

∙MainMenuBar:

NotethatthejobnamepipeappearsafterID:

inthetitlebaroftheUtilityMenu.

∙OperationToolpad:

We'llmoreorlessworkourwayacrosstheOperationToolpadaswegothroughthesolutionsteps.Noticethataseachofthetopbuttonsisselected,adifferent"sub-pad"appears.TheGeometrysub-padisshownintheabovesnaphot.

∙GlobalControlToolpad:

TheGlobalControlToolpadhasoptionssuchasFittoScreen

andUndo

thatareveryhandyduringthecourseofgeometryandmeshcreation.

∙GAMBITGraphics:

Thisisthewindowwherethegraphicalresultsofoperationsaredisplayed.

∙GAMBITDescriptionPanel:

TheDescriptionPanelcontainsdescriptionsofbuttonsorobjectsthatthemouseispointingto.MoveyourmouseoversomebuttonsandnoticethecorrespondingtextintheDescriptionPanel.

∙GAMBITTranscriptWindow:

ThisisthewindowtowhichoutputfromGAMBITcommandsiswrittenandwhichprovidesfeedbackontheactionstakenbyGAMBITasyouperformoperations.If,atsomepoint,youarenotsureyouclickedtherightbuttonorenteredavaluecorrectly,thisiswheretolooktofigureoutwhatyoujustdid.YoucanclickonthearrowbuttonintheupperrighthandcornertomaketheTranscriptwindowfull-sized.Youcanclickonthearrowagaintoreturnthewindowtoitsoriginalsize.Goahead,givethisatry.

SelectSolver

SpecifythatthemeshtobecreatedisforusewithFLUENT6.0:

MainMenu>Solver>FLUENT5/6

VerifythishasbeendonebylookingintheTranscriptWindowwhereyoushouldsee:

Theboundarytypesthatyou'llbeabletoselectinthethirdstepdependsonthesolverselected.

Wecanassumethattheflowisaxisymmetric.Theproblemdomainis:

whererandxaretheradialandaxialcoordinates,respectively.

Strategyforcreatinggeometry

Wewillputtheoriginofthecoordinatesystematthelowerleftcorneroftherectangle.Thecoordinatesofthecornersareshowninthefigurebelow:

Wewillfirstcreatefourverticesatthefourcornersandjoinadjacentverticestogettheedgesoftherectangle.Wewillthenformafacethatcoverstheareaoftherectangle.

CreateVertices

FindthebuttonsdescribedbelowbypointingthemouseateachofthebuttonsandreadingtheDescriptionWindow.

OperationToolpad>GeometryCommandButton

>VertexCommandButton

>CreateVertex

NoticethattheCreateVertexbuttonhasalreadybeenselectedbydefault.Afteryouselectabuttonunderasub-pad,itbecomesthedefaultwhenyougotoadifferentsub-padandthencomebacktothesub-pad.

Createthevertexatthelower-leftcorneroftherectangle:

Nexttox:

entervalue0.Nexttoy:

entervalue0.Nexttoz:

entervalue0(thesevaluesshouldbedefaults).ClickApply.Thiscreatesthevertex(0,0,0)whichisdisplayedinthegraphicswindow.

IntheTranscriptwindow,GAMBITreportsthatit"Createdvertex:

vertex.1".Theverticesarenumberedvertex.1,vertex.2etc.intheorderinwhichtheyarecreated.

Repeatthisprocesstocreatethreemorevertices:

Vertex2:

(0,0.1,0)

Vertex3:

(8,0.1,0)

Vertex4:

(8,0,0)

Notethatfora2Dproblem,thez-coordinatecanalwaysbelefttothedefaultvalueof0.

OperationToolpad>GlobalControl>FittoWindowButton

ThisfitsthefourverticesoftherectanglewehavecreatedtothesizeoftheGraphicsWindow.

(Clickpictureforlargerimage)

CreateEdges

We'llnowconnectappropriatepairsofverticestoformedges.ToselectanyentityinGAMBIT,holddowntheShiftkeyandclickontheentity.

OperationToolpad>GeometryCommandButton

>EdgeCommandButton

>CreateEdge

SelecttwoverticesthatmakeupanedgeofthisrectanglebyholdingdowntheShiftbuttonandclickingonthecorrespondingvertices.Aseachvertexispicked,itwillappearredintheGraphicsWindow.ThenletgooftheShiftbutton.Wecanchecktheselectedverticesbyclickingontheup-arrownexttoVertices:

.

Thiswillbringupawindowcontainingtheverticesthathavebeenselected.VerticescanbemovedfromtheAvailableandPickedlistsbyselectingthemandthenpressingtheleftorrightarrowbuttons.

Afterthecorrectverticeshavebeenselected,clickClose,thenclickApplyintheCreateStraightEdgewindow.

Repeatthisprocesstocreatearectangle.

(Clickpictureforlargerimage)

CreateFace

OperationToolpad>GeometryCommandButton

>FaceCommandButton

>FormFace

Toformafaceoutoftheareaenclosedbythefourlines,weneedtoselectthefourledgesthatenclosethisarea.ThiscanbedonebyholdingdowntheShiftkey,clickingoneachline(noticethatthecurrentlyselectedlineappearsred),andthenreleasingtheShiftkeyafterallfourlineshavebeenselected.

Alternatively,aneasierwaytodothiswouldbetoclickontheuparrownexttoedges:

ThiswillbringuptheEdgeListwindow.ClickonAll->toselectalloftheedgesatonce.ClickClose.

ClickApplytocreatetheface.

GotoStep2:

MeshGeometryinGAMBIT

Step2:

MeshGeometryinGAMBIT

We'llnowcreateameshontherectangularfacewith100divisionsintheaxialdirectionand5divisionsintheradialdirection.We'llfirstmeshthefouredgesandthentheface.Thedesiredgridspacingisspecifiedthroughtheedgemesh.

MeshEdges

OperationToolpad>MeshCommandButton

>EdgeCommandButton

>MeshEdges

Shift-clickorbringuptheEdgeListwindowandselectboththeverticallines

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高中教育 > 高考

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1