viscousheatingsolver Martin Becker

Similar documents
Porous Media in OpenFOAM

OpenFOAM selected solver

Dam break free surface flow

Transient flow simulations

Introduction. Haukur Elvar Hafsteinsson. OpenFOAM - Porous Media 1. The Governing Equations. The Class. The solver. Porous media as a flow control

CFD with OpenSource software A course at Chalmers University of Technology Taught by HÅKAN NILSSON. Project work: intersettlingfoam

Description and validation of the rotordisksource class for propeller performance estimation

Flow boiling implementation with OpenFoam

3D Dam break Free surface flow

OpenFOAM Course Final Assignment: Tutorial for Natural Convection Boundary Layer

SIMULATION OF FLUID-STRUCTURAL INTERACTION

High-level programming in OpenFOAM and a first glance at C++

Tutorial Eleven Reaction

Solving PDEs with OpenFOAM

CFD with OpenSource software

Magnetic induction and electric potential solvers for incompressible MHD flows

High-level programming in OpenFOAM and a first glance at C++

EXAMPLE 115 NON-ISOTHERMAL FLOW IN A SINGLE SCREW EXTRUDER DESCRIPTION KEYWORDS FILENAMES. Example 115

An Overview of CFD Tools and Comparison of a 2D Testcase

The Effect of the DNS Data Averaging Time on the Accuracy of RANS-DNS Simulations

Solving PDEs with OpenFOAM

Coupled calculations in OpenFOAM -

On Air Bubbles Sliding through a Thermal Boundary Layer

Description of poroussimplefoam and adding the Brinkmann model to the porous models Developed for OpenFOAM-2.2.x

Draft Tube calculations using OpenFOAM-1.5dev and validation with FLINDT data

Differential relations for fluid flow

Simplified flow around a propeller for the course CFD with OpenSource Software

Develpment of NSCBC for compressible Navier-Stokes equations in OpenFOAM : Subsonic Non-Reflecting Outflow

studies Maryse Page Hydro-Québec, Research Institute Håkan Nilsson Chalmers University of Technology Omar Bounous Chalmers University of Technology

How to implement your own turbulence model (1/3)

Lecture 2: Fundamentals 2/3: Navier-Stokes Equation + Basics of Discretization

Create a DES turbulence model from komegasst RANS model. 8 th OFWS training by D. Chrisk Revised by Y. Takagi Open CAE

Computational Fluid Dynamics 2

Implementation of Turbulent Viscosity from EARSM for Two Equation Turbulence Model

Simulating the combustion of gaseous fuels 6th OpenFoam Workshop Training Session. Dominik Christ

Micro-Scale CFD Modeling of Packed-Beds

The implementation of Two-equation SGS turbulence model and Wall damping function

How to implement your own turbulence model(1/3)

Modeling of Anisotropic Polymers during Extrusion

Rhie-Chow interpolation in OpenFOAM 1

A Two-Fluid/DQMOM Methodology For Condensation In Bubbly Flow

Three-dimensional Numerical Modeling of Water Flow in a Rock-Blasted Tunnel

A Computational Investigation of a Turbulent Flow Over a Backward Facing Step with OpenFOAM

Simulation of T-junction using LBM and VOF ENERGY 224 Final Project Yifan Wang,

Chapter (4) Motion of Fluid Particles and Streams

TABLE OF CONTENTS CHAPTER TITLE PAGE

Viscoelastic Fluid Simulation with OpenFOAM

A suite of boundary conditions for the simulation of atmospheric ows using a modied RANS/k ε closure

Numerical analysis of fluid flow and heat transfer in 2D sinusoidal wavy channel

Adding electric conduction and Joule heating to chtmultiregionfoam Niklas Järvstråt

Proper Orthogonal Decomposition of Pressure Fields in a Draft Tube Cone of the Francis (Tokke) Turbine Model

PREDICTION OF PHYSICAL PROPERTIES OF FOODS FOR UNIT OPERATIONS

Description of AdjointShapeOptimizationFoam and how to implement new cost functions

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

Computation for the Backward Facing Step Test Case with an Open Source Code

OpenFOAM SIMULATION OF THE FLOW IN THE HÖLLEFORSEN DRAFT TUBE MODEL

Lectures on Applied Reactor Technology and Nuclear Power Safety. Lecture No 6

Flow Distribution inside an Electrostatic Precipitator: Effects of Uniform and Variable Porosity of Perforated Plate

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

MODA. Modelling data documenting one simulation. NewSOL energy storage tank

Coupling of VOF-Based Solver with LPT for Simulation of Cavitating Flows

Investigation of Thermal Mixing Using OpenFOAM REIJO PEGONEN

Tutorial 1. Where Nu=(hl/k); Reynolds number Re=(Vlρ/µ) and Prandtl number Pr=(µCp/k)

10. Buoyancy-driven flow

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

6. Laminar and turbulent boundary layers

How to measure the shear viscosity properly?

FVM for Fluid-Structure Interaction with Large Structural Displacements

BOUNDARY LAYER ANALYSIS WITH NAVIER-STOKES EQUATION IN 2D CHANNEL FLOW

The JHU Turbulence Databases (JHTDB)

Principles of Convection

Fundamentals of Fluid Dynamics: Elementary Viscous Flow

fluid mechanics as a prominent discipline of application for numerical

Studies on flow through and around a porous permeable sphere: II. Heat Transfer

Authors: Correspondence: ABSTRACT: Keywords:

Masters in Mechanical Engineering. Problems of incompressible viscous flow. 2µ dx y(y h)+ U h y 0 < y < h,

A numerical study of vortex-induced vibrations (viv) in an elastic cantilever

AN UNCERTAINTY ESTIMATION EXAMPLE FOR BACKWARD FACING STEP CFD SIMULATION. Abstract

Heat Transfer from An Impingement Jet onto A Heated Half-Prolate Spheroid Attached to A Heated Flat Plate

FE Exam Fluids Review October 23, Important Concepts

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

Actiflow: Using OpenFOAM Technology for Aeroconsulting

Laminar Forced Convection Heat Transfer from Two Heated Square Cylinders in a Bingham Plastic Fluid

Simulation of pressure drop for combined tapered and nontapered die for polypropylene using ansys Polyflow

Microfluidics 1 Basics, Laminar flow, shear and flow profiles

FEniCS Course. Lecture 6: Incompressible Navier Stokes. Contributors Anders Logg André Massing

Microfluidic Devices. Microfluidic Device Market. Microfluidic Principles Part 1. Introduction to BioMEMS & Medical Microdevices.

Turbulent Boundary Layers & Turbulence Models. Lecture 09

Introduction to Heat and Mass Transfer. Week 10

Investigation of reattachment length for a turbulent flow over a backward facing step for different step angle

A computational fluid dynamics analysis on air bearing designs

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

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

6. Expressions for Describing Steady Shear Non-Newtonian Flow

Circular Bearing Performance Parameters with Isothermal and Thermo-Hydrodynamic Approach Using Computational Fluid Dynamics

Experimental and Theoretical Investigation of Hydrodynamics Characteristics and Heat Transfer for Newtonian and Non-newtonian Fluids

THE SUBORDINATION OF THE THREE- DIMENSIONAL FLOW INSTALLATION IN THE CONVERGING CHANNEL ON RHEOLOGICAL CHARACTERISTICS OF POLYMER STREAM

Homework 4 in 5C1212; Part A: Incompressible Navier- Stokes, Finite Volume Methods

A solver for Boussinesq shallow water equations

Fluid Dynamics Exercises and questions for the course

Transcription:

viscousheatingsolver Adding temperature transport and viscous heating to simplefoam Solver and Test Case Martin Becker martin_becker@dhcae-tools.de 11/09/2012 Abstract The modifications of the simplefoam solver to implement temperature transport and viscous heating are described. The boundary conditions and settings in fvschemes and fvsolutions are described. The analytical results are compared to the simulation results. The tutorial case and the modifications are useful for the simulation of high viscous polymer flow.

Trademarks OPENFOAM and OpenCFD are registered trademarks of ESI Group. This offering is not approved or endorsed by ESI Group, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks. 2

1 Introduction simplefoam is the OpenFOAM s standard solver for incompressible, isothermal and steady state flow. You can use Newtonian fluid behaviour or non-newtonian material models like BirdCarreau or Cross- PowerLaw. Optionally there are different turbulence models available. With these basic characteristics simplefoam qualifies itself to be the foundation for simulating high viscous polymers. An excellent application area is for example polymer extrusion, where non-newtonian materials are formed in a steady state production process. An interesting aspect in the extrusion process is the transport of temperature, and for high viscous polymers especially the viscous heating or viscous dissipation. Both features are added to simplefoam and they are discussed in this paper. 2 Modifications of the simplefoam solver 2.1 Compilation and usage The new solver is name viscousheatingsolver. It is directly derived from the original simplefoam solver of OpenFOAM-2.1.x. To compile the solver you therefor need a working installation of OpenFOAM- 2.1.x. After unpacking the solver to your user OpenFOAM user directory you can compile it with wmake. The solver will be placed in your $(FOAM_USER_APPBIN) directory. The attached case case_capillary_viscousheating contains an Allrun.sh script. You can run the script to see the solver in action. 2.2 Modifications of createfields.h For the temperature transport the thermal diffusivity coefficient DT is used, and the viscous dissipation needs the specific heat capacity c. Both are assumed to be constant and they are read within the createfields.h file: // thermal d i f f u s i v i t y [DT] dimensionedscalar DT_( laminartransport. lookup ( "DT" ) ) ; // s p e c i f i c heat c a p a c i t y [ c ] dimensionedscalar c_( laminartransport. lookup ( " c " ) ) ; Now these constants are globally available in the solver and might be used for other purposes. 2.3 The new TEqn.H file The solution of the temperature transport equation is done in a new file named TEqn.H. The computation of the viscous heating term has been unrolled: gradu and tau are calculated explicitly before they are used in the TEqn itself. Be aware of the brackets around the lines of code: they reduce the memory usage because the additional volscalarfield and voltensorfields are deleted automatically when the solver leaves this section. The diffusivity coefficient DT is used in the laplacian term of the temperature equation. v o l T e n s o r F i e l d gradu = f v c : : grad (U) ; tmp <v o l S c a l a r F i e l d > nu = laminartransport. nu ( ) ; tmp <voltensorfield > tau = nu ( gradu + gradu.t ( ) ) ; f v S c a l a r M a t r i x TEqn ( fvm : : div ( phi, T) fvm : : l a p l a c i a n (DT_, T) == (1/c_) ( tau && gradu ) // v i s c o u s heat d i s s i p a t i o n term ) ; TEqn. r e l a x ( ) ; TEqn. s o l v e ( ). i n i t i a l R e s i d u a l ( ) ; 3

2.4 Modifications of mysimplefoam.c The new TEqn.H file must be included into the main solver. An appropriate location is after the U update and before the peqn: // Pressure v e l o c i t y SIMPLE c o r r e c t o r #i n c l u d e "UEqn.H" #i n c l u d e "TEqn.H" #i n c l u d e "peqn.h" 3 Case setup 3.1 constant/transportproperties As an example we run a simulation on a simplified capillary rheometer. We use a fictious Newtonian fluid here with these material properties: Physical parameter Symbol Value density ρ 1380 kg m 3 thermal conductivity κ 0.166 W K m specific heat capacity c 1530 J kg K dynamic viscosity µ 1500P a s The thermal diffusivity coefficient DT results from: DT = κ ρ c = 0.166 W K m 1380 kg m 3 1530 J kg K 8 m2 = 7.8621e s An the kinematic viscosity used by the incompressible OpenFOAM solvers is calculated this way: ν = µ ρ = 1500P a s 1380 kg m 3 This results in the following transportproperties file: transportmodel Newtonian ; nu nu [ 0 2 1 0 0 0 0 ] 1. 0 8 7 ; DT DT [ 0 2 1 0 0 0 0 ] 7.8621 e 8; rho rho [ 1 3 0 0 0 0 0 ] 1 3 8 0. 0 ; c c [ 0 2 2 1 0 0 0 ] 1 5 3 0. 0 ; 3.2 Boundary conditions = 1.087 m2 s File Patch Boundary condition Comment 0/T inlet fixedvalue, 503.15K wall, outlet zerogradient 0/U inlet fixedvalue, (0 0 0.0006666) results in 4 m minblock velocity @ outlet wall fixedvalue, (0 0 0) outlet zerogradient 0/p outlet fixedvalue, 0 inlet, wall zerogradient 3.3 fvschemes and fvsolution The new equation system for T needs some new entries in the fvschemes file: Scheme Entry gradschemes grad(t) Gauss linear; divschemes div(phi,t) Gauss linearupwind grad(t); laplacianschemes laplacian(dt,t) Gauss linear corrected; 4

In the fvsolution file a linear equation system solver must be set: T s o l v e r smoothsolver ; smoother DILUGaussSeidel ; t o l e r a n c e 1e 06; r e l T o l 0. 0 1 ; maxiter 1 0 0 ; A relaxation factor should be added to the relaxationfactors dictionary: r e l a x a t i o n F a c t o r s f i e l d s p 0. 3 ; e q u a t i o n s U 0. 7 ; T 0. 9 ; On optional entry to the SIMPLE/residualControl looks like this: r e s i d u a l C o n t r o l U 1e 5; p 1e 5; T 1e 5; 4 Analytical vs. simulation results The viscous heating can be calculated by the knowledge of the pressure drop: T = p outlet p inlet ρ c After running the simulation you can calculate the kinematic pressure with the patchaverage utility: patchaverage p i n l e t The kinematic pressure drop is 11891.7 m2 s in the attached case. 2 The flow rate averaged temperature at the outlet is written out with a simplefunctionsobject in the controldict file: f u n c t i o n s massflowaveraget type patchmassflowaverage ; f u n c t i o n O b j e c t L i b s ( " l i b s i m p l e F u n c t i o n O b j e c t s. so " ) ; f i e l d s ( T ) ; patches ( o u t l e t ) ; f a c t o r 1. 0 ; verbose true ; (1) 5

Figure 1: Temperature [K] This function gives a temperature at the outlet of 510.896K, id est a T = T outlet T inlet = 510.896K 503.15K = 7.746K. The analytical solution from the formula 1 gives T = 11891.7 m 2 s 2 = 7.772K. 5 Where to go from here? 1530 J kg K There are numerous interesting aspects in polymer processing simulations that can be added to simplefoam or other OpenFOAM solver, for example: temperature dependend, time dependend or pressure dependend viscosity models to improve the simulation results residence time analysis to identify thermal stress on the polymer flow channel optimization strategies shear rates and shear stresses analysis and much more... 6

. DHCAE Tools UG (limited liability company) Friedrich-Ebert-Str. 368 47800 Krefeld Germany Phone +49 2151 821493 Fax +49 2151 821494