workshop 4 flow through porous media

14
WS4-1 ANSYS, Inc. Proprietary © 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002599 Workshop 4 Flow Through Porous Media Introduction to CFX Pardad Petrodanesh.Co Lecturer: Ehsan Saadati [email protected] www.petrodanesh.ir

Upload: ilya

Post on 11-Jan-2016

137 views

Category:

Documents


3 download

DESCRIPTION

Workshop 4 Flow Through Porous Media. Introduction to CFX. Pardad Petrodanesh.Co Lecturer: Ehsan Saadati [email protected] www.petrodanesh.ir. Introduction. This workshop demonstrates how to model porous media in CFX. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Workshop 4 Flow Through Porous Media

WS4-1ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

April 28, 2009Inventory #002599

Workshop 4

Flow Through Porous Media

Introduction to CFXPardad Petrodanesh.CoLecturer: Ehsan [email protected]

Page 2: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-2April 28, 2009

Inventory #002599

Introduction

• This workshop demonstrates how to model porous media in CFX.

• It models a catalytic converter. Nitrogen flows in through the inlet with a uniform velocity of 10 m/s, passes through a ceramic monolith substrate with square shaped channels, and then exits through the outlet.

• The substrate is impermeable in the X and Y direction, which is modeled by specifying loss coefficients 2 orders of magnitude higher than in the Z direction.

Ceramic Monolith Substrate

Page 3: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-3April 28, 2009

Inventory #002599

Starting CFX-Pre

1. Start Workbench and save the Project as cat_converter.wbpj

2. Drag CFX into the Project Schematic from the Component Systems toolbox and name the system Porous

3. Start CFX-Pre by double clicking Setup

4. When CFX-Pre opens, right-click Mesh and select Import Mesh > ICEM CFD. Select the file catconv.cfx5

5. Keep the Mesh Units in m

Page 4: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-4April 28, 2009

Inventory #002599

Material Import

1. Right-click Materials and select Import Library Data

2. Select N2 Ideal Gas by expanding the Calorically Perfect Ideal Gases branch

3. Click OK

Page 5: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-5April 28, 2009

Inventory #002599

Fluid Domain Setup

1. Double-click Default Domain

2. For Fluid 1, set the Material to N2 Ideal Gas (note: use the icon)

3. Switch to the Fluid Models tab

4. Set Heat Transfer to Isothermal

5. Set Fluid Temperature to 450 [C]

6. Set Turbulence to k-epsilon

7. Click OK

Page 6: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-6April 28, 2009

Inventory #002599

Setting Up Boundary conditions1. Insert a boundary condition named

Inlet

2. Set Boundary Type to Inlet

3. Set Location to INLET

4. Switch to the Boundary Details tab

5. Set Mass and Momentum to a Normal Speed of 10 [m s^-1]

6. Click OK

7. Insert a Boundary Condition named Outlet

8. Set Boundary Type to Outlet

9. Set Location to OUTLET

10. Switch to the Boundary Details tab

11. Enter a Relative Pressure of 0 [Pa]

12. Click OK

Page 7: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-7April 28, 2009

Inventory #002599

Setting Up Porous Domain

1. Right-click on Flow Analysis 1 and insert a Domain named Substrate

2. Set the Location to SUBSTRATE

3. Set the Domain Type to Porous Domain

4. Switch to the Porosity Settings tab

5. Set Volume Porosity to 0.5

6. Set the Loss Model option to Directional Loss

7. For the Streamwise Direction, enter components of 0,0,1

8. Set Streamwise Loss to Linear and Quadratic Resistance Coefficients

9. Turn on Quadratic Resistance Coefficient and enter a value of 440 [kg m^-4]

10. Set the Streamwise Coefficient Multiplier to 100 and click OK

Page 8: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-8April 28, 2009

Inventory #002599

Domain Interface

CFX automatically creates a Fluid-Porous interface between the Default Domain and Substrate.

You can double-click Default Fluid-Porous Interface to view the setup, or highlight the Default Fluid Porous Interface Side 1 and Default Fluid Porous Interface Side 2 boundaries in the individual domains to see that that regions are correct.

Page 9: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-9April 28, 2009

Inventory #002599

Output Control

1. Edit Output Control from the Outline tree

2. Switch to the Monitor tab and turn on Monitor Options

3. Click to create a new monitor object, and call it Mass Flow at Outlet

4. Set the Option to Expression

5. Set the Expression Value to massFlow()@Outlet

6. Insert a new object in the same way called Pressure Drop, using the Expression:

7. Click OK

massFlowAve(Total Pressure)@REGION:INLETSUBSTRATEINTERFACE_1 -massFlowAve(Total Pressure)@REGION:OUTLETSUBSTRATEINTERFACE_1

Right-click

Page 10: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-10April 28, 2009

Inventory #002599

Starting Solver

1. Close CFX-Pre and save the project

2. Double-click Solution to start the Solver Manager

3. When the Solver Manager opens click Start Run

4. At the end of the run, click the User Points tab and click the green line where it flattens out. It reports a pressure drop value of approx 285 Pa across the substrate

Page 11: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-11April 28, 2009

Inventory #002599

Post-processing

1. When the solver finishes, close the Solver Manager

2. Double-click on Results in the Project page to start CFD-Post

3. Once CFD-Post is open, select Location > Plane from the toolbar

4. Set Method to ZX Plane

5. Set Y to 0 [m]

6. Click Apply

7. Turn off Visibility for Plane 1 by disabling the check-box next to its entry in the Outline tree

8. Select Insert > Vector

9. Select Locations to Plane 1

10. Click Apply

Page 12: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-12April 28, 2009

Inventory #002599

Post-processing

1. Hide the Vector plot created in the last step

2. Select Insert > Contour

3. Set Locations to Plane 1

4. Set Variable to Pressure

5. Click Apply

Page 13: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-13April 28, 2009

Inventory #002599

Post-processing

1. Select Location > Line from the toolbar

2. Set Point 1 to 0,0,-0.07

3. Set Point 2 to 0,0,0.07

4. Click Apply

5. Select Insert > Chart

6. On the General tab enter Pressure in Porous Domain as the Title

7. On the Data Series tab, click to create Series 1

8. Set Location to Line 1

9. On the X Axis tab, set Variable to Z

10. On the Y Axis tab, set Variable to Pressure

11. Click Apply

Page 14: Workshop 4 Flow Through Porous Media

ANSYS, Inc. Proprietary© 2009 ANSYS, Inc. All rights reserved.

Workshop Supplement

WS4: Flow Through Porous Media

WS4-14April 28, 2009

Inventory #002599

Post-processing

1. Switch to the Expressions tab

2. Right-click and select New

3. Enter the Name as deltaP and enter the Definition as:massFlowAve(Total Pressure)@Inlet - massFlowAve(Total Pressure)@Outlet

4. Click Apply to evaluate the expression

The value should come out to be approximately 300 Pa. Since we know from the solver monitor value that approx. 285 Pa or Total Pressure is lost across the substrate, we can determine that 15 Pa is lost through the rest of the device.