This tutorial is divided into the following sections:
Note: This tutorial is fully supported at all licensing levels.
Many industrial applications such as filters, catalyst beds, and packing, involve modeling the flow through porous media. This tutorial illustrates how to set up and solve a problem involving gas flow through porous media.
The industrial problem solved here involves gas flow through a catalytic converter. Catalytic converters are commonly used to purify emissions from gasoline and diesel engines by converting environmentally hazardous exhaust emissions to acceptable substances. Examples of such emissions include carbon monoxide (CO), nitrogen oxides (NOx), and unburned hydrocarbon fuels. These exhaust gas emissions are forced through a substrate, which is a ceramic structure coated with a metal catalyst such as platinum or palladium.
The nature of the exhaust gas flow is a very important factor in determining the performance of the catalytic converter. Of particular importance is the pressure gradient and velocity distribution through the substrate. Hence, CFD analysis is useful for designing efficient catalytic converters. By modeling the exhaust gas flow, the pressure drop and the uniformity of flow through the substrate can be determined. In this tutorial, Ansys Fluent is used to model the flow of nitrogen gas through a catalytic converter geometry, so that the flow field structure may be analyzed.
This tutorial demonstrates how to do the following in Ansys Fluent:
Use the Watertight Geometry guided workflow to:
Import a CAD geometry
Generate a surface mesh
Cap inlets and outlets
Extract a fluid region
Generate a volume mesh
Set up a porous zone for the substrates with appropriate resistances.
Calculate a solution for gas flow through the catalytic converter using the pressure-based solver.
Plot pressure and velocity distribution on specified planes of the geometry.
For more information about using the guided workflows, see Getting Started with the Fluent Guided Workflows in the Fluent User's Guide.
This tutorial is written with the assumption that you have completed the introductory tutorials found in this manual and that you are familiar with the Ansys Fluent outline view and ribbon structure. Some steps in the setup and solution procedure will not be shown explicitly.
The catalytic converter modeled here is shown in Figure 3.1: Catalytic Converter Geometry for Flow Modeling. The nitrogen flows through the inlet with a uniform velocity of 125 m/s and 800K, passes through a pair of ceramic monolith substrates with square-shaped channels, and then exits through the outlet.
While the flow in the inlet and outlet sections is turbulent, the flow through the substrates is laminar and is characterized by inertial and viscous loss coefficients along the inlet axis. The substrates are impermeable in other directions. This characteristic is modeled using loss coefficients that are three orders of magnitude higher than in the main flow direction.
The following sections describe the setup and solution steps for this tutorial:
To prepare for running this tutorial:
Download the
catalytic_converter.zip
file here .Unzip
catalytic_converter.zip
to your working directory.The SpaceClaim CAD file
catalytic_converter.scdoc
can be found in the folder. In addition, thecatalytic_converter.pmdb
file is available for use on the Linux platform.Use the Fluent Launcher to start Ansys Fluent.
Select Meshing in the top-left selection list to start Fluent in Meshing Mode.
Enable Double Precision under Solver Options.
Set Meshing Processes and Solver Processes to
4
under Parallel (Local Machine).
Start the meshing workflow.
In the Workflow tab, select the Watertight Geometry workflow.
Review the tasks of the workflow.
Each task is designated with an icon indicating its state (for example, as complete, incomplete, etc. For more information, see Understanding Task States in the Fluent User's Guide). All tasks are initially incomplete and you proceed through the workflow completing all tasks. Additional tasks are also available for the workflow. For more information, see Customizing Workflows in the Fluent User's Guide.
Import the CAD geometry (
catalytic_converter.scdoc
).Select the Import Geometry task.
For File Format, keep the default setting of CAD.
For Units, keep the default setting as mm.
For File Name, enter the path and file name for the CAD geometry that you want to import (
catalytic_converter.scdoc
).Note: The workflow only supports
*.scdoc
(SpaceClaim) and the intermediary*.pmdb
file formats.Select
.This will update the task, display the geometry in the graphics window (Figure 3.2: The Imported CAD Geometry for the Catalytic Converter), and allow you to proceed onto the next task in the workflow.
Note: Alternatively, you can use the ... button next to File Name to locate the CAD geometry file, after which, the Import Geometry task automatically updates, displaying the geometry in the graphics window, and the workflow automatically progresses to the next task.
Throughout the workflow, you are able to return to a task and change its settings using either the Edit button, or the Revert and Edit button. For more information, see Editing Tasks in the Fluent User's Guide.
Add local sizing.
In the Add Local Sizing task, you are prompted as to whether or not you would like to add local sizing controls to the faceted geometry.
In this tutorial, we will add local sizing in and around the sensor, since that is an area where we require a more refined mesh. Later, we will apply settings for a coarser surface mesh elsewhere.
At the prompt for adding local sizing, select yes.
Enter
sensor
for the Name of the size control.Specify Curvature for the Size Control Type.
Specify
0.1
for the Local Min Size.Specify
1.2
for the Max SizeSelect the faces in and around the sensor in the list, specifically,
sensing_element-65-solid
,sensor_innertube-67-solid
, andsensor_protectiontube-66-solid1
.For occasions when the list of items is long, you can use the Filter Text option and use an expression such as
in*
to show only items starting with "in". Alternatively, you can use the Use Wildcard option to list and pres-select matching items. See Filtering Lists and Using Wildcards for more information.Select the Use Wildcard option and enter
sens*
in the text field to filter out the other labels and automatically select the desired labels.Click Add Local Sizing to complete this task and proceed to the next task in the workflow.
Generate the surface mesh.
In the Generate the Surface Mesh task, you can set various properties of the surface mesh for the faceted geometry.
Specify
1.5
for the Minimum Size.Note: The red boxes displayed on the geometry in the graphics window are a graphical representation of size settings. These boxes change size as the values change, and they can be hidden by using the Clear Preview button.
Specify No for the Separate Out Boundary Zones by Angle? option.
Select Advanced Options to expose additional settings.
Specify
0.895
for the Quality Improve Skewness Limit.Specify
0.95
for the Quality Improve Collapse Skewness Limit.Click Generate the Surface Mesh to complete this task and proceed to the next task in the workflow.
Describe the geometry.
When you select the Describe Geometry task, you are prompted with questions relating to the nature of the imported geometry.
Select The geometry consists of both fluid and solid regions and/or voids option under Geometry Type, since this model contains both fluid and solids, and potential voids.
Select Yes for the Will you cap openings and extract fluid regions? prompt, since we plan on adding capping surfaces and extracting a fluid.
Select Yes for the Change all fluid-fluid boundary types from 'wall' to 'internal'? prompt, since we are modeling flow through the entire geometry, and any interior wall boundaries between potential fluid regions should be interior boundaries to allow the flow to pass.
Remember that there are two regions within the catalytic converter that will ultimately represent porous regions.- surrounded by other non-porous fluid regions For now, we will consider all of these internal regions as fluid regions and change them accordingly in the Ansys Fluent solver.
Keep the rest of the default settings for this task.
Click Describe Geometry to complete this task and proceed to the next task in the workflow.
Cover any openings in your geometry.
Select the Enclose Fluid Regions (Capping) task, where you can cover, or cap, any openings in your geometry in order to later extract the enclosed fluid region.
Create a cap for the inlet.
Enter
inlet
for the Name of the capping surface to be assigned to the manifold's inlet.For the Zone Type, keep the default setting of velocity-inlet.
In the list of labels, select in1 for the opening that you want to cover (or right-click the surface of the inlet in the graphics window).
The graphics window indicates the selected items.
Click Create Cap(s) to complete this task and proceed to the next task in the workflow.
Once completed, this particular task will return you to a fresh task in order to assign additional capping surfaces, if necessary. We will proceed to assign a cap for the remaining opening and assign it to be an outlet.
Create a cap for the outlet.
Enter
outlet
for the Name of the capping surface to be assigned to the manifold's outlet.For the Zone Type, change the setting to pressure-outlet.
In the list of labels, select out1 for the outlet that you want to cover (or right-click the surface of the inlet in the graphics window).
Click Create Cap(s) to complete this task.
Now, all of the openings in the geometry are covered.
Confirm and update the boundaries.
Select the Update Boundaries task, where you can inspect the mesh boundaries and confirm and change any designated boundaries accordingly. Ansys Fluent attempts to determine the correct arrangement of boundaries automatically.
All the proposed boundaries are correct, so click Update Boundaries. and proceed to the next task.
Create the fluid region.
Select the Create Regions task, where you can determine the number of fluid regions that need to be extracted. Ansys Fluent attempts to determine the number of fluid regions to extract automatically.
For the Estimated Number of Fluid Regions, enter a value of 3.
We anticipate that there will be fluid regions located at the inlet, the outlet, and the fluid region between the substrates.
Click Create Regions.
The extracted fluid regions are displayed in the graphics window.
Update your regions.
Select the Update Regions task, where you can review and change the tabulated names and types of the various regions that have been generated from your imported geometry, and change them as needed.
We can see that the three fluid regions are defined, however, the two regions of the individual substrates are identified as solid regions. We can change their designations here in this task, and provide them with useful names.
Change the two substrate solid regions to be fluid regions, and rename them, in the table.
Under Region Name, locate the honeycomb-solid1 region, double-click and rename the region to
fluid:substrate:1
.For that specific region, under Region Type, select fluid from the drop-down menu.
Repeat the procedure for the honeycomb_af0-solid1 region, renaming it to
fluid:substrate:2
.Click Update Regions to update your settings.
Add boundary layers.
Select the Add Boundary Layers task, where you can set properties of the boundary layer mesh.
For the Add Boundary Layers task, ensure yes is selected at the prompt as to whether or not you want to define boundary layer settings. In this task, you can define specific details for capturing the boundary layer in and around your geometry.
Keep the default settings, and click Add Boundary Layers.
Generate the volume mesh.
Select the Generate the Volume Mesh task, where you can set properties of the volume mesh itself.
Keep the default settings, and click Generate the Volume Mesh.
Ansys Fluent will apply your settings and proceed to generate a volume mesh for the manifold geometry. Once complete, the mesh is displayed in the graphics window and a clipping plane is automatically inserted with a layer of cells drawn so that you can quickly see the details of the volume mesh.
Check the mesh.
Mesh → Check → Perform Mesh Check
Save the mesh file (
catalytic_converter.msh.h5
).File → Write → Mesh...
Switch to Solution mode.
Now that a high-quality mesh has been generated using Ansys Fluent in meshing mode, you can now switch to solver mode to complete the set up of the simulation.
We have just checked the mesh, so select Yes when prompted to switch to solution mode.
In the Mesh group box of the Domain ribbon tab, set the units for length..
Domain → Mesh
→ Units...

This opens the Set Units dialog box.

Select length under Quantities.
Select mm under Units.
Close the Set Units dialog box.
Examine the mesh.
Rotate the view and zoom in to get the display shown in Figure 3.3: Mesh for the Catalytic Converter Geometry in Fluent (Solver Mode).
Allow temperatures to be considered in the calculations by enabling the energy model.
You can enable the calculation of temperatures directly from the tree by right-clicking the Energy node and choosing On from the context menu.
Setup → Models → Energy
On
Retain the default k-ω SST turbulence model.
You will use the default settings for the k-ω SST turbulence model, so you can enable it directly from the tree by right-clicking the Viscous node and choosing SST k-omega from the context menu.
Setup → Models → Viscous
Model → SST k-omega
Add nitrogen to the list of fluid materials by copying it from the Fluent Database of materials.
Physics → Materials
→ Create/Edit...

Click the Fluent Database Materials dialog box.
button to open theSelect nitrogen (n2) in the Fluent Fluid Materials selection list.
Click
to copy the information for nitrogen to your list of fluid materials.Close the Fluent Database Materials dialog box.
Click Create/Edit Materials dialog box.
and close the
Set the cell zone conditions for the first fluid zone (fluid:0).
Setup → Cell Zone Conditions → Fluid → fluid:0
Edit...
Select nitrogen from the Material Name drop-down list.
Click Fluid dialog box.
and close the
Perform the same operation for the other fluid zones (fluid:1 and fluid:3).
Set the cell zone conditions for the first substrate (fluid:substrate:1).
Select nitrogen from the Material Name drop-down list.
Enable Porous Zone to activate the porous zone model.
Enable Laminar Zone to solve the flow in the porous zone without turbulence.
Click the Porous Zone tab.
Make sure that the principal direction vectors are set as shown in Table 3.1: Values for the Principle Direction Vectors.
Ansys Fluent automatically calculates the third (Z direction) vector based on your inputs for the first two vectors. The direction vectors determine which axis the viscous and inertial resistance coefficients act upon.
Table 3.1: Values for the Principle Direction Vectors
Axis Direction-1 Vector Direction-2 Vector X 1 0 Y 0 1 Z 0 0 For the viscous and inertial resistance directions, enter the values in Table 3.2: Values for the Viscous and Inertial Resistance.
Direction-1 and Direction-2 are set to arbitrary large numbers. These values are several orders of magnitude greater than that of the Direction-3 flow and will make any radial flow insignificant.
Scroll down to access the fields that are not initially visible.
Table 3.2: Values for the Viscous and Inertial Resistance
Direction Viscous Resistance (1/m2) Inertial Resistance (1/m) Direction-1 1e+06 1000 Direction-2 1e+06 1000 Direction-3 1e+03 1000
Click Fluid dialog box.
and close the
Repeat these steps for the other substrate (fluid:substrate:2).
Set the velocity and turbulence boundary conditions at the inlet (inlet).
Setup → Boundary Conditions → Inlet → inlet
Edit...
Enter
125
m/s for Velocity Magnitude.In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification Method drop-down list.
Enter
5
% for the Turbulent Intensity.Enter
500
mm for the Hydraulic Diameter.Click the Thermal tab and enter
800
K for the Temperature of the incoming fluid.Click Velocity Inlet dialog box.
and close the
Set the boundary conditions at the outlet (outlet).
Setup → Boundary Conditions → Outlet → outlet
Edit...
Retain the default setting of 0 for Gauge Pressure.
In the Turbulence group box, select Intensity and Hydraulic Diameter from the Specification Method drop-down list.
Retain the default value of
5
% for the Backflow Turbulent Intensity.Enter
500
mm for the Backflow Hydraulic Diameter.Click the Thermal tab and enter
800
K for the Backflow Total Temperature of the outgoing fluid.Click Pressure Outlet dialog box.
and close the
Retain the remaining default (wall and interior) boundary conditions.
Specify the discretization schemes.
Solution → Solution → Methods...
Retain the default settings.
Enable the plotting of the mass flow rate at the outlet.
Solution → Reports → Definitions → New → Surface Report → Mass Flow Rate
Enter
surf-mon-1
for the Name of the surface report definition.In the Create group box, enable Report File, Report Plot and Print to Console.
Select Outlet in the Surfaces selection list.
Click Surface Report Definition dialog box.
to save the surface report definition settings and close the
Initialize the solution.
Solution → Initialization
Select Standard under Method.
Warning: Standard is the recommended initialization method for porous media simulations. The default Hybrid method does not account for the porous media properties, and depending on boundary conditions, may produce an unrealistic initial velocity field. For porous media simulations, the Hybrid method should only be used when the Maintain Constant Velocity Magnitude option is enabled in the Hybrid Initialization dialog box.
Click Solution Initialization task page, which provides access to further settings.
to open theSelect inlet from the Compute from drop-down list in the Solution Initialization task page.
Retain the default settings for standard initialization method.
Click
.
Save the case file (
catalytic_converter.cas.h5
).File → Write → Case...
Start the calculation.
Solution → Run Calculation → Run Calculation...
Enter
150
for No. of Iterations.Click
to begin the iterations.The mass flow rate graph flattens out, as seen in Figure 3.4: Mass Flow Rate History. Since the mass flow rate has stabilized after 150 iterations, the solution can be said to have reached convergence.
Save the case and data files (
catalytic_converter.cas.h5
andcatalytic_converter.dat.h5
).File → Write → Case & Data...
Display the wall surfaces.
Results → Graphics → Mesh... → New...
Deselect all items in the Surfaces selection list, and make sure that only Wall category of surfaces is selected.
Click Mesh Display dialog box.
and close the
Set the lighting for the display.
View → Display → Options...
Make sure Lights On is enabled in the Lighting Attributes group box.
Retain the selection of Automatic from the Lighting drop-down list.
Click Display Options dialog box.
and close the
Set the transparency for the wall surfaces.
View → Graphics → Compose...
Select all surfaces in the Names selection list.
Click the Geometry Attributes group box to open the Display Properties dialog box.
button in theDisable Edges, Perimeter Edges, and Nodes in the Visibility group box.
Make sure that the Red, Green, and Blue sliders are set to the maximum position (that is, 255).
Set the Transparency slider to 70.
Click Display Properties dialog box.
and close the
Click Scene Description dialog box.
and close the
Create a surface passing through the geometry for postprocessing purposes.
Results → Surface → Create → Plane...
Enter
y=-425
as the New Surface Name.Select ZX Plane from the Method drop-down list.
Enter
-425
for Y.Click
.
Create cross-sectional planes at locations throughout the domain: in the inlet prior to the first substrate, within the first substrate, in the fluid zone between the substrates, within the second substrate, and just after the second substrate in the outlet.
Results → Surface → Create → Plane...
Enter
z=185
as the New Surface Name.Select XY Plane from the Method drop-down list.
Enter
185
for Z.Click
.Repeat these steps for the remaining surfaces at z=230, z=280, z=330, and z=375, and close the Plane Surface dialog box.
Display velocity vectors on the y=-425 surface (Figure 3.5: Velocity Vectors Through the Interior).
Results → Graphics → Vectors → New...
Enter
vector-vel
for Vector Name.Disable Global Range under Options.
Enable Draw Mesh in the Options group box to open the Mesh Display dialog box.
Make sure that Wall is selected in the Surfaces selection list.
Set the Transparency slider to 70.
Click Mesh Display dialog box.
and close the
Assign a value of
0.006
for Scale.Select y=-425 in the Surfaces selection list.
Click Vectors dialog box.
and close theRepeat the procedure in step 3 to set the transparency for the wall surfaces.
Rotate the view and adjust the magnification to get the display shown in Figure 3.5: Velocity Vectors Through the Interior.
The flow pattern shows that the flow enters the catalytic converter as a jet, with recirculation on either side of the jet. As it passes through the porous substrates, it decelerates and straightens out, and exhibits a more uniform velocity distribution. This allows the metal catalyst present in the substrates to be more effective.
Display filled contours of static pressure on the interior plane (Figure 3.6: Contours of Static Pressure Through the Interior).
Results → Graphics → Contours → New...
Enter
contour-pressure
for Contour Name.Make sure that Filled, Node Values, and Boundary Values are enabled in the Options group box.
Enable Draw Mesh to open the Mesh Display dialog box.
Make sure that Wall is selected in the Surfaces selection list.
Click Mesh Display dialog box.
and close the
Make sure that Pressure... and Static Pressure are selected from the Contours of drop-down lists.
Select y=-425 in the Surfaces selection list.
Click Contours dialog box.
and close the
The pressure changes rapidly in the middle section, where the fluid velocity changes as it passes through the porous substrates. The pressure drop can be high, due to the inertial and viscous resistance of the porous media.
Display filled contours of the velocity magnitude on the z=185, z=230, z=280, z=330, and z=375 surfaces (Figure 3.7: Contours of Velocity Magnitude on the z=185, z=230, z=280, z=330, and z=375 Surfaces).
Results → Graphics → Contours → New...
Enter
contour-vel-mag
for Contour Name.Make sure that Filled, Node Values, and Boundary Values are enabled in the Options group box.
Disable Global Range in the Options group box.
Enable Draw Mesh to open the Mesh Display dialog box.
Make sure that Wall is selected in the Surfaces selection list.
Click Mesh Display dialog box.
and close the
Select Velocity... and Velocity Magnitude from the Contours of drop-down lists.
Select z=185, z=230, z=280, z=330, and z=375 in the Surfaces selection list, and deselect all others.
Click Contours dialog box.
and close the
The velocity profile becomes more uniform as the fluid passes through the porous media. The velocity is higher at the center (the area in red) just before the nitrogen enters the substrates and then decreases as it passes through and exits the second substrate. The area in green, which corresponds to a moderate velocity, increases in extent.
Save the case and data file.
File → Write → Case & Data...