Professional Documents
Culture Documents
Master Index
Help On Help
CFX-5 Tutorials
Tutorial 14
CFX-5 Tutorials
Page 309
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilIntroduction
14.A:
14.A.1:
Introduction
Features explored in this tutorial
Introduction: This tutorial addresses the following features of CFX-5.
Component CFX-Pre Feature User Mode Simulation Type Fluid Type Domain Type Turbulence Model Heat Transfer Conjugate Heat Transfer Subdomains Boundary Conditions Details General Mode Steady State General Fluid Multiple Domain k-Epsilon Thermal Energy Energy Source Inlet (Subsonic) Opening Wall: No-Slip
Wall: Adiabatic CEL (CFX Expression Language) Timestep Physical Timescale n/a n/a Plots Cylinder Default Locators Isosurface Changing the Colour Range Data Export Expression Editor Lighting Adjustment Variable Editor
Other
You learn about: creating and using a solid domain as a heater coil in CFX-Pre modelling Conjugate Heat Transfer in CFX-Pre specifying a subdomain to specify a heat source creating a cylinder locator using CEL in CFX-Post examining the temperature distribution which is affected by heat transfer from the coil to the fluid
CFX-5 Tutorials
Page 310
Master Contents
14.A.2:
14.A.3:
Solid Heater
Inflow
This tutorial also includes an optional step that demonstrates the use of the CFX to ANSYS Data Transfer Tool to export thermal and mechanical stress data for analysis in ANSYS. A results file is provided in case you wish to skip the model creation and solution steps within CFX-5. If you wish to do this, copy the results file from the examples directory to your working directory and continue from Exporting the Results to ANSYS (p. 322).
CFX-5 Tutorials
Page 311
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilDefining the Simulation in CFX-Pre
14.B:
14.B.1:
14.B.2:
14.B.3:
Page 312
CFX-5 Tutorials
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilDefining the Simulation in CFX-Pre To create the fluid domain
1. Create a domain named FluidZone. 2. On the General Options panel: a. Click to expand the list of available regions and set Location to B1.P3. b. Set Domain Type to Fluid Domain. c. Set Fluids List to Water. d. Set Coord Frame to Coord 0. e. Set Reference Pressure to 0 [atm]. f. Under Buoyancy, set Option to Non Buoyant. g. Under Domain Motion, set Option to Stationary. 3. Click the Fluid Models tab, then: a. Under Heat Transfer Model, set Option to Thermal Energy. b. Under Turbulence Model, set Option to k-Epsilon. c. Under Turbulent Wall Functions, set Option to Scalable. d. Under Reaction or Combustion Model and Thermal Radiation Model, leave Option set to None. 4. Click the Initialisation tab, then: a. Turn on Domain Initialisation. b. Turn on Initial Conditions. The Automatic option is suitable for all variables. See "Automatic" on page 87 in the document "CFX-5 Solver Modelling" for details of the automatic initial guess. c. Turn on Turbulence Eddy Dissipation and set Option to Automatic. 5. Click OK to create the domain.
14.B.4:
To create the solid domain
Solid Domain
1. Create a domain named SolidZone. 2. On the General Options panel: a. Click to expand the list of available regions and set Location to B2.P3. b. Set Domain Type to Solid Domain. c. Set Solids List to Copper.
CFX-5 Tutorials
Page 313
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilDefining the Simulation in CFX-Pre
3. Click the Solid Models tab, then: a. Under Heat Transfer, set Option to Thermal Energy. b. Under Thermal Radiation Model, set Option to None. Since you know that the copper heating element will be much hotter than the fluid, you can initialise the temperature to a reasonable value. The initialisation option that is set when creating a domain applies only to that domain. 4. Click the Initialisation tab, then: a. Under Temperature, set Option to Automatic with Value and Temperature to 550 [K]. 5. Click OK to create the domain.
14.B.5:
14.B.6:
To create the inlet boundary condition
Page 314
CFX-5 Tutorials
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilDefining the Simulation in CFX-Pre
3. Click the Boundary Details tab, then: a. Under Mass and Momentum, set Option to Normal Speed and Normal Speed to 0.4 [m s^-1]. b. Under Turbulence, set Option to Medium (Intensity = 5%). c. Under Heat Transfer, set Option to Static Temperature and Static Temperature to 300 [K]. 4. Click OK to create the boundary condition.
To create the opening boundary condition
1. Create a boundary condition named outflow in domain FluidZone. 2. On the Basic Settings panel, set: a. Boundary Type to Opening b. Location to outflow The opening boundary condition type is used in this case because we expect, at some stage during the solution, that the coiled heating element will cause some recirculation at the exit. At an opening boundary you need to set the temperature of fluid that enters through the boundary. In this case it is useful to base this temperature on the fluid temperature at the outlet, since we expect the fluid to be flowing mostly out through this opening. 3. Select Create > Library Objects > Expression Editor. 4. Create a new expression named OutletTemperature. 5. Set Definition to: areaAve(T)@outflow You can right-click in the Definition window to access the function (Functions > Integrated Quantities > areaAve) and variable (Variables > T). The locator outflow will not be available until you have created the boundary condition, so you will have to type this part of the expression. 6. Click Apply. 7. Click the Physics tab (click the button to scroll the tabs, if necessary). The boundary condition editor for the opening will reappear in its last state.
CFX-5 Tutorials
Page 315
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilDefining the Simulation in CFX-Pre
8. Click the Boundary Details tab, then: a. Under Mass and Momentum, set Option to Pressure and Direction (stable) and Relative Pressure to 0 [Pa]. b. Under Flow Direction, set Option to Normal to Boundary Condition. c. Under Turbulence, set Option to Medium (Intensity = 5%). d. Under Heat Transfer, set Option to Static Temperature and Static Temperature to OutletTemperature (for this expression, click the field, then the icon beside the field before typing). 9. Click OK to create the boundary condition. The default adiabatic wall boundary condition will automatically be applied to the remaining unspecified external boundaries of the fluid domain. The default Fluid-Solid Interface boundary condition (flux conserved) will be applied to the surfaces between the solid domain and the fluid domain.
14.B.7:
14.B.8:
Page 316
CFX-5 Tutorials
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilDefining the Simulation in CFX-Pre
Since this tutorial uses a solid domain, domain interfaces are created automatically between the fluid and solid regions. Report Summary of Interface Connections was turned on and therefore an information window is displayed that informs you of the connection type used for each domain interface. See "Connection Types" on page 127 in the document "CFX-5 Solver Modelling" for details. 5. Click OK in the information window. 6. Select File > Quit from the CFX-Pre main menu. 7. Click Yes when asked if you want to save the CFX file.
CFX-5 Tutorials
Page 317
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilObtaining a Solution
14.C:
Obtaining a Solution
When the CFX-Solver Manager has started, obtain a solution to the CFD problem by clicking Start Run. While the calculations proceed, you can see residual output for various equations in both the text area and the plot area. Use the tabs to switch between different plots (e.g. Heat Transfer, Turbulence Quantities, etc.) in the plot area. You can view residual plots for the fluid and solid domains separately by editing the Workspace Properties (start from the Workspace menu). See "Monitors: Plot Lines" on page 27 in the document "CFX- Solver Manager" for details. When the CFX-Solver has finished: 1. Click OK. 2. Click Post-Process Results .
3. When Start CFX-Post appears, turn on Shut down Solver Manager then click OK.
Page 318
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilViewing the Results
14.D:
CFX-5 Tutorials
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilViewing the Results
values for Temperature. As you do this examine the change in the YZ Plane at the interface between the solid heating coil and the surrounding fluid. This behaviour is explained in "Hybrid and Conservative Variable Values" on page 29 in the document "CFX-Post". On the Colour panel for the previously-defined YZ Plane, set Range to Local, then try colouring by different variables. On the Colour panel for the previously-defined YZ Plane, set Range to Global, then alter the Domains field on the Geometry panel. Turn off any graphics objects that hide the inside of the coil. Create an XY plane at Z = 2.24. Colour by Temperature using a Local range. You will see that the exit Temperature distribution is uneven due to the shape of the heating coil, with more heat transfer occurring on the high-Y side of the domain.
14.D.1:
2. In the Definition box, type the following expression: (x^2 + y^2)^0.5 3. Click Apply to create the expression.
Page 320
CFX-5 Tutorials
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilViewing the Results
2. Set Expression to expradius and then click Apply. 1. Click Create isosurface and accept the default name Isosurface 1. The maximum radius is 1 m, so creating a cylinder locator at a radius of 0.8 m is suitable. 2. Set Variable to radius and Value to 0.8. 3. On the Colour panel, set: a. Mode to Variable b. Variable to Temperature c. Range to User Specified d. Min to 300 [K] e. Max to 302 [K] 4. Click Apply. The cylinder will be visible. An easier and more powerful way of creating cylinders is described in "Surface of Revolution" on page 87 in the document "CFX-Post".
14.D.2:
Specular Lighting
Specular lighting is on by default. To see the effect of specular lighting, turn off Lighting and Specular on the Render panel for the Isosurface (Do not forget to click Apply.). Specular lighting allows glaring bright spots on the surface of an object, depending on the orientation of the surface and the position of the light. The light source can be moved in one of two ways. If using Standalone: To move the light source, start with the mouse pointer somewhere in the viewer area, then hold down the <Ctrl> key and click and drag using the right mouse button. If using Workbench: To move the light source, press and hold Shift and then press the arrow keys left, right, up or down. For more information on conjugate heat transfer in CFX-5, see "Conjugate Heat Transfer" on page 24 in the document "CFX-5 Solver Theory".
CFX-5 Tutorials
Page 321
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
14.E:
14.E.1:
Page 322
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
3. The first step is to export 3D thermal data. Set the following on the Export to ANSYS Multifield form: a. Results File to HeatingCoil_001.res The Export File field is automatically filled in. b. Edit the file name by appending _70 to the end of the name that appears in the Export File box. (The file should be called HeatingCoil_001_ansysfsi_70). c. Domain to SolidZone d. Leave the Boundary box empty e. ANSYS Element Type to 3D Thermal (70). f. Leave the Output Modifiers at the default settings. g. Click Export. 4. When the export is complete, click OK to acknowledge the message and then set the following: a. Domain to FluidZone b. Export File to HeatingCoil_001_ansysfsi_154 c. Boundary to Default 1 Side FluidZone Part 1 d. ANSYS Element Type to 2D Stress (154) e. Click Export This completes the export stage of the tutorial.
14.E.2:
CFX-5 Tutorials
Page 323
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
PreProcessing 1. In the ANSYS Main Menu, go to Preprocessor > Checking Ctrls > Shape Checking. Set Level of shape checking to Off, then click OK. You will receive a warning message: click Close to ignore it for this case. 2. Copy the mesh file HeatingCoil_solid92.cdb from the examples directory to your working directory. 3. Go to Preprocessor > MultiField Set Up > Import. On the MFS Import form, set: a. Field number to 3 b. Option to db c. Import File Name to HeatingCoil_solid92.cdb 4. Click OK. Note: Keep the .cdb file in your working directory (without spaces in the name) if working on a pc.
5. In the Utility Menu, select List > Properties > Element Types to verify that the cdb file was imported correctly. Then click Close to close the window.
Page 324
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
6. To set the material properties, in the Main Menu go to Preprocessor > Material Props > Material Models, then: a. Under Favorites > Linear Static > Density, set DENS to 8933 b. Under Favorites > Linear Static > Linear Isotropic, set EX to 1.1e11 and PRXY to 0.35. c. Under Favorites > Linear Static > Thermal Expansion, set Reference temperature to 300 [K] and ALPX to 1.65e-5. d. Under Thermal > Conductivity > Isotropic, set KXX to 401. e. Under Thermal > Specific Heat, set C to 385. f. Click Material > Exit to close the window.
7. In the Utility Menu, select List > Properties > All Materials to verify the above settings. 8. Click Close to close the window. 9. In the Utility Menu, select Select > Comp/Assembly > Select Comp/Assembly. a. Select by component name and click OK. b. On the Select Component or Assembly form, set Name to END_1 and Type to From full set. c. Click Apply. d. Repeat step (a). e. On the Select Component or Assembly form, set Name to END_2, but with Type set to Also Select. f. Click OK.
CFX-5 Tutorials
Page 325
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
10. In the Main Menu, go to Preprocessor > Loads > Define Loads > Apply > Structural > Displacement > On Nodes. a. Click on Pick All. b. On the Apply U,ROT on Nodes form, select All DOF. c. Click OK. 11. In the Utility Menu: a. Select Select > Comp/Assembly > Select All. b. Select Select > Everything. c. Select Select > Entities. d. Set fields up as shown in the figure below.
Figure 1:
Page 326
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
12. In the Main Menu, go to Preprocessor > Loads > Define Loads > Apply > Field Volume Intr > On Elements. a. Click Pick All. b. On the Apply FVIN on Elements form, set VAL1 to 1. c. Click OK. 13. In the Utility Menu, select Select > Comp/Assembly > Select Comp/Assembly. a. Choose by component name and click OK. b. On the Select Component or Assembly form, set Name to HELIX Type to From Full Set
c. Click OK. 14. In the Main Menu, go to Preprocessor > Loads > Define Loads > Apply > Field Surface Intr > On Nodes. a. Click Pick All. b. On the Apply FSIN on nodes form set VALUE to 1. c. Click OK. 15. In the Utility Menu: a. Select Select > Comp/Assembly > Select All. b. Select Select > Everything. 16. In the Main Menu, go to Preprocessor > MultiField Set Up > Import. On the MFS Import form, set: a. Field number to 1 b. Option to db c. Import File Name to HeatingCoil_001_ansysfsi_154.cdb 17. Click OK. Note: Keep the .cdb file in your working directory (without spaces in the name) if working on a pc. 18. In the Utility Menu, select List > Properties > Element Types to verify that the cdb file was imported correctly. 19. Click Close to close the window.
CFX-5 Tutorials
Page 327
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
20. In the Utility Menu, select Select > Entities. a. Set the fields up as shown in "Figure 1:" on page 326, except type surf154 as the element name. b. Click Sele All. c. Click OK. 21. In the Utility Menu, select Select > Entities. a. Set the fields to Nodes, Attached To, and Elements. b. Click OK. 22. In the Main Menu, go to Preprocessor > Loads > Define Loads > Apply > Field Surface Intr > On Nodes. a. Click Pick All. b. On the Apply FSIN on Nodes form, set VALUE to 1. c. Click OK. 23. In the Utility Menu, select Select > Everything. 24. In the Main Menu, go to Preprocessor > MultiField Set Up > Import. On the MFS Import form, set: a. Field number to 2 b. Option to db c. Import File Name to HeatingCoil_001_ansysfsi_70.cdb 25. Click OK. Note: Keep the .cdb file in your working directory (without spaces in the name) if working on a pc. 26. In the Utility Menu, select List > Properties > Element Types to verify that the cdb file was imported correctly. Click Close to close the window. 27. Go to the input field at the top of the GUI and type: esel,s,type,,1 This is the same as the steps you followed in steps 9 and 16, but done via the command line.
Page 328
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
28. In the Main Menu, go to Preprocessor > Loads > Define Loads > Apply > Field Volume Intr > On Elements. a. Click Pick All. b. On the Apply FVIN on Elements form, set VAL1 to 1. c. Click OK. 29. In the Utility Menu, select Select > Everything. 30. In the Main Menu, go to Preprocessor > MultiField Set Up > Setup > Global. Set the fields to match the figure below and click OK.
CFX-5 Tutorials
Page 329
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
31. In the Main Menu, select Preprocessor > MultiField Set Up > Setup > Order. Set the fields to match the figure below and click OK.
32. In the Main Menu, go to Preprocessor > MultiField Set Up > Setup > External. Select 1 and 2, as shown in the figure and click OK.
Page 330
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
33. In the Main Menu, go to Preprocessor > MultiField Set Up > Interface > Surface. Set the fields to match the figure below and click OK.
34. In the Main Menu, go to Preprocessor > MultiField Set Up > Interface > Volume. Specify TEMP, 2, 3, and 1 as shown below and click OK.
35. In the Main Menu, go to Preprocessor > MultiField Set Up > Time Ctrl. Set: a. MFIT to 1 b. MFDT to 1 c. MFRS to 0
CFX-5 Tutorials Page 331
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
36. In the Main Menu, go to Preprocessor > MultiField Set Up > Stagger > Max Iterations. 37. Set MFIT to 1. 38. In the Main Menu, go to Preprocessor > MultiField Set Up > Stagger > Relaxation. 39. Select FORC and TEMP, as shown below and click OK.
40. In the pop-up window, set both the FORC and TEMP Relaxation values to 1.0, and then click OK. 41. In the Main Menu, go to Preprocessor > MultiField Set Up > Clear. Specify SOLU and click OK.
42. In the Utility Menu, select File > Save As and specify a convenient location and filename.
Page 332
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
Solution 43. In the Main Menu, go to Solution > Solve > Current LS (Current Load Step). 44. Click OK. 45. The results have also been provided. To access the results file, copy HeatingCoilANSYSResults.rst from the examples directory to your working directory.
14.E.3:
PostProcessing
1. In the Utility Menu, select File > Clear & Start New. When you get a verify message asking you to confirm the /clear command, choose Yes. 2. In the Main Menu, go to General Postproc > Data & File Opts. a. Under Data to Be Read, select All items. b. Enable the Read single result file toggle. c. Browse to the HeatingCoilANSYSResults.rst file. d. Click OK. 3. In the Main Menu, select General Postproc > Read Results > Last Set. 4. Click Yes on the verify message. 5. Click on the Isometric View icon on the right-hand toolbar.
6. From the Utility Menu, select PlotCtrols > Style > Edge Options. a. Set Element outlines for non-contour/contour plots, to Edge only/All. b. Click OK.
CFX-5 Tutorials
Page 333
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
7. In the Utility Menu, select Plot > Results > Deformed Shape. Select Def + undeformed (deformed and undeformed), and then click OK. This gives a scaled displacement output, not the actual displacements (which are very small).
8. In the Utility Menu, select Plot > Results > Contour Plot > Elem Solution. a. Click Stress to get a list of available stresses. b. Scroll down to select von Mises stress. c. Choose Deformed shape with undeformed model. d. Click OK.
Page 334
CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
9. To view an animation, go to the Utility Menu and select PlotCtrls > Animate > Deformed Shape. a. Choose Def shape only. b. Click OK. An avi named HeatingCoilAnimation.avi has been added to the examples directory. Copy the file to your working directory if you wish to view it. c. Click Close in the Animation Control window to stop the animation and close the window. 10. In the Utility Menu, select List > Results > Options. 11. In the Results coord system field, select Global cylindric, and click OK. 12. In the Main Menu, go to General Postproc > Plot Results > Contour Plot > Element Solu. a. Click Stress to get a list of stresses. b. Select X-Component of stress. Note that although you are choosing the X component, because of the rotated coordinate system, this is, in reality, the R component. c. Choose Deformed shape with undeformed model, and click OK.
14.E.4:
CFX-5 Tutorials
Page 335
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
/batch,list /prep7 shpp,off !read in HeatingCoil_solid92.cdb physics ANS_STRUC mfim,3,db,HeatingCoil_solid92,cdb etlist !set material properties for copper mp,ex,1,1.1e11 mp,alpx,1,1.65e-5 mp,dens,1,8933 mp,kxx,1,401 mp,c,1,385 mp,prxy,1,0.35 mplist !dirichlet bc cmsel,s,end_1,node cmsel,a,end_2,node d,all,ux d,all,uy d,all,uz cmsel,all allsel !volumetric interface esel,s,type,,1 bfe,all,fvin,,1 !surface interface cmsel,s,helix,node sf,all,fsin,1 cmsel,all allsel !read in cfx pressure physics CFX_PRES mfimp,1,db,HeatingCoil_001_ansysfsi_154,cdb etlist !surface interface
Page 336 CFX-5 Tutorials
Master Contents
Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
esel,s,type,,1 nsle,s,1 sf,all,fsin,1 alls !read in CFX solid thermal physics CFX_HEAT mfimp,2,db,HeatingCoil_001_ansysfsi_70,cdb etlist !volumetric interface esel,s,type,,1 bfe,all,fvin,,1 allsel finish /solu etlist mfan,on mfor,1,2,3 mfti,1 mfdt,1 mfin,cons mfclear,solu mfsu,1,1,forc,3 mfvo,1,2,temp,3 mfex,1,2 mfit,1 mfre,temp,1.0 mfre,forc,1.0 mfbuc,on,50.0 mflist save solve finii
Previous Tutorial
CFX-5 Tutorials
Next Tutorial
Page 337
Master Contents Master Index Help On Help Conjugate Heat Transfer in a Heating CoilExporting the Results to ANSYS
Page 338
CFX-5 Tutorials