2013 11-14 mech479-ansys_workbench_tutorial

27
Introduction to Mesh Generation with ANSYS Workbench MECH479 Sean Delfel 2013-11-14

Transcript of 2013 11-14 mech479-ansys_workbench_tutorial

Page 1: 2013 11-14 mech479-ansys_workbench_tutorial

Introduction to Mesh Generation with

ANSYS Workbench

MECH479

Sean Delfel

2013-11-14

Page 2: 2013 11-14 mech479-ansys_workbench_tutorial

2

Overview• Background

• Workbench Overview

• ANSYS DesignModeler (DM) Overview

• ANSYS Meshing (AM) Overview

• Tutorial #1: 2D Cylinder

Page 3: 2013 11-14 mech479-ansys_workbench_tutorial

3

Background

• What is Workbench?

– Platform for integration of ANSYS analysis

tools.

• Solid mechanics, fluid dynamics, EM, optimization,

etc.

– Entire project contained in common platform:

geometry creation, meshing, analysis, and

post-processing.

Page 4: 2013 11-14 mech479-ansys_workbench_tutorial

4

Background

• A brief history of ANSYS:

– ANSYS originally a finite element analysis

(FEA) code for structural mechanics.

– Began acquiring other analysis codes ~2000.

– Most relevant for CFD:

• CFX purchased in 2003

• Fluent purchased in 2006

– With ANSYS 10.0, began combining all

acquired preprocessing tools into DM and

AM.

Page 5: 2013 11-14 mech479-ansys_workbench_tutorial

5

Background• Pros of ANSYS DM/AM:

– Robust collection of meshing algorithms (AM)

– Easily integrated with CAD packages for

complex geometries (DM)

– Geometry can be parameterized (DM/AM)

• Cons of ANSYS DM/AM:

– Blocking of geometry can be difficult (DM)

– Less control of mesh specifics, structured

meshing more difficult (AM)

Page 6: 2013 11-14 mech479-ansys_workbench_tutorial

6

Workbench OverviewProject Schematic

Component

Systems

PropertiesComponent Links

Page 7: 2013 11-14 mech479-ansys_workbench_tutorial

7

Workbench Overview• Project built by dropping component

systems into schematic.

• Links connect different components, show flow of project/data.

Geometry (DM)

Meshing (AM)

Solver (Fluent)Post-Processing

(CFD-Post)

Page 8: 2013 11-14 mech479-ansys_workbench_tutorial

8

DesignModeler (DM) Overview• Geometry creation application for

Workbench.

• Solid-based, parameterizable

• Integrates well with CAD platforms

• General geometry creation procedure:

2D Sketch 3D Body Manipulation

of Bodies

Combine

Bodies in

Part

Page 9: 2013 11-14 mech479-ansys_workbench_tutorial

9

DesignModeler (DM) Overview

Graphics

Operations

List

Modeling/

Sketching

Tabs

Info. Panel

Page 10: 2013 11-14 mech479-ansys_workbench_tutorial

10

ANSYS Meshing (AM) Overview• Meshing generation application for

Workbench.

• Incorporates algorithms from multiple legacy packages

• General meshing procedure:

Import

Geometry

Select

Method

Add Sizing

ControlsGenerate

Mesh

Refine

Page 11: 2013 11-14 mech479-ansys_workbench_tutorial

11

ANSYS Meshing (AM) Overview

Graphics

Operations

List

Info. Panel

Page 12: 2013 11-14 mech479-ansys_workbench_tutorial

12

Tutorial #1: Cylinder

• Objectives:

– Use DM/AM to create geometry for a 2D

cylinder and domain.

– Create and Refine Mesh.

Page 13: 2013 11-14 mech479-ansys_workbench_tutorial

13

Tutorial #1: Cylinder

• Launch Workbench.

• Ensure that the “Properties” pane is active (View -> Properties)

Page 14: 2013 11-14 mech479-ansys_workbench_tutorial

14

Tutorial #1: Cylinder1) Drag “Mesh”

component to project

schematic

3) Toggle Analysis Type

to “2D”2) Select “Geometry”

4) Launch DM (Double click/right click Geometry)

Page 15: 2013 11-14 mech479-ansys_workbench_tutorial

15

• Create Sketch

Tutorial #1: Cylinder

2) New

Sketch Button1) Select

Plane

3) Sketching

Tab

Note: For 2D

simulations,

all geometry

must be

created in the

XY Plane

Page 16: 2013 11-14 mech479-ansys_workbench_tutorial

16

• Create Sketch (cont.)

Tutorial #1: Cylinder

4) Under

“Draw”,

select

circle,

create in

graphics

window

5) Repeat

with

rectangle

Page 17: 2013 11-14 mech479-ansys_workbench_tutorial

17

• Create Sketch (cont.)

Tutorial #1: Cylinder

6) Select

“Dimensions”,

add the

diameter,

horizontal

(x2) and

vertical (x2)

dimensions

shown

D = 1 m,

H1 = 10 m,

H2 = 20 m,

V1 = 10 m,

V2 = 10 m

Note: Lines will change color as constraints are added. Cyan = under

constrained, Dark Blue = Fully Constrained, Red = Over Constrained

Page 18: 2013 11-14 mech479-ansys_workbench_tutorial

18

• Create Surface from Sketch

Tutorial #1: Cylinder

1) Return to

“Modeling”

Note: “Add Material” = new body will unite with existing

bodies. “Add Frozen” = No booleans performed

2) Concept ->

Surfaces from

Sketches

3) For Base

Objects,

select

“Sketch1”,

click apply.

4) Toggle

“Add

Material” to

“Add Frozen”

5) Generate

Page 19: 2013 11-14 mech479-ansys_workbench_tutorial

19

• Review Body, set to “Fluid”

Tutorial #1: Cylinder

1) Expand

Part menu

2) Select

Surface Body

3) Toggle

Fluid/Solid to

“Fluid”

Note: For multiple bodies, must be combined into a Part

to make up a single domain.

Page 20: 2013 11-14 mech479-ansys_workbench_tutorial

20

• Return to Workbench, launch Meshing

Tutorial #1: Cylinder

If preference menu pops up, select CFD for physics

preference.

Page 21: 2013 11-14 mech479-ansys_workbench_tutorial

21

• Set Mesh Preferences

Tutorial #1: Cylinder

2) Ensure

Physics

Preferences

are set to

CFD and

Fluent

1) Click on

Mesh

Page 22: 2013 11-14 mech479-ansys_workbench_tutorial

22

• Insert Mesh Method

2) Select the

body for

Geometry

Selection,

click Apply

Tutorial #1: Cylinder

2) Insert ->

Method

1) Right click

on Mesh

3) Click

“Update” or

“Generate

Mesh”

Page 23: 2013 11-14 mech479-ansys_workbench_tutorial

23

• Try out different Mesh Methods

Tutorial #1: Cylinder

Quad. Dominant Triangles

Multizone Quad/Tri

Page 24: 2013 11-14 mech479-ansys_workbench_tutorial

24

• Improve Mesh: Insert Edge Sizing

Tutorial #1: Cylinder

2) Right click

Mesh.

Insert ->

Sizing

1) Return

Method to

Quad

Dominant

3) Click Edge

Selection,

Select top

and bottom

edges (hold

control for

multiple)

4) Change Type to “Number of Divisions”, Input 50

divisions, Change Behavior to “Hard”

5) Re-Generate Mesh

Page 25: 2013 11-14 mech479-ansys_workbench_tutorial

25

• Improve Mesh: Insert Inflation for B.L.

Tutorial #1: Cylinder

1) Right click

Mesh.

Insert ->

Inflation

2) Select

Face for

Geometry

5) Re-Generate Mesh

3) Select

circle for

Boundary

4) Input 10 for

Max. Layers

Page 26: 2013 11-14 mech479-ansys_workbench_tutorial

26

• Create Boundary Conditions w/ Named Selections

Tutorial #1: Cylinder

1) Select

edge, then

right click ->

Create

Named

Selection

2) Specify BC

names for all

edges

Inlet

Outlet

Top

Bottom

Cylinder

3) BC types

can be

adjusted in

Fluent

Page 27: 2013 11-14 mech479-ansys_workbench_tutorial

27

• Export Mesh (if using standalone Fluent)

Tutorial #1: Cylinder

1) File ->

Export

2) Specify

Fluent Input

File (.msh)

3) Enter

filename and

save