Professional Documents
Culture Documents
Discretizer Manual
Discretizer Manual
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
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
DiscretizerManualReleasedate09/01/10Side8of13
5.
SelecttheleftfrontfaceofthefirstcubeandchooseBCCreateInlet
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
DiscretizerManualReleasedate09/01/10Side11of13
ChooseUforvelocityfromtheIconbar
DiscretizerManualReleasedate09/01/10Side12of13
9. PresstheClipButtonfromtheIconbar,presstheZNormalButtonand selectInsideOut
PresstheDisplayTab,presstheEdirColorMap...Button,PresstheColor LegendTabandselectShowColorLegend
Nowyoucanseethevelocityrangefromthestep
DiscretizerManualReleasedate09/01/10Side13of13
10.
ChoosepforpressurefromtheIconbar
PresstheDisplayTab,presstheEdirColorMap...Button,PresstheColor LegendTabandselectShowColorLegend
Nowyoucanseethepressurerangefromthestep