#### Read Microsoft Word - CFX-tutorial-ductflow-laminar-v3p30.docx text version

`ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30ANSYS CFX Tutorial Laminar Flow in a Rectangular DuctScott J. Ormiston Jeffrey R. Berg V3.30 14 October 2010Department of Mechanical and Manufacturing Engineering University of ManitobaPage 1 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30IntroductionThis tutorial has been adapted from a tutorial created by Jeff Berg (M.Sc. student) in 2004. That tutorial was based on running the CFX-TASCflow (V2.11) rct.lam tutorial in CFX-5 (v5.7). The original comparisons between TASCflow and CFX-5 have been removed in this version.Geometry NomenclatureThe duct has a length, Lx , a depthL y , and a height, Lz .The duct length is aligned with the x axis, the depthwith the y axis, and the height with the z axis. The flow is assumed to be symmetric about a plane that bisects the duct in the y-direction and therefore only half the duct is modelled. One corner of the duct is assumed to lie at the origin. Figure 1 below shows the duct geometry. When the geometry was defined in the creation of the computational mesh, all faces of the domain were assigned names. The names of the inlet and outlet planes (at x = 0 and x = Lx ) are RCT W and RCT E, respectively. The names of the planes at y = 0 and y = L y are RCT S and RCT N, respectively. The names of the planes at z = 0 and z = Lz are RCT B and RCT T, respectively.Figure 1: Rectangular Duct GeometryProblem DefinitionThe problem is a laminar, incompressible, constant property flow of water in a rectangular duct. The code will be run with the heat transfer model turned off (even though an alternative approach would be to run the code with the heat transfer model as &quot;isothermal&quot; and specify the desired temperature for an isothermal flow). The flow is modelled with a rectilinear uniform grid for half the domain using symmetry in the y direction. The problem parameters are: · Mass flow = 3.962 x 10-2 [kg / s] for the full duct. The mass flow rate at the inlet of the half duct is therefore 1.981 x 10-2 [kg / s]. · Density = 997.0 [kg / m3]. · Viscosity = 8.899 x 10-4 [kg / m s]. · Duct length = 2.00 m ( Lx ). · Duct depth = 0.40 m ( L y ). Actual grid height is 0.20 m due to symmetry. · Duct height = 0.30 m ( Lz ). · Hydraulic diameter of the duct Dh , is 0.34286 m. · Reynolds number based on the hydraulic diameter is 127.2.Department of Mechanical and Manufacturing Engineering University of Manitoba Page 2 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30FeaturesThis tutorial demonstrates how to: · Import a grid (from CFX-TASCgrid) · Specify Boundary Conditions · Solve the Problem · Do some post-processing of the resultsSetupFirst, create a new directory in your file space called cfxtutorial. Make sure that the path to this directory does not contain any space characters. Spaces in a directory name or path will cause an error message in CFX (in addition, a hyphen cannot be used in the simulation name). Make this new directory your current directory (i.e., &quot;cd&quot; to that directory). The grid for this tutorial has been pre-generated. It was created in software called CFX-TASCgrid, which was part of the CFX-TASCflow set of programs. For the purposes of this tutorial, the completed grid will be imported to CFX. The completed grid is in a file called rct.grd that can be copied to your current directory using: cp -p ~engsjo/pub/mech-4822/cfxtutorial/rct.grd ./ or it can be copied (it is inside a zip file called cfxtutorial_rct_grd.zip) from a link in the following part of the course web page:http://home.cc.umanitoba.ca/~engsjo/teaching/Tutorials/index.htm#cfxtutorialThis grid has uniform mesh spacing and 30, 10, and 15 nodes in each of the x, y, and z directions, respectively.Assumptions about Running CFXThese instructions assume that: 1. The user has modified (customised) his/her Unix account as indicated by the course instructor. 2. The user is connected to a Linux-based server or workstation using vncviewer. Examples of suitable Linux machines (with suffix .cc.umanitoba.ca) are gaia, moon, grid06, grid07, grid08, grid09, and grid10. 3. The version of the software is ANSYS CFX v12.1. The CFX launcher can be started by typing: Cfx5 &amp; and then using the buttons for CFX-Pre, CFX-Solver, and CFD-Post. In the past, two synonyms were used for running the pre-processor (cfx5pre) and the post-processor (cfx5post) in a vncviewer environment: · vnc-cfxpre (which is equivalent to cfx5pre -gr mesa&amp; ) · vnc-cfxpost (which is equivalent to cfx5post -gr mesa&amp; ) to obtain correct graphical images when using vncviewer. These can still be used as an alternative to the launcher.Department of Mechanical and Manufacturing Engineering University of Manitoba Page 3 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Defining the Simulation in CFX-PreTo begin using CFX-Pre, start the program by typing vnc-cfxpre1. Creating a New SimulationSelect File &gt; New Simulation Simulation Type default is General (click on General in the window and then click OK)Also click on OK in the following window:To name the simulation: Select File &gt; Save SimulationDepartment of Mechanical and Manufacturing Engineering University of ManitobaPage 4 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30In the window, set File name to rct_lam and click Save2. Importing the MeshSelect File &gt; Import Mesh Mesh Format: Select CFX-TASCflowFile: Enter (or browse for) rct.grd Click Open3. Domain SpecificationSelect Insert &gt; Domain Name: enter duct Click OKDepartment of Mechanical and Manufacturing Engineering University of ManitobaPage 5 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under General Options tab: Basic Settings: Fluid list: select Water Leave all other values as the defaults.Under Fluid Models tab: Heat Transfer: Option: select None Turbulence Model: Option: select None (Laminar) Leave all other values as the defaults.Department of Mechanical and Manufacturing Engineering University of ManitobaPage 6 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under Initialisation tab: Click Domain Initialisation box Click Initial Conditions box Now, Click Ok4. Defining the Inlet Boundary ConditionSelect Insert &gt; Boundary Condition Name: enter inlet Domain: duct Click OKDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 7 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under Basic Settings tab: Boundary Type: select Inlet Location: select RCT_WUnder Boundary Details tab: Flow Regime: Option: Subsonic Mass and Momentum: Option: select Mass Flow Rate Click on space beside Mass Flow Rate and enter: 0.01981 Flow Direction:Department of Mechanical and Manufacturing Engineering University of Manitoba Page 8 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Option: Normal to Boundary Condition Click Ok5. Defining the Outlet Boundary ConditionSelect Insert &gt; Boundary Condition Name: enter outlet Domain: duct Click OK Under Basic Settings tab: Boundary Type: select Outlet Location: select RCT EDepartment of Mechanical and Manufacturing Engineering University of ManitobaPage 9 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under Boundary Details tab: Flow Regime: Option: Subsonic Mass and Momentum: Option: Average Static Pressure Click on space beside Relative Pressure and enter: 0.0 Pressure Averaging: Option: Average Over Whole Outlet Click Ok6. Defining the Symmetry Plane Boundary ConditionDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 10 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Select Insert &gt; Boundary Condition Name: enter symmetry Domain: duct Click OK Under Basic Settings tab: Boundary Type: select Symmetry Location: select RCT S Click Ok7. Defining the Walls Boundary ConditionSelect Insert &gt; Boundary Condition Name: enter walls Domain: duct Click OK Under Basic Settings tab: Boundary Type: select Wall Location: click on the icon. In the Selection Dialog window, click on RCT B, then, while holding down the Ctrl key, click on RCT N and RCT T. Click OK.Department of Mechanical and Manufacturing Engineering University of ManitobaPage 11 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under Boundary Details tab: Wall Influence on Flow: No Slip Click OkThe overall image of the domain should now appear as (with a bit of zoom using the middle mouse button):Department of Mechanical and Manufacturing Engineering University of ManitobaPage 12 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Note that there is no duct domain &quot;default&quot;.8. Setting the Solver ControlsSelect Insert &gt; Solver &gt; Solver Control Under Basic Settings tab: Advection Scheme: Option: High Resolution Convergence Control: Timescale Control: select Physical Timescale Physical Timescale: click in the box and enter 6000 Leave all other values as the defaults. Click OkDepartment of Mechanical and Manufacturing Engineering University of ManitobaPage 13 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.309. Writing the Solver Definition FileSelect File &gt; Write Solver File File name: rct_lam.def List select box on the right: select Write Solver File Click Save10. Saving the SimulationSelect File &gt; Save Simulation11. Ending the CFX-Pre SessionSelect File &gt; QuitObtaining a Solution Using the CFX-SolverTo start the solver, at the command line, type: cfx5solve &amp; When the solver window comes up, if it is narrow, widen it by dragging the right edge of the window.1. Defining the RunSelect File &gt; Define Run Under Run Definition tab: Definition File: browse for and select rct_lam.def Type of Run: Full Run Mode: Serial Click Start RunDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 14 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30The calculation should proceed with text information in one window and the residuals of the equations in a second window. In this case there should be a print-out of 12 outer loop iterations and then some summary information, followed by a ANSYS CFX-5 Solver Finished Normally window. In this window there is some run information and the question: &quot;Post-process results now?&quot;. Click No.This solver run created the textual record of the run: rct_lam_001.out and the results file that can be postprocessed: rct_lam_001.res.2. Ending the Solver SessionDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 15 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Select File &gt; QuitViewing the Results using CFD-PostAs simple examples of post-processing, this tutorial illustrates how to create a graph of a velocity profile at the duct exit and a velocity vector plot on the plane of symmetry. There are many other features available in CFDPost. For more details on these features, consult the course instructor and teaching assistants, as well as the online CFD-Post help. (Note: Images below indicate CFX-Post instead of CFD-Post; these images will be updated in the next release of this tutorial). To begin using CFD-Post type: vnc-cfxpost1. Loading the Results FileSelect File &gt; Load Results In the file browser window, click on rct_lam_001.res and then click Open.2. Creating a Line at the Exit PlaneSelect Insert &gt; Location &gt; Line Name: enter Exit Line Click OKDepartment of Mechanical and Manufacturing Engineering University of ManitobaPage 16 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under Geometry tab: Domains: All Domains Definition: Method: Two Points Point 1: enter 2, 0, 0 Point 2: enter 2, 0, 0.3 Line Type: click on circle for Cut Click on ApplyA yellow line will appear at the end of the duct image in the 3D viewer. After zooming, it should appear like:Department of Mechanical and Manufacturing Engineering University of ManitobaPage 17 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Note that &quot;Sample&quot; could also have been chosen for the line. If that is chosen, specify an appropriately large number of sample points along the line.3. Creating a Graph (Chart) of a Velocity Profile at the ExitSelect Insert &gt; Chart Name: U Velocity versus z Click Ok Under Chart Line 1 tab: Type: Regular Line Name: click in box and enter U Exit Profile Location: select Exit Line X Axis: Variable: select Z Click on circle for Hybrid Y Axis: Variable: select Velocity u Click on circle for Hybrid Click on ApplyDepartment of Mechanical and Manufacturing Engineering University of ManitobaPage 18 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30You should see the chart shown below in the right window (Chart Viewer).The data used in this chart can also be exported to a spreadsheet program by using the export feature. To do this: Click Export File name: enter u_exit_profile.csv File Type: Comma Separated Values (*.csv) Click on SaveDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 19 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30The file created, when loaded into Excel (and formatted with more decimals for column A and scientific notation for column B), looks like:These data can also be exported in a text file format for plotting with gnuplot or other plotting software.4. Creating a Velocity Vector Plot Click on the 3D Viewer tab below the window on the right.Select Insert &gt; Vector Name: enter Symm Plane Vectors Click OKDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 20 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Under Geometry tab: Domains: All Domains Definition: Locations: select symmetry Variable: select Velocity Click on circle for Hybrid Leave all other values as the defaults. Click on ApplyThe vector plot below should appear in the 3D Viewer window. The domain was zoomed in for the image.3. Ending the CFD-Post SessionSelect File &gt; QuitDepartment of Mechanical and Manufacturing Engineering University of Manitoba Page 21 of 22ANSYS CFX TutorialLaminar Flow in a Rectangular Duct14 October 2010V3.30Click on Save &amp; QuitFile name: enter rct_lam.cst File type: CFD-Post State (*.cst) Click on SaveThe state file that was saved (rct_lam.cst) has saved the new objects created in the previous Post session. When examining the same results file another time in Post, those setting can be re-loaded using File &gt; Load State. Another powerful feature is that the same state file can be loaded when viewing a different set of results on the same geometry and all plots (charts, vectors, etc.) are re-computed automatically for the new results.Department of Mechanical and Manufacturing Engineering University of ManitobaPage 22 of 22`

22 pages

#### Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

674699

### You might also be interested in

BETA
Microsoft Word - CFX-tutorial-ductflow-laminar-v3p30.docx
ANSYS CFX Tutorials