Вы находитесь на странице: 1из 57

Workshop03 MultiSpeciesFlowand Postprocessing

14.0Release

IntroductiontoANSYS CFX
1 2011ANSYS,Inc. January16,2012 Release14.0

Introduction
In this workshop you will analyze the release of heat and combustion gases from a single car with an engine fire in a ventilated parking garage. The simulation will be run steady state assuming the fire has reached a stable developed stage. Simulation Physics & Boundary Conditions
Mixture of N2, O2, CO2 and H20 0.1 kg/s combustion gases (H2O and CO2) at 1200 K 80 N/m3 momentum source in jets
Air Outlet pressure_outlet_all_air

Heat and gas release from fire mass_flow_inlet_car_fire_source Jet Fan fluid_jet_fan Fresh Air Inlet velocity_inlet_fresh_air

Symmetry Plane symmetry

Introduction
2 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

ImportantNote
NOTE:

Thisworkshophasbeendesignedtobecompletedinoneoftwoways.Please
checkwithyourtraineronwhetheryouaretotaketheshortorlongoption.

[ShortOption]Thisworkshopcanbeusedjusttodemonstratepost
processinginCFDPost.Prepreparedresultsfilesaresupplied,sopleasejump straighttopage26forpostprocessing

[LongOption]Followalltheinstructions,whichwilldemonstratehowtoset
upamultispeciessimulationofacarfire.Oncethemodelissetup,youcan choosetowaitforittoconverge,orthenreplaceyourresultswiththe suppliedprepreparedset.

Introduction
3 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

Ifdoingtheshortversion(postprocessing only) pleasejumptopage26now

Introduction
4 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

Objectives(FlowSimulationPart)
LearningAims:
Thefirstpartofthisworkshopwillshowhowtosetupamultispeciesproblem. Thedomainwillcontainablendofseveraldifferentgases(nitrogen,oxygen, carbondioxide,watervapour)

Othertopicsthatwillbeintroducedare:
Includinggravitational(buoyancy)effects Settingamomentumsourcetermtoaccountforajetfan

LearningObjectives:
TounderstandhowCFXcanbeusedtosimulatemixturesoffluids,andaccount forbuoyancyeffects.Notethatamultispeciesproblemlikethisassumesthat thecomponentsaremixedatamolecularlevel(asnormallyhappenswithgases). Thealternativeisamultiphaseproblemwherethereisanidentifiableboundary betweenthecomponents(eitherdroplets/particles/bubbles,orafree surface).MultiphaseworkshopsincludeWorkshop2(DPM)andWorkshop7 (TankFlush)

Introduction
5 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

StartingWorkbench
OpenWorkbench
Start>Programs>ANSYS14.0>Workbench14.0 DragaCFXAnalysisSystemintotheprojectschematic RenamethesystemtoGarage(RMBoncellA1torenamethesystem)

Introduction
6 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

ImportingtheMesh
RightclickonMeshandselectImportMeshFile
SetthemeshfiltertoFLUENTFiles(*.cas,*.msh) Selectcar_and_garage.mshandclickOpen

RightclickSetupandselectEdittoopen
CFXPre

Introduction
7 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

MaterialSpecification
IntheOutlinetree,rightclickMaterialsand
selectInsert>Material

SettheNametoMixtureandclickOK SetOptiontoVariableCompositionMixture ForMaterialsList,clicktheicontotherightofthe


dropdownlist,andthenclicktheImport LibraryDataicon(asshownontheupperright) UnderGasPhaseCombustion,holddownthe<Ctrl> keyasyouselectthefollowingmaterials: CO2,H2O,N2,O2 ClickOKtoimportthemandclosetheImportform Now,selectthesameMaterialsundertheMaterials Listform ClickOKtoclosetheMaterialsListform ClickOKtocompletespecifyingtheMixture

Introduction
8 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

DomainSpecification

DoubleclickDefaultDomain SettheMaterialtoMixture SettheReferencePressureto1[atm] SetBuoyancyModeltoBuoyant

SettheXandYdirectionsto0[m/s^2] SettheZdirectiontotheexpression:g
YouneedtoclicktheEnterExpression icontoenterthisexpression SettheBuoyancyRef.Densityto 1.1989[kg/m^3]

Introduction
9 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

OperatingConditions
Notes: ANSYSCFX avoidstheproblemofroundofferrorbysubtractingtheoperatingpressure(generallya largepressureroughlyequaltotheaverageabsolutepressureintheflow)fromtheabsolute pressure,andusingtheresult(termedthegaugepressure).Theabsolutepressureissimplythesum oftheoperatingpressureandthegaugepressure. BuoyancyReferenceDensityisalsoavalueforavoidingroundoff errors.Forsimulationswhere pressureboundaryconditionsarepresentitisimportanttosetthevaluecorrectlyotherwisethe pressureattheboundarywillbeincorrectandmayleadtounphysicalflowconditions.Hereyouhave tosetittothedensitythatwillexistattheopeningboundarycondition(setlater)agasat293.15K with23%O2 and77%N2. Bydefault,CFXwillenforcethisdensityatnodenumber1inthemesh,whichissufficientforthis workshop.Othercasesmayrequiresettingthereferencedensityataspecificlocation.Thiscanbe donebyspecifyingtheoptionCartesianCoordinates. SearchthehelpdocumentationusingthekeywordBuoyancy formoredetails.

Introduction
10 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

FluidModels
OntheFluidModelstab:
SetHeatTransfertoTotalEnergy
Thisenablesthefullbuoyancymodel Othersettingsontheformcanbeleftattheir defaults Thekepsilonturbulencemodelisselected bydefault
Turbulencemodelling,aswithallphysics modelling,isacomplexarea.Therearemany applicationspecificoptions.Thekepsilonmodelis asimplebutrobustmodel.Thedocumentation providesfurtherguidanceonwhichmodelstouse forspecificapplications.

ClickOKtocompletethespecificationofthe
domain

Introduction
11 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

ForcedconvectionmodellingaFan
RightclickDefaultDomainandselect
Insert>Subdomain

SetNametoFanandclickOK

SetLocationtofluid_jet_fan ClicktheSourcestab
EnableSources,Momentum
Source/PorousLoss,thenGeneral MomentumSource SettheYComponentto 80[kgm^2s^2] Setothercomponentsto0[kgm^2s^2]

ClickOK

Weneedtoaccountfortheairmovementproducedbytheceilingjetfan.Herewehavedonethis byaddingmomentumtothesubdomain whichislocaltothejet.Theadvantageofthistechnique (overusingapairofvelocityboundaryconditions)isthatwepreservethespecies(smoke) concentrationthroughthefan.Ifwehadusedvelocityboundaryconditions,wewouldhaveneeded touseexpressionsattheintaketothejetfan,andapplythemtothejetfandischarge.


Introduction part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

12

2011ANSYS,Inc.

BoundaryConditions(FreshAir)
SelectInsert>Boundary
SetNametoFreshAir SettheLocationtovelocity_inlet_fresh_air ClickBoundaryDetails(moresettingsonthenextpage)

Introduction
13 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

BoundaryConditions(FreshAir)
OntheBoundaryDetailstab:
SetMassandMomentumtoNormalSpeed SetNormalSpeedto0.8[m/s] SetHeatTransfertoStaticTemperature SetStaticTemperatureto20[C] Notetheunitsfortemperature SetthefollowingComponentMassFractions: CO2:0.0 H2O:0.0 O2:0.23

ClickOK
Themixturespeciescontains4components(h2o,o2,co2, andn2). Youdonotneedtoenteramassfractionforn2.Itwill automaticallyaccountfortheremainingfractionnotusedby thefirstthree(inthiscase0.77)
Introduction
14 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

BoundaryConditions(AirOutlet)
Insert>Boundary
SetNametoAirOutlet

SetBoundaryTypetoOpening SetLocationtopressure_outlet_all_air ClickBoundaryDetails


SetMassandMomentumtoOpeningPres.AndDirn SetRelativePressureto0[Pa] SetHeatTransfertoOpeningTemperature SetTemperatureto20[C] (asforpreviousBC) SetthefollowingComponentMassFractions: SetO2 to0.23 Settheothercomponentmassfractionsto0

ClickOK
Solongasthereisonlyflowoutofthedomainhere,thesevaluesforturbulence,temperature andspecieswillnotbeneeded.Howeverduringthesolutionprocesstheremaybesomeinflow thoughthisboundary,andthereforeCFXneedstoknowwhatvaluestoapply.
Introduction
15 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

BoundaryConditions(Exhaust)
Insert>Boundary
SetNametoExhaust

SetLocationto mass_flow_inlet_car_fire_source ClickBoundaryDetails


SetMassandMomentumtoMassFlow Rate SetMassFlowRateto0.1[kgs^1] SetHeatTransfertoStaticTemperature SetStaticTemperatureto1200[K] SetthefollowingComponentMass Fractions: CO2:0.568 H2O:0.432 O2:0

ClickOK
Introduction
16 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

BoundaryConditions(Walls)
Insert>Boundary
SetNametoWalls

SetBoundaryTypetoWall SetLocationtowalls_outer,wall_floor
andwall_ceiling

Usethe<Ctrl>keytoselectmultiple
boundaries

ClickBoundaryDetails
SetHeatTransfertoHeatTransferCoefficient SetHeatTrans.Coeff to5[Wm^2K^1] SetOutsideTemperatureto300[K]
Thisboundaryconditionisintendedto simulatetheeffectofasolidmaterialbetween theCFDdomainandtheairoutsidethegarage, forexample,aconcretewall.

ClickOK
Introduction
17 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

BoundaryConditions(Symmetry)
Insert>Boundary
SetNametoSymmetry

SetBoundaryTypetoSymmetry SetLocationtosymmetry ClickOK

Introduction
18 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

Initialization
Insert>GlobalInitialization SetTemperaturetoAutomaticwith
Value

SetTemperatureto300[K] UnderComponentDetails,setO2to
AutomaticwithValue

SetMassFractionforO2to0.23 Leaveallothersettingsattheirdefault
values

Thesolverwillcalculateautomaticvalues
fortheremainingvariables Theflowisinitializedwithoutany productsofcombustionpresent

ClickOK
Introduction
19 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

MonitorQuantities
Insert>Solver>OutputControl CreateanewMonitor
SetNametoAverageTemperature SetOptiontoExpression SetExpressionValueto
volumeAve(T)@DefaultDomain

Createtwonewmonitorsinthesame
way:

Name:HeatFlowthroughFloor Expression:

20

Themonitorpointswilltrackaverage areaInt(WallHeatFlux)@REGION:wall_floor temperatureinthedomain,totalheatflux throughthefloorregion,andmassflowthrough Name:FanIntakeMassFlowRate thesimulatedfanregion Expression: Theregionwheremassflowismonitoredwas massFlow()@REGION:Primitive 2DB nottaggedasaNamedSelection,sothemesh regionoftheprimitiveCADsurfacethat ClickOK representsitwaschosenhere.
Introduction
2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

MonitorQuantities
Notesonmonitors: Buoyancydrivenflowsoftenshowtransientbehavior.Forthisreason,theresidualswilloften oscillate.Becauseofthis,convergenceshouldalwaysbejudgedbysolutionvariablemonitorsandflux reports.Theresidualswillhowevergiveanindicationofoverallconvergencebehaviour andstability. Incasesofanoscillatingsteadystatesolution,acommonapproachistocontinuethesimulationin transientmode.Inmanycasestheoscillationswillreducesignificantlyafterafewtimesteps. Theuseofsurface/volumemonitorscombinedwithresidualswillprovidethebestoveralljudgeof solutionconvergence.

Introduction
21 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

SolverControl
DoubleclickSolverControl UnderConvergenceControl,setMax.
Iterationsto250

SetTimescaleControltoPhysical
Timescale

SetaPhysicalTimescaleof5[s] SetResidualTargetto1e5 EnableConservationTarget


SetValueto0.01

ClickOK
Theconservationtargetsetsaminimumlevelof imbalanceinformationforthesolvedquantities. Inthiscase,thesolverisaimingfor1% imbalance.
Introduction
22 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

Solution(Optional)
CloseCFXPre Thesolutionmaytake3060minutesto
complete

Aresultsfileisprovidedinthis
workshopifyoudonotwishtosolve thecase.Tousetheprovidedresults file,gotothenextpage

Tosolvethecasemanually:
RightclickSolutionandselectEdit. WhentheSolverManageropens,click
StartRun Skipthenextpageofinstructionsand continuefromMonitoringtheSolution

Introduction
23 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

UsingProvidedResults(Optional)
Tousetheprovidedresultsfile:
Browsetotheresultsfilegarage_001.res
usingWindowsExplorer Draggarage_001.resintoANSYSWorkbench. Thesystemwillappearasaseparate componentintheProject

Inthenewsystem,rightclickSolution
andselectDisplayMonitors

TheSolverManagerwindowwillopento
showthediagnosticinfoassociatedwiththe suppliedresultsfile

Introduction
24 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

MonitoringtheSolution
ClicktheUserPointstab
Lookingattheheatflowthroughthefloor, itisclearthattherearesometransient characteristicstotheflow.Thisworkshop hasassumedthattheflowcanbetreated assteadystate,butforahigherfidelity solution,atransientstudywouldlikelybe necessary

ViewtheResiduals
Althoughconvergenceisbelow1e4, oscillationscanbeseenintheRMS residualswhichhelptoaffirmpossible transientsolutionbehaviour Thesolutioninthiscaseterminated becausethemaximumnumberof iterations,250,wasreached,notbecause thesolutionconvergedtotherequired level.

Introduction
25 2011ANSYS,Inc.

part1:longversion
January16,2012

Setup

Solving

ProceedtoPart2.
Release14.0

Postprocessing inCFD_POST

Part2:Postprocessing
26 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Objectives(Postprocessing)
LearningAims:
Thisworkshopisdesignedtoteacharangeofskillsinpostprocessing resultsfilesusingCFD Post.Topicstobecoveredinclude:

Creatingsurfacegroups Creatingisosurfaces Creatingportable(.cvf)images Creatingautomaticreports

Creatinglinegraphs Creatingexpressions(CEL) Performingintegrals Volumerendering

LearningObjectives:
TounderstandthewaysinwhichCFDPostcanbeusedbothforhighqualityimages,aswell asproducingquantitativedatafromvolume/surfaceintegrals,andwritingcustom functions.

Part2:Postprocessing
27 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

ResultsPreparation
Ifyouhavesetuptheproblemmanually,the resultsfilewillalreadybeavailable. IfyouareonlyperformingPostprocessing inthis workshop
Browsetotheresultsfilegarage_001.resusing WindowsExplorer Draggarage_001.resintoANSYSWorkbench.The systemwillappearasanewcomponentofthe Project

OR

RightclickResultsandselectEdit
CFDPostwillopenandloadtheresultsfile
Dependingonthepathchosen,youwillbeloadingresults fromacompleteanalysissystem(topright)orasolution component(bottomright).ToensureResultsarevalid, checktoseethatSolutionhasagreencheckbox

Part2:Postprocessing
28 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing WallTemperature
AddaLocationrepresentingagroupofsurfaces
Thisletsyougroupaselectionofentitles(inthiscasewalls)andapplythesamepostprocessing treatmenttoallitemsinthegroup.

SelectLocations>SurfaceGroup,andenterthenameGroupedWalls

Part2:Postprocessing
29 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing WallTemperature
DefineLocationdetails
Thedetailsofthenewlocationwillbedisplayed inthebottomleftpane. SelectLocations,andclickon ExpandtheRegionslistandselectallwalls EXCEPTwall_car (CTRLclicktomultipleselect). ClickOKintheLocationSelector.

Part2:Postprocessing
30 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing WallTemperature
ClicktheColorTab

SetModetoVariable SetVariabletoTemperature SetRangetoLocal ClickApply

ModifytheLegend
DoubleclickDefaultLegend
View1 UnderAppearance: SetPrecisionto1 ChangeScientifictoFixed ClickApply
Thisoptionhasallowedustoproduceatemperature contourplotofidenticalcolourrangeonagroupofsurfaces.
Part2:Postprocessing
31 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing GeneratingaFigure

Generateafigureforuse laterinareport.

ClicktheFigureicon EnternameFigure1Wall Temperature OKtotheInsertFigurepanel.

Rememberwherethisoptionis(youwill beaskedtouseitseveraltimeson subsequentslides). Wewillbecreatingseveralfiguresaswe progressthroughthisworkshop. Lateronwewilldemonstratehowtouse thesefigurestoautomatereportwriting.

Part2:Postprocessing
32 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing SectionPlane
Firstdeselectthecheckbox nexttoGroupedWallstoturn offvisibilityfortheobject AddaLocationrepresentinga sectionplane

SelectLocation>Isosurface SetNametoxzplaneandclick OK. UnderGeometrytabset DefinitionVariabletoY Valueto9[m] ClickApply Continuedonnextslide..

Part2:Postprocessing
33 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing SectionPlane
OntheColortab,setMode
toVariable

SettheVariableto
Temperature

UnderRenderdisable
Lighting

ClickApplytodisplay GenerateanewFigure,and
nameitFigure2 TemperatureSlice

Part2:Postprocessing
34 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing QuickAnimation
Theslicethroughthemodelgivesusausefulindicationofwhatis happeninginthemiddleofthedomain.Aquickanimationwill transversethisslicethroughthemodelsowecanseewhatis happeningelsewhere.

ClicktheAnimationbuttoninthetoptoolbar SelectQuickAnimation
Highlightxzplane PressthePlaybutton,andwatchthedisplay. Whenfinished,usethestopbuttonthenClose.
Ifrequired,thisanimationcouldbesavedtodiskinMPEG/ AVIformats. ThealternativetoQuickAnimationisKeyframe Animation.Tousethisyousetaseriesof keyanimationframes.Thesemighthavedifferentobjectsvisible,differentpointsina transientsimulation,ormighthavethemodelrotatedatadifferentviewingangle.The animationwillprogresssmoothlybetweenthesestates.
Part2:Postprocessing
35 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing 3DIsosurface
First,changethelookofthedisplay:
Hidetheplanexzplanepreviously
createdbyuncheckingitinthemodel tree Expandthetopofthemodeltree, expandingMeshRegions Doubleclickonwall_car

Ensurethatthedetailsboxshows
wall_car!

ForColorselectconstant,andpick
yellow ClickApply

Part2:Postprocessing
36 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing 3DIsosurface
Adda3DIsosurface representinggases
SelectLocation>Isosurface KeepthedefaultnameIsosurface 1 SettheVariabletoCO2.Mass.Fractionandthevalueto
0.001 SetColortobeconstant(usethedefaultgreycolour), thenClickApply GenerateanewFigure: Figure3CO2Isosurface

Part2:Postprocessing
37 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Streamlines
Add3DStreamlinestovisualizeflow
HidetheIsosurface createdinthepreviousstep(uncheckinmodeltree) ClicktheStreamlinebuttonandkeepdefaultname(Streamline1)
StartFrom:FreshAir #ofPoints:100 UnderColorset Mode:UsePlotVariable Range:Local ClickApply

Part2:Postprocessing
38 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing PortableCVFFiles
NotonlycanCFDPostexportregularimageformats(jpg/png),butinaddition3Dimagescanbesaved. Theseimageshavethefileextension.cvf TheycanbeviewedusingafreeCFDviewerthatcanbedownloadedfromtheANSYSwebsite.(Goto www.ansys.com,andsearchforCFDPostViewer) Nolicenseisrequiredtousetheviewer,soyoucaninstallthisonanycomputer(e.g.laptopusedfor presentations,oraskyourclient/customertoalsodownloadandinstallacopy). The3Dimagecanbeviewedusingrotate/pan/zoomfunctionalityjustasinCFDPost,andcanalsobe embeddedinMSPowerpoint.Howevertheusercannotmodifytheimage,theycannotadd/remove objectsfromtheimage,oraltercolour ranges. Thisisareallypowerfultoolforwhenyoucometopresentyourprojectwork.Inmanycasesa2Djpeg imagecannotexplain3Dflowfeatures.Howeverrotatingthemodelliveinfrontofyouraudiencewill helpconveyyourfindings.

Part2:Postprocessing
39 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing PortableCVFFiles
InCFDPost,clickthecameraicon ForFormat,selectCFDViewerState(3D) Clickthefoldericontotherightofthefilename.
Pickthedirectoryyouareworkingin(rememberthis!) Saveasfilenamecarstreamlines.cvf ClickSaveinbothwindows.

Part2:Postprocessing
40 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing PortableCVFFiles
Minimise CFDPost,anduseWindowsExplorertobrowsetothe
folderusedonthelastslide.

Notehowthisfile(carstreamlines.cvf)isquitesmall(inthiscase
about170kB(butitwillvarydependingonzoomlevel),and thereforeeasytoemailtoyourclientormanager).

Doubleclicktoopenthisfile(itwilltakeafewmomentsto
launchtheviewerapplication)
IfyouhaveANSYSR14installedonyourmachine,yourcomputerwillalreadyhave theviewer,andwillrecognizethisfileextension.Youonlyneedtodoaseparate installationofCFDPostViewer(fromtheANSYSwebsite)onmachinesthatdonot haveWorkbenchinstalled.
Part2:Postprocessing
41 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing PortableCVFFiles
CFDPostViewerwilllookjustlikethe
graphicalwindowofCFDPost

Useleftmousebuttontorotate Middlemousebutton(orwheel)tozoom Rightmousebuttontotranslate Typequestionmark?foralistofhotkeys

Part2:Postprocessing
42 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing VolumeRendering
ClosethestandaloneviewerandreturntoCFDPost Hidethestreamlinesplotbyuncheckinginmodelview SelectInsert>VolumeRenderingandsetNametoGasCloud
UnderGeometry,setCO2.MassFraction KeeprangeasGlobal,thenclickApply

Tomakeiteasiertoseetheimage,
changethescreenbackgroundcolour to white:

Edit>Options>CFDPost>Viewer SetColorTypetoSolid SetColortowhite ClickOK

Thisoptionappliesavariablecolourandtransparencyto eachgridcelldependingontheplotvariable.For applicationslikethisinvolvingsmokemovementitmakesit easyfortheeyetoassesswherethecloudisconcentrated.


Part2:Postprocessing
43 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Quantitative
UntilnowwehaveusedCFDPosttocreatecolourimagestohelpinterprettheCFD results Nextwewilllookatsomequantitativetechniquesforextractingnumericaldata(volume integrals),andproducinglinegraphs. Itisalsopossibletowriteyourownarithmeticexpressionsforcustompostprocessing.

CreateaLinethroughthemodel
HidetheGasCloudvolumerenderingobject Location>LineandkeepdefaultnameLine1. SetMethodtoTwoPoints
FromX=18Y=3Z=2 FromX=18Y=18Z=2 SetSamplesto40 ClickApply

Thishascreatedahorizontallinethroughthemodel,passing abovethefrontofthecar

Part2:Postprocessing
44 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing LineGraph
SelecttheChartIconfromthetopToolbar KeeptheDefaultnameChart1andclickOK
UnderGeneral,settheTitleto
TemperatureProfile UnderDataSeriesSetlocationto Line1 UnderXAxis,setvariabletoY UnderYAxissetvariabletoTemperature ClickApply

Part2:Postprocessing
45 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing LineGraph
Notesonthegraph: Thecomputationdomainexistsfrom

3m<y<18m
Thecar(andfiresource)islocatedat

8m<y<10m
Thejetfanislocatedat

13m<y<15m
Noticethatthepeaktemperatureislocatednotabovethemiddleofthecar(y=9m) butmovedsomedistancetotheleft(circay=7m).Thisisadirecteffectoftheair movementfromthejetfan.

Part2:Postprocessing
46 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing VolumeIntegrals
Theonlysourceofcarbondioxide(CO2)inthemodelisfromthecarfiresource(the inletjustcomprisesoxygenandnitrogen).Wewillperformavolumeintegraltofind outhowmuchco2ispresentinthemodel.

SelectCalculatorstab SelectFunctionCalculator
Function:volumeInt (forVolume
Integral) Location:DefaultDomain Variable:CO2.Mass.Fraction ClickCalculate Theresultisabout1.15m^3ofCO2

Part2:Postprocessing
47 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Expressions

Itispossibletowriteyourownarithmeticfunctionsforpostprocessing,makinguseofthedata exportedbythesolver.Theresultingexpressionmayeitherreturnasinglevalue(firstexample, below),orproduceaquantitythatvariesspatiallyforuseinacontourplot/linegraph

SelecttheExpressionstab RightclickinthewindowandselectNew EnternamePressureDropthenclickOK Enterthefollowingexpression,thenclickApply


1

ave(Pressure)@FreshAir Note:rightclickmenuusageshownbelow

Theanswerisapproximately31Pa.
3 2
Part2:Postprocessing
48 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Expressions
ave returnstheaverageatthe locationspecifiedbythe@ Foralistoffunctionsavailable, rightclickinthewindowand selectFunctions>CFDPost

NotehowPressureturnsto italicsassoonasyoutypeit. Itisimportanttomakethefirst letteracapitalP Forafulllistofavailable variables,rightclickinthis windowandselectVariables

Thisisthenameoftheboundarythatyouareperforming theaveragefunctionon. Forafulllistoflocations,rightclickandselectLocations Notethattocomputethepressuredrop,wedidnotneed toaddtheoutletboundary... ave(Pressure)@AirOutlet TheoutletboundarywassettobeapressureoutletinCFX withapressureof0Pa.Thistermwouldreturnazero value tryitifyoulike!

Part2:Postprocessing
49 2011ANSYS,Inc.

ColourImages

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Expressions
Theproceduretocreateanexpressionthatcanbeplottedspatiallyis verysimilar,thereisjustoneadditionalsteptoassignittoavariable

Asasimpleexample,letsconverttemperaturefromKtoCand
plotthisonagraph

Expressions>New SetNametoTemperatureConversion Enterthisexpression:Temperature/1[K] 273.15 ClickApply

Note: InitialcapitalsforTemperature.Itwillturntoitalicsifcorrect. Expressionsmustbalancedimensionally. WecannotjustenterTemperature 273.15sinceTemperaturehasaunit[K] Bydividingby1[K]weremovethetemperatureunit. WecouldinsteadenterTemperature 273.15[K] Thisexpressionisvalid,butwouldreturnavaluewithunits[K]whichwouldbemisleading.


Part2:Postprocessing
50 2011ANSYS,Inc.

ColourImages

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Expressions
Expressionscannotbeplotteddirectly:theyneedtobeassignedtoa Variable

ClicktheVariablestab RightclickanywhereinthewhitespaceundertheVariablestab
andselectNew

EnteranameTemperatureC Fromthepulldownlist,selecttheexpression
TemperatureConversioncreatedonthelastslide ClickApply

Part2:Postprocessing
51 2011ANSYS,Inc.

ColourImages

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Expressions
UsethisnewtemperatureontheChart createdearlier

(TopLeft)selectOutlinethen
doubleclickonChart1

UnderYAxischangethe
variablebyclickingonthe... icon

Selectthevariable
TemperatureC

ClickOKthenclickApply Atthebottomofthescreen
changefrom3DViewerto ChartViewer

Part2:Postprocessing
52 2011ANSYS,Inc.

ColourImages

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Expressions
Thegraphnowshowsthe
resultoftheexpression

Part2:Postprocessing
53 2011ANSYS,Inc.

ColourImages

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Postprocessing Reports
Intheoptionsbelowthegraphic
window,selectReportViewer

SelectRefresh Reviewwhatisshowninthereport
window.Youcansee:

Nameoftheresultsfile Meshsummary ListofBoundaryconditions AlltheFiguresandChartsproduced duringthisworkshop

IfyouselectPublishthiswillbewritten outinhtmlformat,alongwithcopiesof alltheresultsimages.


Part2:Postprocessing
54 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

StatefilesandOptionalExtrawork
UseFile>Savestateas...andsavetoyourworkingdirectory.
Thisstatefilestoresallthepostprocessingsettingsyouhavecreated. Ifyouhavedonethelongversionofthisworkshop,youwillrecallthatweranforafixednumber ofiterations,andwantedtoexaminetheresultstohelpusdetermineifthemodelhadconverged ornot.(Theresidualswerestuckandfurtheriterationswouldnotlowertheresiduals).Itmight bebe necessarytorevisitthemodelsetup,bymovingtoatransientscheme,ormodifyingthe modellingsettings.Ausefulassessmentofconvergenceistoseeiftheresultsofinterestremain unchangedasthesolversettingsareenhanced. Thebigadvantageofhavingthisstatefileisthatifyouchoosetomodifythesolversettingsand rerunthismodel,youcanquicklyreproducetheequivalentpostprocessingimages.Simplyload thenewresultsfile,thenloadthisstatefile. Likewise,itiscommoninprojectworktohaverunaseriesofmodelstotestthedifferent operatingconditions.Thistechniquewillletyougenerateequivalentimagessoastoproducea goodlikeforlikecomparisoninyourpresentation/report.

Part2:Postprocessing
55 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

StatefilesandOptionalExtrawork
TheReportsfeaturejustdemonstratedwillletyoucustomise
theformatofyourreport.

Ifyouhavefinishedthisexerciseaheadoftherestoftheclass,
tryexperimentingwiththeReportoptionsinthelefthand toolbar.

Youcanchoosewhichobjectsarevisible,addyourowncompany
logo,oraddlinesoftexttoexplainthecontentofthereport.

Part2:Postprocessing
56 2011ANSYS,Inc.

Color Images

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Wrapup
CFDPostisaverypowerfulpostprocessingtool,andcapableof
producinghighqualityimagesquicklyandeasily.

Inthisworkshopwehaveshownhowtoproducecontourplots,
streamlines,andisosurfaces (asseeninsomeotherworkshops forthiscourse)

InadditionyouhaveusedCFDPosttoperformvolumeintegrals,
createlinegraphs,andtocreateyourownarithmeticexpressions forpostprocessing.

3Dimagescanbesavedtodisk,andviewedinafreewareviewer.
Thisaddsmuchimpacttopresentations,andcanberunonany computer(nolicenseneeded).

CFDPostcanalsoautomatethereportgenerationprocess. Postprocessing isbestlearnedbypractice.Ifyouhavetimenow,


tryexploringtheotherbuttonsintheinterface.
Part2:Postprocessing
57 2011ANSYS,Inc.

ColourImages

LineGraphs

ExpressionsandIntegrals

Reports

Summary
Release14.0

January16,2012

Вам также может понравиться