Solver Development in OpenFOAM



Similar documents
Auxiliary Processing swak4foam and PyFoam

A simplefoam tutorial

Moving boundary in openfoam

CFD: What is it good for?

OpenFOAM Opensource and CFD

How To Run A Steady Case On A Creeper

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.

A Guide to the free mesh program Discretizer with OpenFOAM for CFD (Computational Fluid Dynamics)

STCE. Outline. Introduction. Applications. Ongoing work. Summary. STCE RWTH-Aachen, Industrial Applications of discrete adjoint OpenFOAM, EuroAD 2014

Steady Flow: Laminar and Turbulent in an S-Bend

Open Source Computational Fluid Dynamics

OpenFOAM open source CFD on ANSELM

Incorporation of OpenFOAM software into Computational Fluid Dynamics process in Volvo Technology

Learning Module 4 - Thermal Fluid Analysis Note: LM4 is still in progress. This version contains only 3 tutorials.

Ravi Kumar Singh*, K. B. Sahu**, Thakur Debasis Mishra***

Mathematical Model of Blood Flow in Carotid Bifurcation. Phd student: Eng. Emanuel Muraca. 16/10/09 Milan

Turbulence Modeling in CFD Simulation of Intake Manifold for a 4 Cylinder Engine

TVM 4155 Numerical modelling and hydraulics 10. March OpenFOAM homework

Multi-Objective Ant Colony Optimization for Solving the Twin- Screw Extrusion Configuration Problem

Lecture 6 - Boundary Conditions. Applied Computational Fluid Dynamics

Simple beginning 3D OpenFOAM Tutorial

OpenFOAM postprocessing and advanced running options

NUMERICAL SIMULATION OF FLOW FIELDS IN CASE OF FIRE AND FORCED VENTILATION IN A CLOSED CAR PARK

Heat Transfer by Free Convection

Flow in data racks. 1 Aim/Motivation. 3 Data rack modification. 2 Current state. EPJ Web of Conferences 67, (2014)

A COMPUTATIONAL FLUID DYNAMICS STUDY ON THE ACCURACY OF HEAT TRANSFER FROM A HORIZONTAL CYLINDER INTO QUIESCENT WATER

Energy Efficient Data Center Design. Can Ozcan Ozen Engineering Emre Türköz Ozen Engineering

OpenFOAM Tutorial. 4. Units

version 3.0 tutorial - Turbulent mixing in a T-junction with CFDSTUDY in SALOME contact: saturne-support@edf.fr

NUMERICAL ANALYSIS OF THE EFFECTS OF WIND ON BUILDING STRUCTURES

Tutorial 1. Introduction to Using ANSYS FLUENT in ANSYS Workbench: Fluid Flow and Heat Transfer in a Mixing Elbow

Problem Statement In order to satisfy production and storage requirements, small and medium-scale industrial

Self Financed One Week Training

OpenFOAM Optimization Tools

Finding Drag Coefficient using Solidworks Flow Simulation

Battery Thermal Management System Design Modeling

OpenFOAM. The Open Source CFD Toolbox. User Guide

2013 Code_Saturne User Group Meeting. EDF R&D Chatou, France. 9 th April 2013

Navier-Stokes Equation Solved in Comsol 4.1. Copyright Bruce A. Finlayson, 2010 See also Introduction to Chemical Engineering Computing, Wiley (2006).

CFD SIMULATION OF SDHW STORAGE TANK WITH AND WITHOUT HEATER

CFD Based Air Flow and Contamination Modeling of Subway Stations

Using Computational Fluid Dynamics (CFD) for improving cooling system efficiency for Data centers

TWO-DIMENSIONAL FINITE ELEMENT ANALYSIS OF FORCED CONVECTION FLOW AND HEAT TRANSFER IN A LAMINAR CHANNEL FLOW

MODEL TEG-F20. Specification Sheet. TEG-F20 Specification Sheet Ver Copyright(C) 2011 Tsukasa Sokken Co., Ltd.

Model of a flow in intersecting microchannels. Denis Semyonov

CFD Grows Up! Martin W. Liddament Ventilation, Energy and Environmental Technology (VEETECH Ltd) What is Computational Fluid Dynamics?

THE CFD SIMULATION OF THE FLOW AROUND THE AIRCRAFT USING OPENFOAM AND ANSA

Fluid Dynamics and the Navier-Stokes Equation

Computational fluid dynamics (CFD) 9 th SIMLAB Course

Basic Principles in Microfluidics

Monifysikaalisten ongelmien simulointi Elmer-ohjelmistolla. Simulation of Multiphysical Problems with Elmer Software

EXPERIMENTAL ANALYSIS OF HEAT TRANSFER ENHANCEMENT IN A CIRCULAR TUBE WITH DIFFERENT TWIST RATIO OF TWISTED TAPE INSERTS

CFD modelling of floating body response to regular waves

CFD SIMULATION OF IPR-R1 TRIGA SUBCHANNELS FLUID FLOW

Trace Layer Import for Printed Circuit Boards Under Icepak

CFD software overview comparison, limitations and user interfaces

Diffusion and Fluid Flow

Optimization of electronic devices placement on printed circuit board

Keywords: Heat transfer enhancement; staggered arrangement; Triangular Prism, Reynolds Number. 1. Introduction

AN EFFECT OF GRID QUALITY ON THE RESULTS OF NUMERICAL SIMULATIONS OF THE FLUID FLOW FIELD IN AN AGITATED VESSEL

Multiphase Flow - Appendices

Coupling Forced Convection in Air Gaps with Heat and Moisture Transfer inside Constructions

Hardware-Aware Analysis and. Presentation Date: Sep 15 th 2009 Chrissie C. Cui

OpenFOAM simulations of the Turbulent Flow in a Rod Bundle with Mixing Vanes

Exergy Analysis of a Water Heat Storage Tank

CFD Simulation of Subcooled Flow Boiling using OpenFOAM

Introduction to COMSOL. The Navier-Stokes Equations

NUMERICAL INVESTIGATIONS ON HEAT TRANSFER IN FALLING FILMS AROUND TURBULENCE WIRES

HEAT TRANSFER ANALYSIS IN A 3D SQUARE CHANNEL LAMINAR FLOW WITH USING BAFFLES 1 Vikram Bishnoi

Lecture 3 Fluid Dynamics and Balance Equa6ons for Reac6ng Flows

CHEG 3128 Heat, Mass, & Kinetics Laboratory Diffusion in Laminar Flow Regimes Modeling and COMSOL Tutorial Tutorial by Andrea Kadilak

CS 103 Lab Linux and Virtual Machines

Eu-NORSEWInD - Assessment of Viability of Open Source CFD Code for the Wind Industry

This tutorial provides a recipe for simulating L

Mathematical modeling of energy flow in a geothermal reservoir

Numerical Analysis of the Resin Transfer Molding Process via PAM- RTM Software

Finite Difference Approach to Option Pricing

The influence of mesh characteristics on OpenFOAM simulations of the DrivAer model

Understanding Plastics Engineering Calculations

Draft Version. For personal use. c Copyright Máté Márton LOHÁSZ. Tutorial for Channel Flow by LES using Open Source CFD

DECLARATION OF PERFORMANCE NO. HU-DOP_TN _001

Impacts of Perforated Tile Open Areas on Airflow Uniformity and Air Management Performance in a Modular Data Center

Abaqus/CFD Sample Problems. Abaqus 6.10

Engineering Problem Solving as Model Building

DIESEL ENGINE IN-CYLINDER CALCULATIONS WITH OPENFOAM

O.F.Wind Wind Site Assessment Simulation in complex terrain based on OpenFOAM. Darmstadt,

Which strategy to move the mesh in the Computational Fluid Dynamic code OpenFOAM

ANSYS Example: Transient Thermal Analysis of a Pipe Support Bracket

PRESSURE DROP ANALYSIS OF INLET PIPE WITH REDUCER AND WITHOUT REDUCER USING CFD ANALYSIS

Resin Transfer Molding Process: A Numerical Analysis

Modeling and Numerical Blood Flow Analysis of Tibial Artery using CFD

STUDY OF MESH DEFORMATION FEATURES OF AN OPEN SOURCE CFD PACKAGE AND APPLICATION TO A GEAR PUMP SIMULATION

1. Lid driven flow in a cavity [Time: 1 h 30 ]

Modelling and CFD Analysis of Single Stage IP Steam Turbine

Adaptation of General Purpose CFD Code for Fusion MHD Applications*

This offering is not approved or endorsed by OpenCFD Limited, the producer of the OpenFOAM software and owner of the OPENFOAM and OpenCFD trade marks.

Numerical Simulation of the External Flow Field. Around a Bluff Car*

3. Prescribe boundary conditions at all boundary Zones:

Eco Pelmet Modelling and Assessment. CFD Based Study. Report Number R1D1. 13 January 2015

Transcription:

Solver Development in OpenFOAM OpenFOAM Course 2 nd Edition C. Fernandes, L.L. Ferrás, J.M.Nóbrega i3n/ipc Institute for Polymers and Composites, University of Minho, Campus de Azurém, Guimarães, Portugal

El proyecto CloudPYME (id: ) está cofinanciado por la Comisión Europea a través de el Fondo Europeo de Desarrollo Regional (), dentro de la tercera convocatoria de proyectos del Programa Operativo de Cooperación Transfronteriza España-Portugal 2007-2013 (POCTEP).

Outline Modify simplefoam solver to predict temperature evolution Compile utility to compute also any field average and standard deviation Mixing flow Case Study

Modify simplefoam solver Create applications folder in $WM_PROJECT_USER_DIR folder» mkdir $WM_PROJECT_USER_DIR/applications Copy simplefoam solver from $FOAM_SOLVERS folder to the new folder» cp r $FOAM_SOLVERS/incompressible/simpleFoam $WM_PROJECT_USER_DIR/applications Rename new simplefoam folder to simplefoamtemp» cd $WM_PROJECT_USER_DIR /applications» mv simplefoam simplefoamtemp

Modify simplefoam solver Rename the source code file simplefoam.c» cd simplefoamtemp» mv simplefoam.c simplefoamtemp.c Edit files file that is in Make folder to read SimpleFoamTemp.C EXE = $(FOAM_USER_APPBIN)/simpleFoamTemp Return to simplefoamtemp folder and compile the solver (to be sure everything was done properly)» wclean» wmake

Modify simplefoam solver Verify if the new solver was created in $FOAM_USER_APPBIN folder» ls $FOAM_USER_APPBIN New transport equation to solve (viscous dissipation is neglected) ut T 2 diffusion advection (heat conduction) 0 We have to insert the new transport equation in the solver, add a new scalar field T (for temperature) and create the new scalar field DT (that will represent the thermal diffusivity α)

Modify simplefoam solver Analyze and edit createfields.h file» gedit createfields.h Insert the following lines after velocity vector field definition to add the new temperature field (hint: start by copy and paste the pressure field definition lines) Info<< "Reading field T\n" <<endl; volscalarfield T ( IOobject ( "T", runtime.timename(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh );

Modify simplefoam solver Insert the following lines after singlephasetransportmodel definition to define the new DT field Info<< "Reading transportproperties\n" << endl; IOdictionary transportproperties ( IOobject ( "transportproperties", runtime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE ) ); dimensionedscalar DT ( transportproperties.lookup("dt") );

Modify simplefoam solver Analyze and edit simplefoamtemp.c file» gedit simplefoamtemp.c Add the command to insert the resolution of Temperature equation after turbulence->correct(); command» #include TEqn.H Analyze UEqn.H and peqn.h files Create TEqn.H file (hint: start by copying UEqn.H)» cp UEqn.H TEqn.H» gedit TEqn.H

Modify simplefoam solver After editing the TEqn.H file should read (review the new equation to be solved) fvscalarmatrix TEqn ( fvm::div(phi, T) - fvm::laplacian(dt, T) ); TEqn.relax(); TEqn.solve(); Compile the new solver» wclean» wmake

New utility Study patchaveragestd utility located in SHARED solver Compile patchaveragestd utility T nfaces i1 2 i T T A A T i

10 Mixing Flow Case Study Design the best mixing device Fluid inlet 1 T=50 ºC, V av =10 mm/s 50 Fluid inlet 2 T=20 ºC, V av =10 mm/s Adiabatic walls Mesh density 1mm Max ΔP=20 Pa Max Res 1E-6 10 Outlet p=0 Pa z y x (Dimensions in mm) Fluid properties ρ = 1000 kg/m μ = 1E-3 Pa.s 2 =2.34E-7 m /s 3

To-do: Use simplefoam/pitzdaily tutorial as base study; Define laminar flow (constant/rasproperties) Insert DT definition in transportproperties Create new blockmeshdict file Mixing Flow Case Study Generate mesh and check it (checkmesh and parafoam) Remove utility calculations from controldict Define missing discretization schemes (try to run code to identify what is missing) Define System of Equation Solver for Energy Equation (copy pressure solver)

Mixing Flow Case Study For the previous problem study the effect of the Thermal diffusivity on the mixing efficiency T T,max?