Tutorial 11. Use of User-Defined Scalars and User-Defined Memories for Modeling Ohmic Heating

Similar documents
Tutorial: Premixed Flow in a Conical Chamber using the Finite-Rate Chemistry Model

Section 26.1: Reporting Conventions. Section 26.2: Fluxes Through Boundaries. Section 26.3: Forces on Boundaries

Taylor Dispersion Created by Robert P. Hesketh, Chemical Engineering, Rowan University Fall 2005

Express Introductory Training in ANSYS Fluent Lecture 2 Boundary Conditions & Solver Settings

Validation 3. Laminar Flow Around a Circular Cylinder

Heat Transfer Modeling using ANSYS FLUENT

Heat Transfer Modeling

Multiphysics Modeling

Workshop 6.1. Steady State Thermal Analysis. Workbench - Mechanical Introduction 12.0 WS6.1-1

Workshop D Structural Analysis. Workbench - Mechanical Introduction 12.0 WS ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.

Athena Visual Software, Inc. 1

MAE 598 Project #1 Jeremiah Dwight

Getting started with BatchReactor Example : Simulation of the Chlorotoluene chlorination

Peristaltic Pump. Introduction. Model Definition

Electromagnetic Forces on Parallel Current-

5. FVM discretization and Solution Procedure

TABLE OF CONTENTS CHAPTER TITLE PAGE

Example Resistive Heating

GMS 8.0 Tutorial MT3DMS Advanced Transport MT3DMS dispersion, sorption, and dual domain options

Motor-CAD combined electromagnetic and thermal model (January 2015)

CHAPTER 7 NUMERICAL MODELLING OF A SPIRAL HEAT EXCHANGER USING CFD TECHNIQUE

Dimerization in a Tubular Reactor

This section develops numerically and analytically the geometric optimisation of

Coupling Physics. Tomasz Stelmach Senior Application Engineer

Tutorial for the supercritical pressure pipe with STAR-CCM+

Tutorial Number 18: Heat transfer analysis of a teapot

McIDAS-V Tutorial Displaying Point Observations from ADDE Datasets updated July 2016 (software version 1.6)

Mass Transfer in a Stirred Batch Reactor

Tutorial 12 Excess Pore Pressure (B-bar method) Undrained loading (B-bar method) Initial pore pressure Excess pore pressure

Project #1 Internal flow with thermal convection

Project 4: Navier-Stokes Solution to Driven Cavity and Channel Flow Conditions

"C:\Program Files\ANSYS Inc\v190\CFX\bin\perllib\cfx5solve.pl" -batch -ccl runinput.ccl -fullname "Fluid Flow CFX_002"

Virtual Cell Membrane Potential Tutorial IV

Winmostar tutorial Gromacs Interfacial Tension V X-Ability Co., Ltd. 2018/01/15

Automatic Watershed Delineation using ArcSWAT/Arc GIS

v Prerequisite Tutorials GSSHA WMS Basics Watershed Delineation using DEMs and 2D Grid Generation Time minutes

Chapter 13. Modeling Species Transport and Finite-Rate Chemistry

85. Geo Processing Mineral Liberation Data

Revision of the thermal chip simulation, J.E. Akin, Rice University

Lecture 9 Thermal Analysis

Shape, Convection and Convergence

This chapter focuses on the study of the numerical approximation of threedimensional

Transient flow and heat equations - the Rayleigh-Benard instability

Winmostar tutorial LAMMPS Melting point V X-Ability Co,. Ltd. 2017/8/17

OECD QSAR Toolbox v.4.1. Tutorial illustrating new options for grouping with metabolism

Lab 1: Dynamic Simulation Using Simulink and Matlab

DEVELOPMENT OF CFD MODEL FOR A SWIRL STABILIZED SPRAY COMBUSTOR

COMPUTATIONAL FLUID DYNAMICS ANALYSIS OF A V-RIB WITH GAP ROUGHENED SOLAR AIR HEATER

85. Geo Processing Mineral Liberation Data

Virtual Cell Version 4.0 Membrane Potential

MENA 9520 FME Modelling Tutorial 5 ( )

MERGING (MERGE / MOSAIC) GEOSPATIAL DATA

Tutorial for the heated pipe with constant fluid properties in STAR-CCM+

Geodatabases and ArcCatalog

Tutorial. Getting started. Sample to Insight. March 31, 2016

Effect of Periodic Variation of Sol-air Temperature on the Performance of Integrated Solar Collector Storage System

C:\Dokumente und Einstellungen \All Users\Anwendungsdaten \Mathematica. C:\Dokumente und Einstellungen \albert.retey\anwendungsdaten \Mathematica

Boat Reactor for Low Pressure Chemical Vapor Deposition

The OptiSage module. Use the OptiSage module for the assessment of Gibbs energy data. Table of contents

Analysis of the Cooling Design in Electrical Transformer

CHME 302 CHEMICAL ENGINEERING LABOATORY-I EXPERIMENT 302-V FREE AND FORCED CONVECTION

Laminar flow heat transfer studies in a twisted square duct for constant wall heat flux boundary condition

Fluid Mechanics Qualifying Examination Sample Exam 2

CFD Analysis of High Temperature and High Velocity System: Plasma Torch

CFD Analysis of Mixing in Polymerization Reactor. By Haresh Patel Supervisors: Dr. R. Dhib & Dr. F. Ein-Mozaffari IPR 2007

Displaying and Rotating WindNinja-Derived Wind Vectors in ArcMap 10.5

International Journal of Scientific & Engineering Research, Volume 6, Issue 5, May ISSN

Data Structures & Database Queries in GIS

Esterification in CSTRs in Series with Aspen Plus V8.0

Modeling a Composite Slot Cross-Section for Torsional Analysis

Version 1.2 October 2017 CSD v5.39

ELEC 1908 The Electric Potential (V) March 28, 2013

CFD AND CONJUGATE HEAT TRANSFER ANALYSIS OF HEAT SINKS WITH DIFFERENT FIN GEOMETRIES SUBJECTED TO FORCED CONVECTION USED IN ELECTRONICS COOLING

Working with ArcGIS: Classification

NMR Predictor. Introduction

Calculating equation coefficients

Leaf Spring (Material, Contact, geometric nonlinearity)

Contents. Feature Articles. On the Web. Resources. A Publication for ANSYS Users

Lab 1: Numerical Solution of Laplace s Equation

Transient, Source Terms and Relaxation

Finite Element Modules for Enhancing Undergraduate Transport Courses: Application to Fuel Cell Fundamentals

ANSYS FLUENT 12.0 Fuel Cells Module Manual

Pressure-velocity correction method Finite Volume solution of Navier-Stokes equations Exercise: Finish solving the Navier Stokes equations

Influence of Heat Transfer Process in Porous Media with Air Cavity- A CFD Analysis

Basic Fluid Mechanics

Part III. Dr. Scott R. Runnels. Databases Analyses Ladings Old TPS New TPS. Lading Properties Entry Meaning. AFFTAC Training Class

SHM Simple Harmonic Motion revised May 23, 2017

Example Application 12. Embankment Loading on a Cam-Clay Foundation

VCell Tutorial. Building a Rule-Based Model

Natural Convection from a Long Horizontal Cylinder

Grid to LandGrid Volumetrics Workflow

APBS electrostatics in VMD - Software. APBS! >!Examples! >!Visualization! >! Contents

A numerical study of heat transfer and fluid flow over an in-line tube bank

Numerical simulation of fluid flow in a monolithic exchanger related to high temperature and high pressure operating conditions

midas NFX 2015 R1 Release Note

Esterification in a PFR with Aspen Plus V8.0

Exercises for Windows

CFD ANALYSIS OF TURBULENCE EFFECT ON REACTION IN STIRRED TANK REACTORS

Simulation of Aeroelastic System with Aerodynamic Nonlinearity

SW103: Lecture 2. Magnetohydrodynamics and MHD models

Transcription:

Tutorial 11. Use of User-Defined Scalars and User-Defined Memories for Modeling Ohmic Heating Introduction The purpose of this tutorial is to illustrate the use of user-defined scalars (UDS) and user defined memories (UDM) for modeling the electric resistance heating of fluids. Ohmic heating is an advanced food processing method used to heat liquid foods, where electricity is passed through the liquid food itself. Through this process, the electrical energy is converted to heat energy. Conventional food processing heating methods can damage food quality due to the relatively slow energy transfer rate and significant temperature gradients associated with conduction and convection driven heat transfer. In comparison, Ohmic heating uniformly heats the entire mass, ensuring a product of better quality. In this tutorial you will learn how to: Use the UDS for modeling the electrical current continuity equation. Use the UDM for storing the data at each cell center. Use the source terms to model the volumetric heating. Setup the solver and perform iterations. Check the convergence. Examine the results. Perform postprocessing of UDS and UDM. Prerequisites This tutorial assumes that you have little experience with FLUENT but are familiar with the interface. c Fluent Inc. August 22, 2006 11-1

Problem Description Consider a 2D ohmic heater with water as a working fluid. The fluid passes through the serpentine duct as shown in Figure 11.1. The opposite walls of the duct are maintained at different electrical potential. The electrical current continuity equation (solved using the UDS) is given in terms of the electric potential (φ) as follows: (σ φ) = 0 where, σ is electrical conductivity. The current density vector (J) is related to the electric potential distribution as follows: J = σ φ Heat generated due to the dissipation of electric energy is calculated using Ohm s law and stored in User Memory 0. The volumetric rate of heat generation (q) is calculated as: q = J J σ Figure 11.1: Problem Schematic 11-2 c Fluent Inc. August 22, 2006

Preparation 1. Copy the mesh file, ohmic heater.msh, and the directory, libudf, to your working directory. 2. Start the 2D double precision solver of FLUENT. Setup and Solution Step 1: Grid 1. Read the mesh file, ohmic heater.msh. File Read Case... FLUENT will read the mesh file and report the progress in the console. 2. Check the grid. Grid Check This procedure checks the integrity of the mesh. Make sure the reported minimum volume is a positive number. 3. Check the scale of the grid. Grid Scale... Check the domain extents to see if they correspond to the actual physical dimensions. If they do not, then the grid has to be scaled with proper units. In this case, there is no need to scale the grid. c Fluent Inc. August 22, 2006 11-3

4. Display the grid (Figure 11.2). Display Grid... (a) Click Colors... The Grid Colors panel opens. i. Under Options, enable Color by ID. ii. Close the panel. (b) In the Grid Display panel, click Display. 11-4 c Fluent Inc. August 22, 2006

Grid Apr 28, 2006 FLUENT 6.2 (2d, dp, segregated, lam) Figure 11.2: Grid Display Step 2: Models 1. Retain the default solver settings. Define Models Solver... The problem is to be solved in steady state with 2D laminar conditions. c Fluent Inc. August 22, 2006 11-5

2. Enable heat transfer by activating the energy equation. Define Models Energy... Step 3: UDF Library 1. Load the UDF library. Define User-Defined Functions Compiled... (a) Click Load to load the UDF library. The heat generated due to ohmic heating is calculated in this UDF. A compiled UDF library named libudf is created for this purpose. Step 4: Define UDS 1. Include UDS in the case setup. Define User-Defined Scalars... 11-6 c Fluent Inc. August 22, 2006

(a) Increase Number of User-Defined Scalars to 1. (b) Keep the default selection of none in the Flux Function drop-down list. Flux Function defines the convection flux for UDS transport. In this case, it is assumed that current convection is negligible, therefore, no need to specify any function. (c) Click OK in the User Defined Scalars panel. An information dialog box pops up with the message Available material properties or methods have changed. Please confirm the property values before continuing. (d) Click OK to close the dialog box. Since the UDS is enabled, UDS diffusivity will be required. You will set it in Step 6. By enabling this feature, FLUENT solves the transport equation for an arbitrary UDS. The UDS equation is solved in the same way as FLUENT solves transport equation for any other scalar (e.g., temperature, species mass fraction). Step 5: Define UDM 1. Specify appropriate UDM. Define User-Defined Memory... (a) Increase Number of User-Defined Memory Locations to 1. UDMs can store the variables at each cell center and face. These stored values can be used for postprocessing or by other UDFs. In this tutorial, the dissipated electric energy is stored in UDM. The UDM is used for postprocessing the distribution of the volumetric heat source and also for defining a source for the energy equation. (b) Click OK. c Fluent Inc. August 22, 2006 11-7

Step 6: Materials 1. Add liquid water to the list of fluid materials by copying it from the materials database. Define Materials... (a) Click Fluent Database... Fluent Database Materials panel opens. 11-8 c Fluent Inc. August 22, 2006

i. Select water-liquid (h2o < l >) from the Fluent Fluid Materials list. Hint: Scroll-down to view water-liquid (h2o < l >). ii. Click Copy and close the panel. (b) Define the diffusion coefficient for current density equation i.e., UDS-0. i. In the Materials panel, select water-liquid (h2o < l >) from the Fluent Fluid Materials drop-down list. ii. Under Properties, click Edit... to the right of UDS Diffusivity. The UDS Diffusion Coefficients panel opens. c Fluent Inc. August 22, 2006 11-9

A. Select uds-0 in the User-Defined Scalar Di list. B. Keep the default selection of constant option under Coefficient dropdown list and set the value to 0.001237. C. Click OK to close the panel. (c) Click Change/Create and close the Materials panel. Step 7: Boundary Conditions 1. Set the boundary condition for ohm-heater. Define Boundary Conditions... 11-10 c Fluent Inc. August 22, 2006

(a) Under Zone, select ohm-heater. The Type will be reported as fluid. (b) Click Set... The Fluid panel opens. (c) In the Material Name drop-down list, select water-liquid. (d) Enable Source Terms and click the Source Terms tab. (e) Select udf Energy Source::libudf in the Energy drop-down list. (f) Click OK to close the panel. 2. Set the boundary conditions for anode-wall. (a) Under Zone, select anode-wall. The Type will be reported as wall. c Fluent Inc. August 22, 2006 11-11

(b) Click Set... The Wall panel opens. i. Keep the default conditions under Thermal and Momentum tabs. ii. Click the UDS tab. iii. Select Specified Value in the User Scalar 0 drop-down list. iv. Under User Defined Scalar Boundary Value, set User Scalar 0 to 200. v. Click OK to close the panel. 3. Set the boundary conditions for cathode-wall. (a) Under Zone, select cathode-wall. The Type will be reported as wall. 11-12 c Fluent Inc. August 22, 2006

(b) Click Set... The Wall panel opens. i. Keep the default conditions under Thermal and Momentum tabs. ii. Click the UDS tab. iii. Select Specified Value in the User Scalar 0 drop-down list. iv. Under User Defined Scalar Boundary Value, keep 0 for User Scalar 0. v. Click OK to close the panel. 4. Set the boundary conditions for inlet. (a) Under Zone, select inlet. The Type will be reported as velocity-inlet. c Fluent Inc. August 22, 2006 11-13

(b) Click Set... The Velocity Inlet panel opens. i. Set Velocity Magnitude to 0.001. ii. Set Temperature to 300. iii. Keep the default boundary conditions for UDS. iv. Click OK to close the panel. 5. Keep the default boundary condition for exit. 11-14 c Fluent Inc. August 22, 2006

6. Close the Boundary Conditions panel. Step 8: Solution 1. Keep the default solution settings. Solve Controls Solution... c Fluent Inc. August 22, 2006 11-15

2. Initialize the flow. Solve Initialize Initialize... (a) Click Init and close the panel. 3. Enable the plotting of residuals during the calculation. Solve Monitors Residuals... (a) Under Options, enable Plot. 11-16 c Fluent Inc. August 22, 2006

(b) Click OK to accept the settings and close the panel. By default, all variables will be monitored and checked to determine the convergence of the solution. 4. Save the case file (ohmic-heater.cas.gz). File Write Case... Retain the default Write Binary Files option so that you can write a binary file. The.gz option will save compressed files on both Windows and UNIX platforms. 5. Start the calculation by requesting 100 iterations. Solve Iterate... c Fluent Inc. August 22, 2006 11-17

(a) Set Number of Iterations to 100. (b) Click Iterate. The solution converges in about 33 iterations with default convergence criteria. The number of iterations required for convergence varies according to the platform used. Also, the residual values are different for different computers, therefore, the residual plot that you will get may not be exactly the same as Figure 11.3. Residuals continuity x-velocity y-velocity energy uds-0 1e+02 1e+00 1e-02 1e-04 1e-06 1e-08 1e-10 1e-12 1e-14 0 5 10 15 20 25 30 35 Iterations Scaled Residuals Apr 28, 2006 FLUENT 6.2 (2d, dp, segregated, lam) Figure 11.3: Scaled Residuals 11-18 c Fluent Inc. August 22, 2006

Step 9: Check for Convergence There are no universal metrics for judging convergence. The unconverged results may be very misleading. The residual definitions that are useful for one class of problem are sometimes not suitable for other classes of problems. Therefore, it is a good idea to judge convergence not only by examining residual levels, but also by monitoring relevant integrated quantities and checking for mass and energy balances. There are three methods to check the convergence: Monitoring the residuals. Convergence occurs when the convergence criterion for each variable is reached. The default criterion is that each residual will be reduced to a value less than 1e-3, except the energy residual, for which the default criterion is 1e-6. These criteria are useful for a wide range of problems, but at times, it may be required to tighten these criteria, based on the validity of other convergence checks. Overall mass, momentum, energy and scalar balances are obtained. Check the overall mass, momentum, energy and scalar balances in the Flux Reports panel. The net imbalance should be less than 0.2% of the net flux through the domain. When the solution no longer changes with iterations. Sometimes the residuals may not fall below the convergence criteria set in the case setup. However, monitoring the representative flow variables through iterations may show that the residuals have stagnated and do not change with further iterations. This could also be considered a convergence check. 1. Check global mass balance. Report Fluxes... c Fluent Inc. August 22, 2006 11-19

(a) Under Options, keep the default selection of Mass Flow Rate. (b) In the Boundaries list, select exit and inlet. (c) Click Compute. For the specified convergence criterion, the mass imbalance is 0 kg/s. Now you will check the energy balance. 2. Check the energy balance. (a) Under Options, enable Total Heat Transfer Rate. 11-20 c Fluent Inc. August 22, 2006

(b) In the Boundaries list, select exit and inlet. (c) Click Compute. For the energy equation the imbalance is -3254.323 W. This imbalance is due to the volumetric heating of the fluid. For energy conservation, this value must balance with the energy source. Now, integrate the energy source over the entire volume. 3. Check the volume integral. Report Volume Integrals... (a) Under Report Type, enable Volume Integral. (b) Select User Defined Memory... and User Memory 0 in the Field Variable dropdown lists. Heat generated due to the dissipation of electric energy is calculated by Ohms law and is stored in User Memory 0. (c) In the Cell Zones list, select ohm-heater. (d) Click Compute. This is the total heat generated due to ohmic heating. This value is close to the change in the enthalpy of the fluid while passing through the heater. The net imbalance is 1.075e-5% which is well below the desired limit. In some cases, first order schemes and default convergence criteria may not provide the desired mass, momentum, energy, and scalar balances. In such cases, a better match can be obtained by selecting higher order schemes. c Fluent Inc. August 22, 2006 11-21

4. Select the higher order schemes. Solve Controls Solution... (a) Under Discretization, select QUICK in the Momentum, Energy, and User Scalar 0 drop-down lists. (b) Click OK. The QUICK discretization scheme applies to quad/hex and hybrid meshes (not applied to tri mesh). It is useful for rotating/swirling flows and is 3rd-order accurate when used with a uniform mesh. In general, however, a secondorder scheme should be sufficient and the QUICK scheme will not provide any significant improvement in comparison. 5. Save the case file (ohmic-heater-quick.cas.gz). File Write Case... Keep the Write Binary Files (default) option on so that a binary file will be written. 11-22 c Fluent Inc. August 22, 2006

6. Start the calculation by requesting 100 iterations. Solve Iterate... The solution converges after approximately 57 iterations. 7. Check the energy balance again. Report Fluxes... (a) Under Options, enable Total Heat Transfer Rate. (b) In the Boundaries list, select exit and inlet. (c) Click Compute. Now, integrate the energy source over the entire volume. 8. Check the volume integral. Report Volume Integrals... c Fluent Inc. August 22, 2006 11-23

(a) Under Report Type, enable Volume Integral. (b) Select User Defined Memory... and User Memory 0 in the Field Variable dropdown lists. (c) In the Cell Zones list, select ohm-heater. (d) Click Compute. The net imbalance has changed from 1.075e-5% to 4.9e-6%. Step 10: Postprocessing 1. Display contours of velocity magnitude (Figure 11.4). Display Contours... 11-24 c Fluent Inc. August 22, 2006

(a) Select Velocity... and Velocity Magnitude in the Contours of drop-down lists. (b) Select Filled under Options. (c) Click Display. 1.58e-03 1.50e-03 1.42e-03 1.34e-03 1.26e-03 1.18e-03 1.10e-03 1.02e-03 9.46e-04 8.67e-04 7.88e-04 7.09e-04 6.30e-04 5.52e-04 4.73e-04 3.94e-04 3.15e-04 2.36e-04 1.58e-04 7.88e-05 0.00e+00 Contours of Velocity Magnitude (m/s) Apr 28, 2006 FLUENT 6.2 (2d, dp, segregated, lam) Figure 11.4: Velocity Distribution Right-click on a point in the domain to display the value of the corresponding contour in the console. c Fluent Inc. August 22, 2006 11-25

2. Display filled contours of temperature (Figure 11.5). Display Contours... (a) Select Temperature... lists. (b) Click Display. and Static Temperature in the Contours of drop-down 3.56e+02 3.53e+02 3.50e+02 3.48e+02 3.45e+02 3.42e+02 3.39e+02 3.36e+02 3.34e+02 3.31e+02 3.28e+02 3.25e+02 3.22e+02 3.20e+02 3.17e+02 3.14e+02 3.11e+02 3.08e+02 3.06e+02 3.03e+02 3.00e+02 Contours of Static Temperature (k) Apr 28, 2006 FLUENT 6.2 (2d, dp, segregated, lam) Figure 11.5: Contours of Static Temperature 11-26 c Fluent Inc. August 22, 2006

3. Display filled contours of electric potential (Figure 11.6). (a) Select User Defined Scalars... and User Scalar 0 in the Contours of drop-down lists. (b) Click Display. 2.00e+02 1.90e+02 1.80e+02 1.70e+02 1.60e+02 1.50e+02 1.40e+02 1.30e+02 1.20e+02 1.10e+02 1.00e+02 9.00e+01 8.00e+01 7.00e+01 6.00e+01 5.00e+01 4.00e+01 3.00e+01 2.00e+01 1.00e+01 0.00e+00 Contours of User Scalar 0 Apr 28, 2006 FLUENT 6.2 (2d, dp, segregated, lam) Figure 11.6: Contours of Electric Potential c Fluent Inc. August 22, 2006 11-27

4. Display filled contours of energy source (Figure 11.7). (a) Select User Defined Memory... and User Memory 0 in the Contours of drop-down lists. (b) Click Display. 1.02e+06 9.66e+05 9.15e+05 8.65e+05 8.14e+05 7.63e+05 7.12e+05 6.61e+05 6.10e+05 5.59e+05 5.09e+05 4.58e+05 4.07e+05 3.56e+05 3.05e+05 2.54e+05 2.03e+05 1.53e+05 1.02e+05 5.09e+04 0.00e+00 Contours of User Memory 0 Apr 28, 2006 FLUENT 6.2 (2d, dp, segregated, lam) Figure 11.7: Contours of Energy Source Distribution Summary FLUENT UDS and UDM capabilities are illustrated for predicting the electric potential field. UDF is used for calculating the dissipation of electric energy into heat energy. References FLUENT 6.2 User s Guide: http://www.fluentusers.com/fluent/doc/ori/html/ug/main pre.htm Exercises/Discussions 1. What will be the effect on exit temperature and maximum temperature in each of following situations: (a) Electrical conductivity is defined as a function of temperature. (b) Thermal conductivity is defined as a function of temperature. 11-28 c Fluent Inc. August 22, 2006

2. What will be the effect on the pumping power requirement in each of following situations: (a) Thermal conductivity is defined as a function of temperature. (b) Electrical conductivity is defined as a function of temperature. (c) Viscosity is defined as a function of temperature. Links for Further Reading http://www.fsid.cvut.cz/ zitny/zitny/ohmic.htm c Fluent Inc. August 22, 2006 11-29

11-30 c Fluent Inc. August 22, 2006