CFD5-Tutorial1
-
Upload
mehdin-mujanovic -
Category
Documents
-
view
214 -
download
0
Transcript of CFD5-Tutorial1
-
7/31/2019 CFD5-Tutorial1
1/5
Tutorial1:SimpleStarCCM+Example
PousellieFlow
Fullydevelopedviscous,laminarflow,inalongstraightpipe.
Wewillmodelthisin2DusingSTAR-CCM+Version5.02.009
1. StartStar-CCM+bytyping> starccm+
onthecommandlineintheUnixShell.Thenstartanewsimulationby
clickingonthenewiconandpressingenteratthebottomofthedialog.2. CreatetheGeometry.clickontheswitchnexttotheGEOMETRYiteminthe
sidebartoexpandit,andthenrightclickon3D-CADmodelsandselectNEW
fromthemenu.
3. Wewillnowcreateablockinthex-yplanemeasuring100mmwide(x)and
10mmtall(y)and10mmdeep(z)withthebottomleftcornerat(0,0,0),we
firstconstructasketch,byselectingthecorrectplane(xy)andrightclicking.
Thispanelcontainsthetoolsforcreatingsketchentities,suchaslines,circles
andarcs,andallowsyoutocontrolthesettingsforthegriddisplayedinthescene.EachsketchplanehaslocalXandYaxeswhicharedeterminedbythe
-
7/31/2019 CFD5-Tutorial1
2/5
positionandorientationoftheplaneinrelationtotheglobalcoordinate
system.
3.1Alignthesketchplanewiththeplaneofthescreen,byclickingontheLicon
3.2 clickonthesketchandgridspacingbuttonandchangethegridspacingto0.001mandclickOK3.3Nextmaximisetheviewbyclickingontheresetviewiconinthetool
bar.
3.4Nowchoosetherectangletool,anddrawarectangleinthemiddleofthescreen.Byrightclickingonthelines,youcanaddthelengthconstraints
tothemiftheseareexposedthedimensionsoftheboxwillbedisplayed.
3.5Chooseacornerpoint(bottomleft)andsetitspositionto(0,0)nowhitOK
3.6ClickonSketch1andtherightclickandselecttheextrudemenu,extrudingtheblock0.01m.
3.7ExpandtheBodieslist,andselectBody1changingitsnametoFluid3.8Thefinalstageinpreparingthemodelgeometryistospecifytheinlet
andoutletfacesofthemodelbysettingfacenames.Whenthe3D-CADmodelisimportedintothesimulationviageometryparts,facesthathave
beennamedwillbedefinedasseparatepartsurfaces.Therefore,when
thegeometryisassignedtoanewregion,thesesurfacescaneasilybecomeseparateboundaries.
Rotatethemodelsothattheleftendoftheductisvisible.Right-clickontherectangularfaceandselectRename,callingitInlet
NowRotatethemodelagainsotherightendoftheductisvisible,
renamingitOutlet3.9Close3DCAD
4. The3D-CADmodelisusedinasimulationbyfirstusingittocreateanewgeometrypart.Right-clickontheGeometry>3D-CADModels>3D-CADModel1andselectNewGeometryPart
5. Thenextstageistoassigntheparttoanewregion.Right-clickontheParts>FluidnodeandselectSetRegion>New...IntheNewRegionfromParts
OptionsdialogsettheBoundaryModetoOneboundaryperpartsurface
andclickOK.6. Right-clickontheScenesnodeandselectNewScene>Geometry.Expand
theRegions>Fluid>Boundariesnodeandselecteachoftheboundary
nodestocheckthattheyhavebeenspecifiedcorrectly.7. GeneratingaMesh-Apolyhedralmeshwillbeusedtoanalyzetheflow
patternsinpipe.Asthepurposeofthistutorialistodemonstratethemethodologyforrunningacaseusing3D-CAD,theprismlayermesherwill
notbeusedandthemeshgeneratedwillberelativelycoarse.Open
Continua.HereyouwillfindthemeshingandPhysicsoptions.7.2RightClick(RC)onMesh1>SelectMeshingModels7.3 Selectsurfaceremesherandtrimmer.Thiswillcreatearectangulargrid.
-
7/31/2019 CFD5-Tutorial1
3/5
7.4NowopenMesh>ReferenceValues.Set7.4.1 basesizeto10mm(widthoftheinlet)7.4.2 MaximumCellSizeto10%
7.5NowselectMesh>VolumeMeshfromtheMESHmenu7.6RCScenes>NewScene>Meshwillbringupanotherwindowinwhichyou
canexaminethemesh.7.7 Savethesimulationaschannel3D
8. Creatingthe2dmeshandconditions
Notethatthereisnogoingbackatthisstage.Thatswhyyousavedthe3Dexample.
8.2ClickonMesh>Convertto2D8.3Usethemouseyouwillseethattheobjectcannolongerberotatedin
3D
9. Settingupthephysicsmodelandvalues
Herewewillchoosethelaminarflowsimulation,thesolvertypeandthefluid(water)inthepipe.
9.2OpenContinuaandRCPhysics12D>SelectModels.9.3 SelectLiquid,Segregated,SteadyState,Laminar,Constantdensity9.4OpenthenewModelslist.Checkthatthefluidiswater.9.5 Settheinitialvelocityto[0.05,0.0,0.0]9.6Regions>Body12D>Boundaries>Inlet,selectavelocityinletandthenset
theValueoftheVelocitymagnitude(inConstant)to0.05m/s.9.7Regions>Body12D>Boundaries>Inlet,selectapressureoutlet.9.8OpenthelistStoppingCriteriaandsetthemaximumnumberof
iterationsto100.9.9 Saveaschannel2D
-
7/31/2019 CFD5-Tutorial1
4/5
10.Runthesimulation
11.Visualisetheflow,usingscalarandvectorscenes
11.2 isitright?11.3 -isafinergridneeded?11.4 howdoesitcomparetotheanalyticalsolution?
ForamorecomplicatedexampleofsettingupageometryfollowtheCyclone
SeparatorTutorialexamplefromthe3D-CADtutorialsinthetrainingguide.
-
7/31/2019 CFD5-Tutorial1
5/5