Vous êtes sur la page 1sur 38

Workshop2 MeshingMethods

14.0Release

IntroductiontoANSYS Meshing
1 2011ANSYS,Inc. December27,2011 Release14.0

Introduction
Background

Thisworkshopwillintroducedifferent
meshingmethodsavailableinANSYS Meshing.ACADfilewillbeimported directlyintotheMeshingApplication. AccesstoDesignModeler isrequiredfor thefinalstageoftheworkshopwhich demonstrateshowdecompositioncan influencemeshmethods.

Objectives

Automatic(Tet PatchConforming) Tet PatchIndependent Multizone AssemblyMeshing(CutCell) DecompositionforSweepMeshes Automatic(Tet &Sweep) 2011ANSYS,Inc. December27,2011

Release14.0

ProjectStartup
CreatetheProject

StartWorkbench.
Start>AllPrograms>ANSYS 14.0>Workbench14.0. DraganddropaMeshComponent SystemintotheProjectSchematic. RightclickontheGeometrycell(A2) andselectImportGeometry>Browse. Locatethefilecomponent.stpin theMeshingworkshopsInputFiles folderandselectit.Thegeometrycell willshowacheckmarkindicatingitis uptodate. Doubleclickthe meshcell(A3)to startMeshing.
December27,2011 Release14.0

2011ANSYS,Inc.

Units
SetUnits

FromthemainmenuselectUnitsand,ifitisnotalreadyset,
specifyMetric(m...).

2011ANSYS,Inc.

December27,2011

Release14.0

Preparation
Planning

ThisCADfilecontainsasinglebody
representingacomponentinaventilation system. Flowentersthroughtheupperpipe,passes throughthechamberandexitsthroughthe lowerpipe.Thereaseveralsmallcircularvents imprintedonthechamberfrontface. Almostallmeshmethodscanbeappliedhere, theselectionofwhichmethodtousedepends onspeed,memoryusage,requirementfor defeaturing andanymeshspecificsolver restrictions. Wewilldemonstratehowdifferentmethods areapplied(includinginflation)andhighlight importantdifferencesintheresultingmeshes.
December27,2011 Release14.0

2011ANSYS,Inc.

GlobalMeshSettings
Mesh

IntheOutline,selecttheMeshobjectto
displayDetailsofMesh.

InDetailsofMesh,setthefollowingunder
Defaults; PhysicsPreference:CFD. SolverPreference:FLUENT. UnderSizing,set; RelevanceCenter:Medium. UseAdvancedSizeFunction:On:Curvature.
December27,2011 Release14.0

2011ANSYS,Inc.

GlobalMeshSettings
Mesh

UnderStatistics,set;
MeshMetric:OrthogonalQuality.

2011ANSYS,Inc.

December27,2011

Release14.0

NamedSelections
AddNamedSelections

SelecttheFaceSelectionFilter. Selectthetopfaceasshownbelow,rightclickandselect
CreateNamedSelectionfromtheContextMenu. IntheNamedSelectionDialogBoxtypethenameinletand clickOK.

2011ANSYS,Inc.

December27,2011

Release14.0

NamedSelections
AddNamedSelections

Dothesameforthelowerfaceasshown
below,thistimeenteringthename outlet. TheNamedSelectionswillbelistedinthe Outline(right).

2011ANSYS,Inc.

December27,2011

Release14.0

GlobalInflation&AutomaticMethod
SetupGlobalInflation

InDetailsofMeshsetthefollowing
underInflation. UseautomaticInflation:Program Controlled. Inflationoption:TotalThickness. NumberofLayers4. MaximumThickness0.003m.

Thiswillgenerateinflationlayerson
allfacesexcludingthosewehave createdNamedSelectionsfor. Generatethemesh.

10

2011ANSYS,Inc.

December27,2011

Release14.0

AutomaticMethod
ViewtheMesh

RightclickintheGraphicsWindow
andselectIsometricViewfromthe ContextMenu.

TheAutomaticMethodhasselected
theTetrahedronsMethodusingthe PatchConformingAlgorithm. Themeshhasconformedtoall geometricdetails. Allsurfacesexcepttheinletand outletNamedSelectionshavebeen inflated.

11

2011ANSYS,Inc.

December27,2011

Release14.0

AutomaticMethod
CreateaSectionPlane

Snaptothe+ZviewusingtheAxis
Triad.

SelecttheSectionPlanebutton. CreateaSectionPlanebyclicking,
draggingandreleasingasshown verticallydownthroughthemesh. RestoretheIsometricViewusingthe rightclickContextMenuortheAxis Triad.
December27,2011 Release14.0

12

2011ANSYS,Inc.

AutomaticMethod
ViewtheMeshInterior

ZoominusingtheBoxZoombuttonto
inspectthemesh.UsetheZoomtoFit buttontorestoretheviewextents. ThedefaultAutomaticMethodalways usesPatchConformingTetrahedrons and/orSweepdependingonthe Geometry inthisnonsweepable case justPatchConformingTetrahedrons wereused.Wellnowlookathowother methodscanbeaccessed. SwitchofftheSectionPlaneby unchecking theboxinthePanel.

13

2011ANSYS,Inc.

December27,2011

Release14.0

InsertingMethodsManually
InsertaMethod

RightclickontheMeshobjectinthe
OutlineandselectClearGenerated DatafromtheContextMenu selectingYeswhenpromptedto confirm.

SelecttheBodySelectionFilter. IntheGraphicsWindow,selectthe
body,rightclickandselectInsert> MethodfromtheContextMenuas shown.

14

2011ANSYS,Inc.

December27,2011

Release14.0

SettingMethodDetails
SetMethodDetails

AMethodObject,defaultingto
Automatic,isinsertedintheOutline.

IntheMethodDetailstheMethod
Typeisaccessedviaadropdownbox exposingtheavailablemesh methods. TheMethodsethereisappliedtothe bodyinitiallyselected.

15

2011ANSYS,Inc.

December27,2011

Release14.0

TetrahedronsPatchIndependent
SetMethodDetails

TheAutomaticMethodisthesameas
thedefaultwehavejust demonstrated. SetMethodtoTetrahedrons. SetAlgorithmtoPatchIndependent. WehavealreadyseenPatch conformingusedwiththe AutomaticMethod. WhenPatchIndependentis selectedanumberofPatch Independentspecificsettings appearcontrollingsizingand defeaturing.Thesecanbeleftto thedefaults. Generatethemesh.
December27,2011 Release14.0

16

2011ANSYS,Inc.

TetrahedronsPatchIndependent
ViewtheMesh

ThePatchIndependentMethoduses
adifferentandspecifictypeof inflationalgorithm(Post),the messageboxmayindicatethisalong withawarningregardingmesh resolution.Youmayhavealso noticedithastakenmoretimeto generatethemesh. Notetheautomaticdefeaturing of thesmallimprintedfacespresenton thegeometry. Thisbehaviourcanbeusefulfor defeaturing largeCADmodels. SwitchontheSectionPlanetoview themeshinterior.
December27,2011 Release14.0


17

2011ANSYS,Inc.

TetrahedronsPatchIndependent
ViewtheMeshInterior

Notetheinflationandinternal
structureofthemesh. Whenreadytoproceed,switchoff theSectionPlaneandclearthemesh asbefore.Byrightclickingonthe MeshObjectintheOutlineand SelectingClearGeneratedDatafrom theContextMenu.

18

2011ANSYS,Inc.

December27,2011

Release14.0

MultiZone
SetMethodDetails

SelecttheMethodObjectinthe
Outline(itassumesthenameofthe currentsetMethod).

IntheDetailschangetheMethodto
MultiZone. Thedetailswillchangetothose specifictotheMultiZone Method. SetFreeMeshTypetoTetra. Generatethemesh.

19

2011ANSYS,Inc.

December27,2011

Release14.0

MultiZone
ViewtheMesh

MultiZone hasgeneratedanallquad
surfacemesh. Noteagain,theautomatic defeaturing ofthesmallimprinted facespresentonthegeometry. Multizone isalsoamethodthatis categorisedasPatchIndependent and,liketheTetrahedronsPatch IndependentMethodiscapableof automaticdefeaturing.

SwitchontheSectionPlanetoview
themeshinterior.
20 2011ANSYS,Inc. December27,2011 Release14.0

MultiZone
ViewtheMeshInterior

MultiZone hasautomaticallycreated
structuredhexcellswherepossible andusedtetrahedronselsewhere. Thetypeofmeshusedinthe unstructuredregionwasdetermined bytheFreeMeshsettingwhichwe settoTetra.

Thisautomaticdecompositionis,in
theMeshingApplication,afeature uniquetoMultiZone.

SwitchofftheSectionPlaneandclear
themeshwhenreadytoproceed.
21 2011ANSYS,Inc. December27,2011 Release14.0

AssemblyMeshing CutCell
ActivateAssemblyMeshing

AssemblyMeshingisnotinsertedas
amethodbutmustbeactivatedin theGlobalDetails. SuppresstheMethodObjectbyright clickingonitintheOutlineand selectingSuppress. Thiswilldeactivatethemethod butwillpreservethesettings shouldwedecidetoreuseit.

SelecttheMeshObjectintheOutline
todisplayDetailsofMesh. UnderAssemblyMeshingsetMethod toCutCell andTessellation RefinementtoNone.
December27,2011 Release14.0

22

2011ANSYS,Inc.

AssemblyMeshing CutCell
SetModelMaterial

Assemblymeshingrequiresthatthe
modelmaterialbespecifiedeitherin thegeometryapplicationorin meshing. SelectthebodyintheOutlineas showntodisplayitsdetails.

IntheDetails,underMaterial,set
Fluid/SolidtoFluid.

GeneratetheMesh.

23

2011ANSYS,Inc.

December27,2011

Release14.0

AssemblyMeshing CutCell
ViewtheMesh

Assembly/CutCell producesa
cartesian CutCell meshwhich imprintstothegeometry. ItisaPatchIndependentmethodand sodemonstratesdefeaturing.It producesalargequantityofhexcells andisusefulincasesthatwould otherwiserequiresignificant geometrycleanup.

SwitchontheSectionPlanetoview
themeshinterior.

24

2011ANSYS,Inc.

December27,2011

Release14.0

AssemblyMeshing CutCell
ViewtheMeshInterior

TheAssemblyMeshing/CutCell
methodhasfilledthegeometrywith primarilyhexcellsusingTetrahedron, PyramidandWedgecellswhere required.

SwitchofftheSectionPlaneandclear
themeshwhenreadytoproceed.

WewillnowlookatSweepMeshing. IntheDetailsofMesh,under
AssemblyMeshingSetMethodto Nonetodeactivateit.

25

2011ANSYS,Inc.

December27,2011

Release14.0

SavetheProject
IfyoudonothaveaccesstoDesignModeler theworkshopis
nowcompleteandyoucansavetheProject. FromtheWorkbenchProjectPageusethefilemenuand savetheprojectasAMWS2.wbpjtoyourworkingfolder.

IfyoudohaveaccesstoDesignModeler proceedtothenext
slide.

26

2011ANSYS,Inc.

December27,2011

Release14.0

SweepMeshing
SweepRequirement

TheSweepMethodcanproducehigh
quality,accuratemeshesquickly. Inordertogenerateasweepmesh wemusthavesweepable bodies. Wewilldecomposethegeometryin DesignModeler toillustratehowthis canbeaccomplished. FromtheWorkbenchProjectPage, launchDesignModeler bydouble clickingtheGeometryCell(A2). LeavetheMeshingApplication Open.

27

2011ANSYS,Inc.

December27,2011

Release14.0

DesignModeler
SetUnits

WhenDesignModeler startsupselect
MeterintheUnitsSelectionBoxand clickOK.

28

2011ANSYS,Inc.

December27,2011

Release14.0

Preparation
Planning

Asimplewayofdecomposingthisgeometry
intosweepable bodieswouldbetoseparate theupperandlowercylindricalbodies. Asseparatebodiestheymeetthecriteriafor theSweepMethod.
SourceFace

Mappable SideFace Decomposeby Slicing TargetFace SingleBody


29 2011ANSYS,Inc. December27,2011

MultiBody
Release14.0

Decomposition
SlicetheGeometry

Thegeometryimportwillrequire
generationfirst. ClickGenerate.

SelectSlicefromtheCreateMenu. IntheDetailsViewsetSliceTypeto
SlicebyEdgeLoop. ActivatetheEdgesSelectionBoxand selectthetwoedgesasshown. Applytheselection. Generate.

30

2011ANSYS,Inc.

December27,2011

Release14.0

Decomposition
SlicetheGeometry

Selectthethreebodies,rightclick
andselectFormNewPartfromthe ContextMenu.

Checkyouhave1Part,3Bodies. CloseDesignModeler.

31

2011ANSYS,Inc.

December27,2011

Release14.0

AutomaticMethod(Tetra&Sweep)
MethodSetup

IntheMeshingApplicationrightclick
onGeometryintheOutlineand selectRefreshGeometry. LikePatchConformingTetrahedrons, wecaninserttheSweepMethod manuallyorsimplyallowthe AutomaticMethodtoallocatethe methodsforus. Wewillmeshthemodifiedgeometry usingtheAutomaticMethodto demonstratethis. Sincewehavedeactivatedassembly meshingandsuppressedthemethod wehadusedearliertheMeshing Applicationwillnowdefaulttothe AutomaticMethod.
December27,2011 Release14.0

32

2011ANSYS,Inc.

AutomaticMethod(Tetra&Sweep)
InflationforSweepable Bodies

TheGlobalProgramControlled
Inflationwehaveusedsofarisnot compatiblewithSweepmeshingso wemustcreatealocalinflation control. Selectthetwofacesasshown,right clickandselectInsert>Inflationfrom theContextMenu.

TheMeshingApplicationwillinflate
fromtheboundaryedgesofthese facesandtreatthemassourcefaces forthesweepmeshes.

33

2011ANSYS,Inc.

December27,2011

Release14.0

AutomaticMethod(Tetra&Sweep)
InflationforSweepable Bodies

InDetailsofInflationactivatethe
BoundarySelectionBox,selectthe twoedgesboundingeachofthe sourcefacesasshownandapplythe selection.

SettheFollowing;
InflationOption:TotalThickness. NumberofLayers:4. MaximumThickness0.003m.

Generatethemesh.

34

2011ANSYS,Inc.

December27,2011

Release14.0

AutomaticMethod(Tetra&Sweep)
ViewtheMesh

TheAutomaticMethodhasproduced
hexsweptmesheswithinflationin thecylindricalbodiesandPatch ConformingTetrahedronsinthe Chamberbody.

SwitchontheSectionPlanetoview
themeshinterior.

35

2011ANSYS,Inc.

December27,2011

Release14.0

AutomaticMethod(Tetra&Sweep)
ViewtheMeshInterior

Theglobalinflationusedinthe
chamberbodyhasstairstepped downtotheinterfacebetweenthe bodies(youwillhaveseenamessage indicatingthis) Youcouldaddalocalinflation controltothechamberbodyto createcontinuouslayers. AlthoughSweepmeshesgenerally requiremoreconsiderationduring geometryconstructionorCAD decompositiontheyproducegood qualitymeshesquicklyandefficiently andwhencombinedwithtetrahedral methodsprovetobeanaccurate, flexibleandwellvalidatedapproach.
December27,2011 Release14.0

36

2011ANSYS,Inc.

NamedSelections
ReassignNamedSelections

YoucanreassigntheNamedSelectionsbyselectingthemin
theoutline. ActivatetheGeometrySelectionBoxintheDetails,reselect theappropriatefaceandapply. Dothisfortheoutlettoo.

37

2011ANSYS,Inc.

December27,2011

Release14.0

SavetheProject
Thiscompletestheworkshop. FromthemainmenuselectFile>CloseMeshing
Workbenchwillsaveanyapplicationdata.

FromtheWorkbenchProjectPageusethefilemenuandsave
theprojectasAMWS2.wbpjtoyourworkingfolder.

38

2011ANSYS,Inc.

December27,2011

Release14.0