You are on page 1of 13

DiscretizerManualReleasedate09/01/10Side1of13

AGuidetothefreemeshprogramDiscretizer withOpenFOAMforCFD(Computational FluidDynamics)

Homepage:http://www.discretizer.org/ CreatorofDiscretizer:BjornBergqvist ManualAuthor:GerhardGruber

ProgramandManualunderthe GPLlicensev3orlater

DiscretizerManualReleasedate09/01/10Side2of13

TableofContents 1.Preface
1.1Introduction 1.2InstallingOpenFOAM 1.3InstallingDiscretizer 1.4Conventions 1.5MainWindow

2.Example
2.1Step

DiscretizerManualReleasedate09/01/10Side3of13

1.Preface
1.1Introduction
Discretizerisaninteractivepreprocessinggeometryandmeshcreationtool. Itwillcreategeometryandmeshesforthreedimensionalflowsimulations(CFD). ItisoptimizedtoworkwithOpenFOAMassolverandtheincludedpostprocessing programParaFOAM.

1.2InstallingOpenFOAM
OperatingSystem Ubuntu(9.04) Windows Binary openfoam16installation Notsupported Compiling OpenFOAM1.6installcookbook Notsupported

1.3InstallingDiscretizer
OperatingSystem Linux Windows StartingDiscretizer:

Binary discretizer32and64bit

Compiling

StartaTerminal ChangetothediscretizerDirectory StartDiscretizerbytyping./discretizer32.shor./discretizer64.sh

1.4Conventions
TheDiscretizerManualusethefollowingstyleconventions. Menuselections,totakeorders,areshowninbold.Forexample:FileNew Tipshavecursivestyle.Forexample:Tip:PresstheSTRGKey

DiscretizerManualReleasedate09/01/10Side4of13

1.5MainWindow
1 2

Picture1:TheMainWindowofDiscretizer

1Pulldownmenubar
offersthemaincommandsofDiscretizer,explanationinchapter2 Tip:BCistheshortcutofBoundaryConditions

2Iconbar
eachpictureshowshisfunctioninthestatuslineorpopuphelpwhenyouputthe mousecursoroverit

3Itemwithattributechart
eachcommandforthegeometryisshowninthischart Tip:eachcommandcanbemodifiedbyselectingit'sitem,pressingtheright mousebuttonandselectproperties

4Geometrywindow
showsthegeometrymodel

5Statusline
showssystemoutput

DiscretizerManualReleasedate09/01/10Side5of13

2.Example
2.1Step
TheStepshowshowtocreategeometrymodelswithDiscretizerandmakea completesimulationwithOpenFOAM. Tip:Thecompletegeometrymodelissavedin discretizer/discretizer/svn/test/t19_step.dtz 1.CreatePoint

PresstheOKButton SelectthecreatedPoint

Tip:itcanbealsoselectedbyselectingtherowofthepointintheItemchart

DiscretizerManualReleasedate09/01/10Side6of13

2.

CreateCube

Enterthecubeattributes Tip:x,y,zmeshpointsdefinesthenumberofmeshcells

Tip:youcanmodifytheattributesbyselectingtherowofthecubeintheitem chart,pressingtherightmousebuttonandselectingProperties
ResettheViewbypressingthe ResetButtonintheIconbar Tip:Themodel canbe rotatedby pressingtheleft mouseButton andmovingthe mouseinside thegeometry window itcanbescaled byscrollingwith themouse wheel andyoucan dragitby pressingthe rightmouse Button

DiscretizerManualReleasedate09/01/10Side7of13

3.

SelecttherightfrontfaceofthecubeandchooseCreateCube

Enterthecubeattributes PresstheOKButton

Tip:theCreateCubedialoguecanalsobestartedbyselectingtheface,pressing therightmousebuttonandselectingCreateCube 4. SelecttheupperfaceofthesecondcubeandchooseCreateCube

DiscretizerManualReleasedate09/01/10Side8of13

5.

SelecttheleftfrontfaceofthefirstcubeandchooseBCCreateInlet

EntertheVelocityMagnitudeandtheDirection,1isyes0isno. PresstheOKButton 6.Selecttherightfrontfaceofthesecondcubeandselecttherightfrontfaceofthe thirdcube,chooseBCCreateOutlet

EnterPressure PresstheOKButton Tip:atleastonevelocityinletandonepressureoutletisrecommendedfora simulation

DiscretizerManualReleasedate09/01/10Side9of13

7.

FileRunDialog

IntheFieldCaseInfo:youcandefinesomeproperties WorkDir:isthedirectorywheretheCasewillbestored CaseName:Definesthenameofthissimulation,enterstep OpenFOAMSolver:isthesolverusedbyOpenFOAM ScaleFactor:isthescalefactorthemodelwillbetransformed (measuresinDiscretizerareinmm,measuresinOpenFOAMareinm) 0.001don'thastobechanged Tip:theFieldInitialconditionsdon'thastobechangedbecausetheyaredefined withtheBoundaryConditionsattheinlet(seePoint5) StartthesimulationbypressingtheWriteandRunButton Tip:havealookattheTerminalWindow,someoutputwithTime=anddata showstheprogressofthecalculation Thetimehowlongthecalculationtakesdependsonthenumberofmeshcellsyou havedefinedandthepowerofyourcomputer IfEndisshownthecalculationhasfinished

DiscretizerManualReleasedate09/01/10Side10of13

8.

TheresultofthesimulationcanbeshownbypressingtheParaviewButton

Actuallynothingisshown AtfirstpresstheLastFrameButton,orAnimationLastframe NowpressthehighlightedgreenApplyButton

DiscretizerManualReleasedate09/01/10Side11of13

ChooseUforvelocityfromtheIconbar

Tip:Themodelcanbe rotatedbypressingtheleftmouseButtonandmovingthemouseinsidethe geometrywindow itcanbescaledbyscrollingwiththemousewheelorpressingtherightmouse Buttonandmovingthemouseinsidethewindowupordown andyoucandragitbypressingthemousewheel

DiscretizerManualReleasedate09/01/10Side12of13

9. PresstheClipButtonfromtheIconbar,presstheZNormalButtonand selectInsideOut

PresstheDisplayTab,presstheEdirColorMap...Button,PresstheColor LegendTabandselectShowColorLegend

Nowyoucanseethevelocityrangefromthestep

DiscretizerManualReleasedate09/01/10Side13of13

10.

ChoosepforpressurefromtheIconbar

PresstheDisplayTab,presstheEdirColorMap...Button,PresstheColor LegendTabandselectShowColorLegend

Nowyoucanseethepressurerangefromthestep

You might also like