Convective Heat transfer in a vertical slot for the course CFD with OpenSource Software

Size: px
Start display at page:

Download "Convective Heat transfer in a vertical slot for the course CFD with OpenSource Software"

Transcription

1 for the course CFD with OpenSource Software Applied Mechanics/Fluid Dynamics, Chalmers University of Technology, Gothenburg, Sweden December 10, 2016 December 10, /

2 Contents 1 Introduction 2 buoyantboussinesqsimplefoam Solver Description Viscosity Models New viscosity Model Test case 3 buoyantsimplefoam Solver Description Test case December 10, /

3 Natural Convection 2D Natural convection in a vertical slot with two walls at different temperatures. The fluid rises along hot wall, turns at top, sinks down along cold wall and turns again. This forms unicellular motion In the current project, simulations are carried out on the vertical slot of dimensions 300mm high and 15mm wide. December 10, /

4 Overview Description of solver buoyantboussinesqsimplefoam. Description of Viscosity Models. Implementation of new Viscosity model. Test Case using buoyantboussinesqsimplefoam and new viscosity model. Description of buoyantsimplefoam solver. Test case using buoyantsimplefoam. December 10, /

5 buoyantboussinesqsimplefoam-solver Description Solver Organization The solver has following directories buoyantboussinesqsimplefoam.c createfields.h Make files options peqn.h readtransportproperties.h TEqn.H UEqn.H December 10, /

6 buoyantboussinesqsimplefoam-solver Description buoyantboussinesqsimplefoam.c while (simple.loop()) { { #include "UEqn.H" #include "TEqn.H" #include "peqn.h" } laminartransport.correct(); turbulence->correct(); runtime.write(); } December 10, /

7 buoyantboussinesqsimplefoam-solver Description createfields.h Creates Pressure(P rgh ), Velocity(U) and Temperature(T) fields Transport and turbulence properties. Density treated as ρ = 1 β(t T ref ). Turbulent thermal diffusivity (alphat). Dynamic Pressure is treated as p = ρ.g + p rgh Acceleration due to gravity(g) and body force(gh). December 10, /

8 buoyantboussinesqsimplefoam-solver Description UEqn.H: (φu) + U t.(ν eff U).(ν eff ( U)T ) = ( ρ)gh p rgh where ν eff = ν + ν t TEqn.H:.(φT ).α eff T = S radiation + S T Where, α eff = νt pr t + ν pr, S radiation and S T are source terms due to radiation and user defined source term respectively. December 10, /

9 buoyantboussinesqsimplefoam-solver Description PEqn.H: The boundary flux is solved as: φ g = rauf gh ρ Using the boundary flux, the pressure is solved using equation:.rauf p rgh =.φ g Where rauf is 1/U.Eqn.A() interpolated from volume field to face field. The pressure is then calculated as p = p rgh + ρ k gh. Finally velocity is corrected using the updated flux and relaxed pressure. December 10, /

10 Viscosity Model Viscosity models in OpenFoam viscositymodel is a base class. There are five models as derived classes. BirdCarreu CrossPowerLaw HerschelBulkley Newtonian powerlaw December 10, /

11 Viscosity Model Link between transportmodel, turbulencemodel and viscositymodel TransportModel class is the base class for all the turbulence models. singlephasetransportmodel reads the viscosity nu, corrects it and fetches it when it is called in the turbulencemodel class singlephasetransportmodel is a derived class of +viscositymodel. It has a pointer viscositymodelptr which is private member data. class singlephasetransportmodel : public IOdictionary, public transportmodel { // Private Data autoptr<viscositymodel> viscositymodelptr_; December 10, /

12 Viscosity Model The member function nu returns the value of viscosity read from viscositymodel and the member function correct corrects the viscosity Foam::tmp<Foam::volScalarField> Foam::singlePhaseTransportModel::nu() const { return viscositymodelptr_->nu(); } void Foam::singlePhaseTransportModel::correct() { viscositymodelptr_->correct(); } The class turbulencemodel has a private member data transportmodel which returns the value of nu as a volume scalar field. December 10, /

13 New Viscosity Model New Viscosity model Viscosity is function of strain rate in non Newtonian fluids. OpenFoam has four non Newtonian viscosity models. Newtonian model assumes constant viscosity. But viscosity is function of temperature in Newtonian fluids. New model is based on power law. It can be applied to both Newtonian and non Newtonian fluids. Temperature dependency of viscosity has been added based on Vogel s law. ν = k. γ (n 1) = exp(a + For Newtonian fluids, n = 1. B T + C ) γ(n 1) December 10, /

14 New Viscosity Model Steps for new viscosity model Copy powerlaw folder from $FOAM_SRC/transportModels/incompressible/viscosityModels. Copy Make from $FOAM_SRC/transportModels/incompressible/Make Modify the name and path of the library in the files directory and add necessary lninclude files in options directory Include temperature based viscosity law in powerlaw.c Add additional private data members in powerlaw.h Replace powerlaw by new name templaw in all the above files and also rename the.c and.h files. Compile by wmake libso December 10, /

15 Test Case Test Case The already available tutorial hotroom is used to implement the case of verticalslot. M esh Generation: The blockmeshdict file in system directory has to be modified as per required geometry. blockmesh command is used for mesh generation. The mesh has four patches of type wall namely hot, cold and topandbottom. The frontandback has the empty patches. December 10, /

16 Test Case Boundary Conditions : The 0/ directory has eight directories. alphat, k, epsilon, nut, p_rgh, p, U and T. These files have to be modified since the patches of our mesh is different from that of the default tutorial. Internal Field uniform (0,0,0) boundaryfield hot noslip Velocity Boundary condition cold noslip frontandback empty topandbottom noslip December 10, /

17 Test Case Temperature Boundary condition Internal Field fixedvalue 298 boundaryfield hot 323 cold 273 frontandback empty topandbottom zerogradient Two additional files v2 and f have to be created for implementing v2f turbulence model. The dimensions of v2 is m 2 /s 2 and f is 1/s and v2wallfunction and fwallfunction are used at walls respectively. December 10, /

18 Test Case constant/transportproperties transportmodel templaw; templawcoeffs { m m [ ] 1; A A [ ] -2.2; B B [ ] 812.9; C C [ ] -140; n n [ ] 1; numin numin [ ] 5e-6; numax numax [ ] 5.5e-5; } The turbulence model has to be changed from kepsilon to v2f in constant/turbulenceproperties. December 10, /

19 Test Case Solution Control Add the following in system/controldict libs ( "libusertemplaw.so" ); Add the following in divschemes in system/fvschemes div(phi,v2) div(phi,f) bounded Gauss upwind; bounded Gauss upwind; December 10, /

20 Test Case Solution Control Adding a solver for f under solvers section in system/fvsolution f { } solver PCG; preconditioner DIC; tolerance 1e-5; reltol 0.1; Replace (k epsilon R) as (k epsilon v2 f) under SIMPLE and relaxationfactor in system/fvsolution. December 10, /

21 Test Case Results The case can be run using buoyantboussinesqsimplefoam. The results can be checked using parafoam. Temperature Viscosity December 10, /

22 Test Case Results Velocity December 10, /

23 Solver Description buoyantsimplefoam /buoyantsimplefoam buoyantsimplefoam.c createfieldrefs.h createfields.h EEqn.H Make files options peqn.h UEqn.H December 10, /

24 Solver Description CreateFields.H In createfields, class rhothermo.h is used which is a thermophysical model belonging to thermophysical model library. The temperature is not solved directly, thus it is not created as a filed in createfields.h. Instead enthalpy or internal energy are considered based on energy model chosen. Since the density change is being accounted, it is created as field in createfields.h. December 10, /

25 Solver Description Governing Equations UEqn.H: (φu) + ρu t EEqn.H:.(µ eff U).(µ eff ( U)T ) = ( ρ) p rgh.(φh e ) +.(φ(0.5 U + p ρ )).α eff T = S radiation + S h Where S radiation and S h are radiation and user defined source terms respectively. December 10, /

26 Solver Description PEqn.H The flux at boundaries are calculated and then equation for pressure is solved and relaxed. φ g = ρ.rauf.g.h ρ.ρrauf p rgh =.φ g Velocity is corrected based on boundary flux and pressure relaxation. December 10, /

27 Solver Description Thermophysical properties The solver accesses thermophysicalproperties dictionary to get all the thermophysical properties. The thermophysical models available in OpenFoam are psithermo, rhothermo, rhoreactionthermo psiureactionthermo, rhoreactionthermo, multiphasereactiont buoyantsimplefoam uses rhothermo to access the thermophysical properties. It is a density based model. December 10, /

28 Solver Description Thermophysical properties thermotype { type herhothermo; mixture puremixture; transport constant; thermo hconst; equationofstate perfectgas; specie specie; energy sensibleenthalpy; } Mixture specifies mixture composition. puremixture is used to specify a mixture without any reaction. December 10, /

29 Solver Description Thermophysical properties transport specifies the transport model to be used. The transport model evaluate properties like dynamic viscosity, thermal conductivity and thermal diffusivity. thermo specifies the type of thermodynamic model used. hthermo assumes contant cp. The equations of state available in the thermophysical library are rhoconst, perfectgas, incompressibleperfectgas, perfectfluid etc. Density is calculated based on these equations. The form of energy used in specified through this. sensibleenthalpy and sensibleinternalenergy are few examples. December 10, /

30 Test Case Test Case The tutorial buoyantcavity is used as a base for this case. The mesh for this case is similar to that used in the previous case. Same blockmeshdict file is used. The boundary conditions used for this case is similar to previous case. Except that the wall function used for alphat is compressible::alphatwallfunction;. Also v2 and f files are added to implement v2f turbulence model. December 10, /

31 Test Case ThermophysicalProperties In constant/thermophysicalproperties, mixture specie { nmoles 1; molweight ; } thermodynamics { Cp 1600; Hf 0; } transport { mu 5e-05; Pr 0.9; } December 10, /

32 Test Case Solution Control The fvschemes and fvsolution directories in system are modified similarly as done in previous case to add v2 and f. The case is run using buoyantsimplefoam and results can be checked using parafoam. December 10, /

33 Test Case Results Temperature Velocity December 10, /

34 Test Case Questions?? Thank You December 10, 2016 /

Tutorial of convective heat transfer in a vertical slot

Tutorial of convective heat transfer in a vertical slot Cite as: Venkatesh, B V.: Tutorial of convective heat transfer in a vertical slot. In Proceedings of CFD with OpenSource Software, 2016, Edited by Nilsson. H., http://www.tfd.chalmers.se/~hani/kurser/os_cfd_2016

More information

Modifying buoyantpimplefoam for the Simulation of Solid-Liquid Phase Change with Temperature-dependent Thermophysical Properties

Modifying buoyantpimplefoam for the Simulation of Solid-Liquid Phase Change with Temperature-dependent Thermophysical Properties Modifying buoyantpimplefoam for the Simulation of Solid-Liquid Phase Change with Temperature-dependent Thermophysical Properties Daniel Hummel Ostbayerische Technische Hochschule (OTH) Amberg-Weiden Friedrich-Alexander

More information

Tutorial Two Built in Mesh

Tutorial Two Built in Mesh Built in Mesh 4 th edition, Jan. 2018 This offering is not approved or endorsed by ESI Group, ESI-OpenCFD or the OpenFOAM Foundation, the producer of the OpenFOAM software and owner of the OpenFOAM trademark.

More information

myenginefoam Implementation of different combustion model and newjanafthermo model

myenginefoam Implementation of different combustion model and newjanafthermo model myenginefoam Implementation of different and Lorenzo Bartolucci Department of Industrial Engineering University of Rome Tor Vergata Italy 28/11/2014 Lorenzo Bartolucci myenginefoam 1 Outline: implementation

More information

A interphasechangefoam tutorial

A interphasechangefoam tutorial CFD with OpenSource software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: A interphasechangefoam tutorial Developed for OpenFOAM-2.0.x Author: Martin Andersen Peer

More information

OpenFOAM case: Mixing

OpenFOAM case: Mixing OpenFOAM case: Mixing nelson.marques@fsdynamics.pt; bruno.santos@fsdynamics.pt 30 th September 1 st October 2017 optim ises you rtec hnology 2 1 1. Case Description Overview Solver selection 2. Meshing

More information

Hands-On Training with OpenFOAM

Hands-On Training with OpenFOAM Hands-On Training with OpenFOAM Flow Around a 2-D Airfoil Hrvoje Jasak hrvoje.jasak@fsb.hr Faculty of Mechanical Engineering and Naval Architecture University of Zagreb, Croatia Hands-On Training with

More information

ENG ME702: Computational Fluid Mechanics (Fall 2016) Final Project

ENG ME702: Computational Fluid Mechanics (Fall 2016) Final Project ENG ME702: Computational Fluid Mechanics (Fall 2016) Final Project Shock Tube with rhocentralfoam, sonicfoam, Lax-Friedrichs and MacCormacks Ankush Gupta (U01997897) Submitted on: December 20, 2016 Submitted

More information

Implementation of soot model for aachenbomb tutorial

Implementation of soot model for aachenbomb tutorial CFD WITH OPENSOURCE SOFTWARE A COURSE AT CHALMERS UNIVERSITY OF TECHNOLOGY TAUGHT BY HÅKAN NILSSON Project work: Implementation of soot model for aachenbomb tutorial Developed for OpenFOAM-3.0.x Author:

More information

OpenFOAM. q Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries.

OpenFOAM. q Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries. OpenFOAM q Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries. q Flexible set of efficient C++ modules---object-oriented. q Use Finite-Volume Method (FVM) to solve systems

More information

Introduction to the Computer Exercices Turbulence: Theory and Modelling R.Z. Szasz, Energy Sciences, LTH Lund University

Introduction to the Computer Exercices Turbulence: Theory and Modelling R.Z. Szasz, Energy Sciences, LTH Lund University Introduction to the Computer Exercices Turbulence: Theory and Modelling R.Z. Szasz, Energy Sciences, LTH Lund University Outline VERY short CFD introduction Steps of problem solving The software used:

More information

Tutorial Four Discretization Part 1

Tutorial Four Discretization Part 1 Discretization Part 1 4 th edition, Jan. 2018 This offering is not approved or endorsed by ESI Group, ESI-OpenCFD or the OpenFOAM Foundation, the producer of the OpenFOAM software and owner of the OpenFOAM

More information

interphasechangefoam

interphasechangefoam interphasechangefoam This assignment is solved in OpenFOAM 2.0.x. How to apply a heat source to interphasechangefoam to evaporate water. In this presentation will go through the following steps: Short

More information

A detailed description of reactingtwophaseeulerfoam focussing on the link between heat and mass transfer at the interface

A detailed description of reactingtwophaseeulerfoam focussing on the link between heat and mass transfer at the interface A detailed description of reactingtwophaseeulerfoam focussing on the link between heat and mass transfer at the interface Darren Cappelli Solid State Pharmaceutical Cluster, University College Dublin,

More information

Implementation of a myinterfoamdiabatic Solver with OpenFOAM

Implementation of a myinterfoamdiabatic Solver with OpenFOAM CFD with OpenSource Software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: Implementation of a myinterfoamdiabatic Solver with OpenFOAM Developed for OpenFOAM-1.7.x

More information

Adding the scalar transport equation to icofoam

Adding the scalar transport equation to icofoam Let us modify a solver, we will work with icofoam. We will add a passive scalar convection-diffusion equation). At this point, you can work in any directory. But we recommend you to work in your OpenFOAM

More information

OpenFOAM Tutorial. [ ] Numerical Methods in Fluid Dynamics. Finite Volume Method, Dictionary Syntax, and Implementation Details

OpenFOAM Tutorial. [ ] Numerical Methods in Fluid Dynamics. Finite Volume Method, Dictionary Syntax, and Implementation Details [302.044] Numerical Methods in Fluid Dynamics Tutorial Finite Volume Method, Dictionary Syntax, and Implementation Details Univ. Assist. MSc. Francesco Romanò francesco.romano@tuwien.ac.at December 11th,

More information

Presentation slides for the course CFD with OpenSource Software 2015

Presentation slides for the course CFD with OpenSource Software 2015 Presentation slides for the course CFD with OpenSource Software 2015 Sebastian Kohlstädt Applied Mechanics/Fluid Dynamics, Chalmers University of Technology, Gothenburg, Sweden 2015-12-08 Sebastian Kohlstädt

More information

Solving electric field using Maxwell s equations and compressibleinterfoam solver

Solving electric field using Maxwell s equations and compressibleinterfoam solver CFD with OpenSource software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: Solving electric field using Maxwell s equations and compressibleinterfoam solver OpenFOAM-2.2.x

More information

OpenFOAM. in wastewater applications: 2 - Getting Started th June 2015

OpenFOAM. in wastewater applications: 2 - Getting Started th June 2015 OpenFOAM in wastewater applications: 2 - Getting Started n elson.marques@bluecape.com.pt 13-14 th June 2015 Progress Introduction OpenFOAM characterization bluecfd installation Getting started Simulation

More information

CCP-WSI Programming Day : Course Notes

CCP-WSI Programming Day : Course Notes CCP-WSI Programming Day : Course Notes Learning Outcomes: Modifying, writing and compiling OpenFOAM apps, model (shared object) libraries for runtime selection. These notes accompny the code examples which

More information

OpenFOAM Tutorials: Programming Session

OpenFOAM Tutorials: Programming Session OpenFOAM Tutorials: Programming Session Hrvoje Jasak and Henrik Rusche h.jasak@wikki.co.uk, h.rusche@wikki-gmbh.de Wikki, United Kingdom and Germany Advanced Training at the OpenFOAM Workshop 21.6.2010,

More information

Tutorial: Heat and Mass Transfer with the Mixture Model

Tutorial: Heat and Mass Transfer with the Mixture Model Tutorial: Heat and Mass Transfer with the Mixture Model Purpose The purpose of this tutorial is to demonstrate the use of mixture model in FLUENT 6.0 to solve a mixture multiphase problem involving heat

More information

A simple validation case Hagen-Poiseuille solution

A simple validation case Hagen-Poiseuille solution Hagen-Poiseuille solution Re = 100 Incompressible flow Physical and numerical side of the problem: The governing equations of the problem are the incompressible laminar Navier-Stokes equations. We are

More information

Adapting chtmultiregionsimplefoam to include the effects of a rotating frame of reference and heat source term

Adapting chtmultiregionsimplefoam to include the effects of a rotating frame of reference and heat source term Cite as: Niebles Atencio, B.: Adapting chtmultiregionsimplefoam to include the effects of a rotating frame of reference and heat source term. In Proceedings of CFD with OpenSource Software, 2017, Edited

More information

OpenFOAM Basic Training

OpenFOAM Basic Training OpenFOAM Basic Training 4th edition, Jan. 2018 This offering is not approved or endorsed by ESI Group, ESI-OpenCFD or the OpenFOAM Foundation, the producer of the OpenFOAM software and owner of the OpenFOAM

More information

Introduction to fluid mechanics simulation using the OpenFOAM technology

Introduction to fluid mechanics simulation using the OpenFOAM technology Introduction to fluid mechanics simulation using the OpenFOAM technology «Simulation in porous media from pore to large scale» Part II: Mesh complex geometries, application to the evaluation of permeability,

More information

Write your own solver

Write your own solver Write your own solver Prof Gavin Tabor Friday 25th May 2018 Prof Gavin Tabor Write your own solver Friday 25th May 2018 1 / 16 Writing Apps where to start? Installation directory structure /opt/foam/openfoam

More information

Immersed Boundary Method in FOAM

Immersed Boundary Method in FOAM Immersed Boundary Method in FOAM Theory, Implementation and Use Hrvoje Jasak and Željko Tuković Chalmers University, Gothenburg Faculty of Mechanical Engineering and Naval Architecture, Zagreb Immersed

More information

2. Plane-parallel plates laminar

2. Plane-parallel plates laminar OPENFOAM GUIDE FOR BEGINNERS 2. Plane-parallel plates laminar flow 2.1 Description of the case This first tutorial studies the flow between two plane-parallel plates separated by a distance h so that their

More information

MSc/PhD course in CFD with OpenSource software, 2011

MSc/PhD course in CFD with OpenSource software, 2011 MSc/PhD course in CFD with OpenSource software, 2011 Implementation of lift and drag coefficinets in transient condition Developed for OpenFOAM-1.7-x Håkan Nilsson, Chalmers/ Applied Mechanics/ Fluid Dynamics

More information

Coupling of Serpent Neutron Transport Code to OpenFOAM

Coupling of Serpent Neutron Transport Code to OpenFOAM Coupling of Serpent Neutron Transport Code to OpenFOAM Ashkhen Nalbandyan Center for Nuclear Technologies, Technnical University of Denmark, Roskilde, Denmark 2018-11-29 Ashkhen Nalabndyan Beamer slides

More information

Implementation of an air-entrainment model in interfoam for the course CFD with OpenSource Software

Implementation of an air-entrainment model in interfoam for the course CFD with OpenSource Software Implementation of an air-entrainment model in interfoam for the course CFD with OpenSource Software Silje Kreken Almeland Department of Civil and Environmental Engineering, Norwegian University of Science

More information

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders

Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders Lab 9: FLUENT: Transient Natural Convection Between Concentric Cylinders Objective: The objective of this laboratory is to introduce how to use FLUENT to solve both transient and natural convection problems.

More information

Fully turbulent flow around a sphere using OpenFOAM

Fully turbulent flow around a sphere using OpenFOAM Fully turbulent flow around a sphere using OpenFOAM In this tutorial you will simulate a fully turbulent flow with a Reynolds number of 1 million around a sphere with a radius of 1 m using a given CAD

More information

OpenFOAM and Third Party Structural Solver for Fluid Structure Interaction Simulations

OpenFOAM and Third Party Structural Solver for Fluid Structure Interaction Simulations OpenFOAM and Third Party Structural Solver for Fluid Structure Interaction Simulations Robert L. Campbell rlc138@arl.psu.edu Fluids and Structural Mechanics Office Applied Research Laboratory The Pennsylvania

More information

Notes on OpenFOAM cases. Daniel Duque Dep. Ciencias Aplicadas a la Ingeniería Naval ETSIN, UPM

Notes on OpenFOAM cases. Daniel Duque Dep. Ciencias Aplicadas a la Ingeniería Naval ETSIN, UPM Notes on OpenFOAM cases Daniel Duque Dep. Ciencias Aplicadas a la Ingeniería Naval ETSIN, UPM October 11, 2012 Contents 1 Setup 2 1.1 Installation............................ 2 1.2 Session setup...........................

More information

How to implement a new boundary condition

How to implement a new boundary condition How to implement a new boundary condition Håkan Nilsson, Chalmers / Applied Mechanics / Fluid Dynamics 1 How to implement a new boundary condition The implementations of the boundary conditions are located

More information

Tutorial Ten Residence Time Distribution

Tutorial Ten Residence Time Distribution Residence Time Distribution 4 th edition, Jan. 2018 This offering is not approved or endorsed by ESI Group, ESI-OpenCFD or the OpenFOAM Foundation, the producer of the OpenFOAM software and owner of the

More information

A description of isoadvector - a numerical method for improved surface sharpness in two-phase flows

A description of isoadvector - a numerical method for improved surface sharpness in two-phase flows Cite as: Olsson, E.: A description of isoadvector - a numerical method for improved surface sharpness in two-phase flows. In Proceedings of CFD with OpenSource Software, 2017, Edited by Nilsson. H., http://dx.doi.org/10.17196/os_cfd#year_2017

More information

AM119: HW4 and more OpenFOAM tutorials

AM119: HW4 and more OpenFOAM tutorials AM119: HW4 and more OpenFOAM tutorials Prof. Trask April 25, 2016 1 Final assignment: the k ɛ model in Open- Foam In the last two lectures we ve learned a little bit about the ideas behind turbulence modeling.

More information

OpenFOAM. in wastewater applications: 4 - Simulation Process th June 2015

OpenFOAM. in wastewater applications: 4 - Simulation Process th June 2015 OpenFOAM in wastewater applications: 4 - Simulation Process n elson.marques@bluecape.com.pt 13-14 th June 2015 Progress Introduction OpenFOAM characterization bluecfd installation Getting started Simulation

More information

Writing New Boundary Conditions in OpenFOAM

Writing New Boundary Conditions in OpenFOAM Writing New Boundary Conditions in OpenFOAM UK FOAM/OpenFOAM User Day Prof Gavin Tabor 18th April 2016 Aim of todays session... Let s create a new boundary condition in OpenFOAM!! We could do this in several

More information

Implementation of Transport Model into CavitatingFoam to simulate the Cavitation in Diesel Injector Nozzle

Implementation of Transport Model into CavitatingFoam to simulate the Cavitation in Diesel Injector Nozzle Implementation of Transport Model into CavitatingFoam to simulate the Cavitation in Diesel Injector Nozzle Barış BİÇER Energy and Fluid Science Lab. Graduate School of Maritime Sciences, Kobe University,

More information

A modified version of the reactingfoam tutorial for LES

A modified version of the reactingfoam tutorial for LES A modified version of the reactingfoam tutorial for LES PhD course in CFD with OpenSource software, december 2009 Outline change the reactingfoam solver from RAS to LES download the original tutorial from

More information

An Unsteady-Periodic Flow generated by a Oscillating Moving Mesh

An Unsteady-Periodic Flow generated by a Oscillating Moving Mesh CFD with OpenSource software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: An Unsteady-Periodic Flow generated by a Oscillating Moving Mesh Developed for OpenFOAM-2.1.x

More information

How to implement a new boundary condition

How to implement a new boundary condition How to implement a new boundary condition The implementations of the boundary conditions are located in $FOAM_SRC/finiteVolume/fields/fvPatchFields/ To add a new boundary condition, start by finding one

More information

Pitz-Daily Turbulence Case. Jonathan Russell

Pitz-Daily Turbulence Case. Jonathan Russell Pitz-Daily Turbulence Case Jonathan Russell Content Pitz-Daily Problem 1) Description of the Case 2) Hypothesis 3) Physics of the problem 4) Preprocessing a. Mesh Generation b. Initial/Boundary Conditions

More information

Implementing third order compressible flow solver for hexahedral meshes in OpenFoam

Implementing third order compressible flow solver for hexahedral meshes in OpenFoam Tutorial/Report in OpenFoam Course 8 Implementing third order compressible flow solver for hexahedral meshes in OpenFoam Martin Olausson, Chalmers University of Technology, SE-1 9 Gothenburg, Sweden Abstract

More information

Evoking existing function objects and creating new user-defined function objects for Post- Processing

Evoking existing function objects and creating new user-defined function objects for Post- Processing Cite as: Sankar Raju.N : Evoking existing function objects and creating new user-defined function objects for Post- Processing. In Proceedings of CFD with OpenSource Software, 2017, Edited by Nilsson.

More information

Tutorial: Modeling Liquid Reactions in CIJR Using the Eulerian PDF transport (DQMOM-IEM) Model

Tutorial: Modeling Liquid Reactions in CIJR Using the Eulerian PDF transport (DQMOM-IEM) Model Tutorial: Modeling Liquid Reactions in CIJR Using the Eulerian PDF transport (DQMOM-IEM) Model Introduction The purpose of this tutorial is to demonstrate setup and solution procedure of liquid chemical

More information

A look inside icofoam (and pisofoam) Håkan Nilsson, Chalmers / Applied Mechanics / Fluid Dynamics 235

A look inside icofoam (and pisofoam) Håkan Nilsson, Chalmers / Applied Mechanics / Fluid Dynamics 235 A look inside icofoam (and pisofoam) Håkan Nilsson, Chalmers / Applied Mechanics / Fluid Dynamics 235 A look inside icofoam TheicoFoam directory consists of the following: createfields.h Make/ icofoam.c

More information

A Novel Approach to High Speed Collision

A Novel Approach to High Speed Collision A Novel Approach to High Speed Collision Avril Slone University of Greenwich Motivation High Speed Impact Currently a very active research area. Generic projectile- target collision 11 th September 2001.

More information

reactingfoam Solver to Calculate Radiative Heat Transfer

reactingfoam Solver to Calculate Radiative Heat Transfer reactingfoam Solver Calculate Radiative Heat Transfer By: Sajjad Haider Assignment for the Course CFD with OpenSource software, 2011 Chalmers University of Technology In some combustion devices, involving

More information

Tutorial Turbulent Flow and Minor Loss through a Pipe Elbow, Page 1 Pointwise to OpenFOAM Tutorial Minor Losses through a Pipe Elbow

Tutorial Turbulent Flow and Minor Loss through a Pipe Elbow, Page 1 Pointwise to OpenFOAM Tutorial Minor Losses through a Pipe Elbow Tutorial Turbulent Flow and Minor Loss through a Pipe Elbow, Page 1 Pointwise to OpenFOAM Tutorial Minor Losses through a Pipe Elbow Introduction This tutorial provides instructions for meshing an internal

More information

CFD with OpenFOAM Andreu Oliver González 14/12/2009

CFD with OpenFOAM Andreu Oliver González 14/12/2009 CFD with OpenFOAM Andreu Oliver González 14/12/2009 Introduction Mesh motion approaches and classes Procedure to define a mesh with motion Explanation of dynamicinkjetfvmesh class Modification of dynamicinkjetfvmesh

More information

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

Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow Tutorial 1. Introduction to Using FLUENT: Fluid Flow and Heat Transfer in a Mixing Elbow Introduction This tutorial illustrates the setup and solution of the two-dimensional turbulent fluid flow and heat

More information

Integrated analysis of the scavenging process in marine two-stroke diesel engines

Integrated analysis of the scavenging process in marine two-stroke diesel engines Integrated analysis of the scavenging process in marine two-stroke diesel engines Gothenburg regional OpenFOAM user group meeting. 13 november 2013 Fredrik H. Andersen, Industrial Ph.D. student Process

More information

Coupled Motion of Two Floating Objects. Minghao Wu

Coupled Motion of Two Floating Objects. Minghao Wu Project assignment for the course CFD with OpenSource Software, 2015 Minghao Wu Department of Shipping and Marine Technology Chalmers University of Technology Introduction Introduction of the topic Environment:

More information

How to implement a new boundary condition

How to implement a new boundary condition How to implement a new boundary condition The implementations of the boundary conditions are located in $FOAM_SRC/finiteVolume/fields/fvPatchFields/ Toaddanewboundarycondition,startbyfindingonethatdoesalmostwhatyouwant.

More information

A look inside icofoam (and pisofoam)

A look inside icofoam (and pisofoam) A look inside icofoam (and pisofoam) Håkan Nilsson, Chalmers / Mechanics and Maritime Sciences / Fluid Dynamics 1 A look inside icofoam TheicoFoam directory ($FOAM_SOLVERS/incompressible/icoFoam) consists

More information

MATHEMATICAL MODELING OF SILICON SINGLE CRYSTAL INDUSTRIAL GROWTH

MATHEMATICAL MODELING OF SILICON SINGLE CRYSTAL INDUSTRIAL GROWTH MATHEMATICAL MODELING OF SILICON SINGLE CRYSTAL INDUSTRIAL GROWTH Dr. Andris Muižnieks, Dr. Andis Rudevičs, Dr. Armands Krauze, BSc. Vadims Suškovs, BSc. Kirils Surovovs, BSc. Kārlis Janisels 1. Introduction

More information

Optimization of parameter settings for GAMG solver in simple solver

Optimization of parameter settings for GAMG solver in simple solver Optimization of parameter settings for GAMG solver in simple solver Masashi Imano (OCAEL Co.Ltd.) Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Test cluster condition Hardware: SGI Altix ICE8200

More information

Roll Motion of a Box and Interaction with Free-Surface

Roll Motion of a Box and Interaction with Free-Surface CHALMERS UNIVERSITY OF TECHNOLOGY Project work for the PhD course in CFD WITH OPEN SOURCE SOFTWARE Roll Motion of a Box and Interaction with Free-Surface Author: Arash Eslamdoost arash.eslamdoost@chalmers.se

More information

Fluid Dynamics Software Lab. Flow past an airfoil

Fluid Dynamics Software Lab. Flow past an airfoil Second Summer School on Embodied Intelligence Simulation and Modelling within Embodied Intelligence 27 June - 1 July 2011, Zürich, Switzerland Dr Asimina Kazakidi Foundation for Research and Technology

More information

Object-Oriented CFD Solver Design

Object-Oriented CFD Solver Design Object-Oriented CFD Solver Design Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd. United Kingdom 10/Mar2005 Object-Oriented CFD Solver Design p.1/29 Outline Objective Present new approach to software design

More information

Non-Newtonian Transitional Flow in an Eccentric Annulus

Non-Newtonian Transitional Flow in an Eccentric Annulus Tutorial 8. Non-Newtonian Transitional Flow in an Eccentric Annulus Introduction The purpose of this tutorial is to illustrate the setup and solution of a 3D, turbulent flow of a non-newtonian fluid. Turbulent

More information

Folder structure and pre-defined File Names in OpenFOAM

Folder structure and pre-defined File Names in OpenFOAM Folder structure and re-defined File Names in OenFOAM Folder Sub-Folders Files / Folder Files / Folder Files / Folder Files / Folder Exlanation constant/ Allclean Allrun olymesh/ - - - oints File to remove

More information

Modeling External Compressible Flow

Modeling External Compressible Flow Tutorial 3. Modeling External Compressible Flow Introduction The purpose of this tutorial is to compute the turbulent flow past a transonic airfoil at a nonzero angle of attack. You will use the Spalart-Allmaras

More information

Open Source Computational Fluid Dynamics

Open Source Computational Fluid Dynamics Open Source Computational Fluid Dynamics An MSc course to gain extended knowledge in Computational Fluid Dynamics (CFD) using open source software. Zoltán Hernádi Department of Fluid Mechanics Budapest

More information

Force based motion of a submerged object using immersed boundary method

Force based motion of a submerged object using immersed boundary method Cite as: Siggeirsson, E.M.V.: Force based motion of a submerged object using immersed boundary metod. In Proceedings of CFD with OpenSource Software, 2016, http://www.tfd.chalmers.se/~hani/kurser/os_cfd_2016

More information

Implementing an application from scratch

Implementing an application from scratch Let us do a little bit of high level programming, this is the hard part of working with OpenFOAM. At this point, you can work in any directory. But we recommend you to work in your OpenFOAM user directory,

More information

Open FOAM. The Open Source CFD Toolbox. User Guide

Open FOAM. The Open Source CFD Toolbox. User Guide Open FOAM The Open Source CFD Toolbox User Guide Version 1.6 24th July 2009 U-2 Copyright c 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 OpenCFD Limited. Permission is granted to copy, distribute

More information

AM119: Yet another OpenFoam tutorial

AM119: Yet another OpenFoam tutorial AM119: Yet another OpenFoam tutorial Prof. Trask April 11, 2016 1 Todays project Today we re going to implement a projection method for the Navier-Stokes, learn how to build a mesh, and explore the difference

More information

Setting up the watersprinkler case

Setting up the watersprinkler case Setting up the watersprinkler case The modifications should be done using the dambreak case, therefore we should copy it to a new directory run mkdir sprinkler cp -r $FOAM_TUTORIALS/multiphase/interFoam/laminar/damBreak

More information

Pre-compiled applications and utilities in OpenFOAM

Pre-compiled applications and utilities in OpenFOAM Pre-compiled applications and utilities in OpenFOAM Tommaso Lucchini Department of Energy Politecnico di Milano Learning outcome You will learn... the meaning of the words applications, solvers, and utilities

More information

OpenFOAM Programming the basic classes

OpenFOAM Programming the basic classes OpenFOAM Programming the basic classes Prof Gavin Tabor Friday 25th May 2018 Prof Gavin Tabor OpenFOAM Programming the basic classes Friday 25th May 2018 1 / 30 OpenFOAM : Overview Overview : programming

More information

CEE 618 Scientific Parallel Computing (Lecture 10)

CEE 618 Scientific Parallel Computing (Lecture 10) 1 / 20 CEE 618 Scientific Parallel Computing (Lecture 10) Computational Fluid Mechanics using OpenFOAM: Cavity (2) Albert S. Kim Department of Civil and Environmental Engineering University of Hawai i

More information

Simulation of a Non-Physical Barrier in the Brandon Road Lock and Dam Approach Channel

Simulation of a Non-Physical Barrier in the Brandon Road Lock and Dam Approach Channel Simulation of a Non-Physical Barrier in the Brandon Road Lock and Dam Approach Channel by Andrew Bell, David L. Smith, and Matthew Farthing PURPOSE: This Engineer Research and Development Center (ERDC)

More information

Free Surface Flow Simulations

Free Surface Flow Simulations Free Surface Flow Simulations Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd. United Kingdom 11/Jan/2005 Free Surface Flow Simulations p.1/26 Outline Objective Present two numerical modelling approaches for

More information

Instructional workshop on OpenFOAM programming LECTURE # 4

Instructional workshop on OpenFOAM programming LECTURE # 4 Instructional workshop on OpenFOAM programming LECTURE # 4 Pavanakumar Mohanamuraly April 26, 2014 Outline Time derivative User defined boundary conditions - part I ddt operator fvc and fvm versions of

More information

Flow and Heat Transfer in a Mixing Elbow

Flow and Heat Transfer in a Mixing Elbow Flow and Heat Transfer in a Mixing Elbow Objectives The main objectives of the project are to learn (i) how to set up and perform flow simulations with heat transfer and mixing, (ii) post-processing and

More information

OpenFOAM: Open Platform for Complex Physics Simulations

OpenFOAM: Open Platform for Complex Physics Simulations OpenFOAM: Open Platform for Complex Physics Simulations Hrvoje Jasak h.jasak@wikki.co.uk, hrvoje.jasak@fsb.hr FSB, University of Zagreb, Croatia Wikki Ltd, United Kingdom 18th October 2007 OpenFOAM: Open

More information

Numerical Modelling in Continuum Mechanics

Numerical Modelling in Continuum Mechanics Numerical Modelling in Continuum Mechanics Hrvoje Jasak h.jasak@wikki.co.uk Wikki Ltd. United Kingdom 22/Mar/2005 Numerical Modelling in Continuum Mechanics p.1/31 Outline Objective Present a new way of

More information

RANS Simulations using OpenFOAM Software

RANS Simulations using OpenFOAM Software RANS Simulations using OpenFOAM Software D.A. Jones 1, M. Chapuis 3, M. Liefvendahl 3, D. Norrison 1, and R. Widjaja 2 1 Maritime Division 2 Aerospace Division Defence Science and Technology Group 3 Defense

More information

Tutorial 17. Using the Mixture and Eulerian Multiphase Models

Tutorial 17. Using the Mixture and Eulerian Multiphase Models Tutorial 17. Using the Mixture and Eulerian Multiphase Models Introduction: This tutorial examines the flow of water and air in a tee junction. First you will solve the problem using the less computationally-intensive

More information

c Fluent Inc. May 16,

c Fluent Inc. May 16, Tutorial 1. Office Ventilation Introduction: This tutorial demonstrates how to model an office shared by two people working at computers, using Airpak. In this tutorial, you will learn how to: Open a new

More information

Automatic Hex-Dominant Mesh Generation for CFD Analysis of Formula One Car with cfmeshpro

Automatic Hex-Dominant Mesh Generation for CFD Analysis of Formula One Car with cfmeshpro Automatic Hex-Dominant Mesh Generation for CFD Analysis of Formula One Car with cfmeshpro Alen Cukrov and Franjo Juretić Creative Fields Ltd, X Vrbik 4, 10000 Zagreb, Croatia 1 Introduction This report

More information

Descriptions and comparisons of sprayfoam, reactingparcelfoam, and basicspraycloud, basicreactingcloud

Descriptions and comparisons of sprayfoam, reactingparcelfoam, and basicspraycloud, basicreactingcloud CFD with OpenSource software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: Descriptions and comparisons of sprayfoam, reactingparcelfoam, and basicspraycloud, basicreactingcloud

More information

How to implement an application

How to implement an application How to implement an application Håkan Nilsson, Chalmers / Mechanics and Maritime Sciences / Fluid Dynamics 1 Prerequisites How to implement an application You are familiar with the directory structure

More information

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution.

Use 6DOF solver to calculate motion of the moving body. Create TIFF files for graphic visualization of the solution. Introduction The purpose of this tutorial is to provide guidelines and recommendations for setting up and solving a moving deforming mesh (MDM) case along with the six degree of freedom (6DOF) solver and

More information

Studies of the ERCOFTAC Centrifugal Pump with OpenFOAM

Studies of the ERCOFTAC Centrifugal Pump with OpenFOAM Title 1/20 Studies of the ERCOFTAC Centrifugal Pump with OpenFOAM Olivier Petit Håkan Nilsson Outline Outline Geometry Boundary conditions Method and cases Comparison of numerical results with the available

More information

How TMG Uses Elements and Nodes

How TMG Uses Elements and Nodes Simulation: TMG Thermal Analysis User's Guide How TMG Uses Elements and Nodes Defining Boundary Conditions on Elements You create a TMG thermal model in exactly the same way that you create any finite

More information

MESHLESS SOLUTION OF INCOMPRESSIBLE FLOW OVER BACKWARD-FACING STEP

MESHLESS SOLUTION OF INCOMPRESSIBLE FLOW OVER BACKWARD-FACING STEP Vol. 12, Issue 1/2016, 63-68 DOI: 10.1515/cee-2016-0009 MESHLESS SOLUTION OF INCOMPRESSIBLE FLOW OVER BACKWARD-FACING STEP Juraj MUŽÍK 1,* 1 Department of Geotechnics, Faculty of Civil Engineering, University

More information

Multiphysics simulations of nuclear reactors and more

Multiphysics simulations of nuclear reactors and more Multiphysics simulations of nuclear reactors and more Gothenburg Region OpenFOAM User Group Meeting Klas Jareteg klasjareteg@chalmersse Division of Nuclear Engineering Department of Applied Physics Chalmers

More information

Grid. Apr 09, 1998 FLUENT 5.0 (2d, segregated, lam) Grid. Jul 31, 1998 FLUENT 5.0 (2d, segregated, lam)

Grid. Apr 09, 1998 FLUENT 5.0 (2d, segregated, lam) Grid. Jul 31, 1998 FLUENT 5.0 (2d, segregated, lam) Tutorial 2. Around an Airfoil Transonic Turbulent Flow Introduction: The purpose of this tutorial is to compute the turbulent flow past a transonic airfoil at a non-zero angle of attack. You will use the

More information

Tutorial to simulate a thermoelectric module with heatsink in ANSYS

Tutorial to simulate a thermoelectric module with heatsink in ANSYS Tutorial to simulate a thermoelectric module with heatsink in ANSYS Few details can be found in the pictures attached. All the material properties can be found in Dr. Lee s book and on the web. Don t blindly

More information

A COUPLED FINITE VOLUME SOLVER FOR THE SOLUTION OF LAMINAR TURBULENT INCOMPRESSIBLE AND COMPRESSIBLE FLOWS

A COUPLED FINITE VOLUME SOLVER FOR THE SOLUTION OF LAMINAR TURBULENT INCOMPRESSIBLE AND COMPRESSIBLE FLOWS A COUPLED FINITE VOLUME SOLVER FOR THE SOLUTION OF LAMINAR TURBULENT INCOMPRESSIBLE AND COMPRESSIBLE FLOWS L. Mangani Maschinentechnik CC Fluidmechanik und Hydromaschinen Hochschule Luzern Technik& Architektur

More information

Flow prediction in brain aneurysms using OpenFOAM. M. de Groot

Flow prediction in brain aneurysms using OpenFOAM. M. de Groot Flow prediction in brain aneurysms using OpenFOAM M. de Groot September 2, 204 Abstract Methods to detect aneurysms in the brain have existed for some decades. A relatively new method, 3D rotational angiography

More information

Using a Single Rotating Reference Frame

Using a Single Rotating Reference Frame Tutorial 9. Using a Single Rotating Reference Frame Introduction This tutorial considers the flow within a 2D, axisymmetric, co-rotating disk cavity system. Understanding the behavior of such flows is

More information