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

Size: px
Start display at page:

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

Transcription

1 [ ] Numerical Methods in Fluid Dynamics Tutorial Finite Volume Method, Dictionary Syntax, and Implementation Details Univ. Assist. MSc. Francesco Romanò December 11th, 2014

2 Outline 1 [ ] Univ. Assist. MSc. Francesco Romanò 2/32

3 Description of the Software : Description of the Software The CFD Toolbox is a free, open source CFD software package which solves using a collocation FVM; [ ] Univ. Assist. MSc. Francesco Romanò 3/32

4 Description of the Software : Description of the Software The CFD Toolbox is a free, open source CFD software package which solves using a collocation FVM; It can solve complex fluid flows involving chemical reactions, turbulence and heat transfer, solid dynamics and electromagnetics and includes tools for meshing, preand post-processing; [ ] Univ. Assist. MSc. Francesco Romanò 3/32

5 Description of the Software : Description of the Software The CFD Toolbox is a free, open source CFD software package which solves using a collocation FVM; It can solve complex fluid flows involving chemical reactions, turbulence and heat transfer, solid dynamics and electromagnetics and includes tools for meshing, preand post-processing; Almost everything runs in parallel as standard; [ ] Univ. Assist. MSc. Francesco Romanò 3/32

6 Description of the Software : Description of the Software The CFD Toolbox is a free, open source CFD software package which solves using a collocation FVM; It can solve complex fluid flows involving chemical reactions, turbulence and heat transfer, solid dynamics and electromagnetics and includes tools for meshing, preand post-processing; Almost everything runs in parallel as standard; offers users possibility to customise and extend the existing functionality. [ ] Univ. Assist. MSc. Francesco Romanò 3/32

7 [ ] Univ. Assist. MSc. Francesco Romanò 4/32 : <problem_folder>/constant/polymesh/ initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class dictionary; object ; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

8 [ ] Univ. Assist. MSc. Francesco Romanò 5/32 : <problem_folder>/constant/polymesh/ scaling parameter: converttometers 0.1; vertices: function delimited by parenthesis specifying Cartesian coordinates of the domain vertices 1 : vertices ( (0 0 0) (1 0 0)... ( ) ( ) ); 1 For 2 D cases, it is necessary to indicate suitable BCs.

9 : <problem_folder>/constant/polymesh/ blocks: function specifying how many mesh blocks form the discrete domain and their properties. hex: function specifying the vertices of this block. simplegrading: function specifying how to distribute the mesh. The ratio between the first and the last element of the mesh block is setted 1 for each direction: it means it is used a constant discretization in x, y ( and z ). blocks ( hex( )( )simpleGrading(1 1 1) ); [ ] Univ. Assist. MSc. Francesco Romanò 6/32

10 : <problem_folder>/constant/polymesh/ edges: tool that defines all the non straight edges. edges ( ); edges: There are different sort of definable edges: arc, simplespline, polyline, etc... arc: sort of edge which defines a circular arc, (in this case between nodes 0 and 5, and passing through the point in parenthesis). edges ( arc 0 5 ( ) ); [ ] Univ. Assist. MSc. Francesco Romanò 7/32

11 : <problem_folder>/constant/polymesh/ boundary: function specifying name, type and faces of each sub-bound. They are delimited by curly brackets after each of their name. boundary ( <NameOfTheBoundary> type <TypeOfTheBoundary>; faces ( (<4EdgesOfTheCurrentFace>) ); ); [ ] Univ. Assist. MSc. Francesco Romanò 8/32

12 : <problem_folder>/constant/polymesh/ type: type of the boundary that can be wall, empty, patch, etc... mergepatchpairs: tool that defines a list of patches to be meshed using a reciprocal correspondence of master and slave. mergepatchpairs ( ); // ***************************************** // running commands: <problem\_folder>$ blockmesh [ ] Univ. Assist. MSc. Francesco Romanò 9/32

13 [ ] Univ. Assist. MSc. Francesco Romanò 10/32 : <problem_folder>/0/p initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class volscalarfield; object p; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

14 : <problem_folder>/0/p dimensions of the system: dimensions [ ]; % m^2/s^2 internalfield: it can be uniform (only one value) or not (scalar point-wise field) internalfield uniform 0; [ ] Univ. Assist. MSc. Francesco Romanò 11/32

15 : <problem_folder>/0/p boundaryfield: function containing boundary conditions referred to the name already used creating the mesh. boundaryfield <NameOfTheBoundary> type <TypeOfTheBoundaryCondition>; // ***************************************** // type: type of the boundary condition that can be zerogradient, fixedvalue, empty, etc... [ ] Univ. Assist. MSc. Francesco Romanò 12/32

16 [ ] Univ. Assist. MSc. Francesco Romanò 13/32 : <problem_folder>/0/u initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class volvectorfield; object U; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

17 : <problem_folder>/0/u dimensions of the system: dimensions [ ]; % m/s internalfield: it can be uniform (only one vectorial value) or not (vectorial point-wise field) internalfield uniform (0 0 0); [ ] Univ. Assist. MSc. Francesco Romanò 14/32

18 : <problem_folder>/0/u boundaryfield: function containing boundary conditions referred to the name already used creating the mesh. boundaryfield <NameOfTheBoundary> type <TypeOfTheBoundaryCondition>; // ***************************************** // type: type of the boundary condition that can be zerogradient, fixedvalue, empty, etc... [ ] Univ. Assist. MSc. Francesco Romanò 15/32

19 [ ] Univ. Assist. MSc. Francesco Romanò 16/32 : <problem_folder>/constant/ initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class dictionary; location "constant" object ; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

20 : <problem_folder>/constant/ physical properties of the system 2 : nu nu [ ] 0.01; % m^2/s // **************************************** // 2 In the case of incompressible single-phase flows, just kinematic viscosity has to be defined. Other properties should be eventually included in the dictionary. [ ] Univ. Assist. MSc. Francesco Romanò 17/32

21 [ ] Univ. Assist. MSc. Francesco Romanò 18/32 : <problem_folder>/system/ initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class dictionary; location "system"; object ; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

22 [ ] Univ. Assist. MSc. Francesco Romanò 19/32 : <problem_folder>/system/ application: function that defines the model to use. application icofoam; startfrom: command used to set the initial time of the simulation. In this case the command is startime and, in the next row, it indicates that the simulation has t in = 0. The initial condition is then in a directory named 0. To use a previous calculation, instead of the command starttime, latesttime is used. startfrom starttime; starttime 0;

23 [ ] Univ. Assist. MSc. Francesco Romanò 20/32 : <problem_folder>/system/ stopat: command used to set the final time of the simulation. In this case the command is endtime and indicates that the simulation has t fin =.5. stopat endtime; endtime 0.5; deltat: defines the time step used for the simulation. Numerical stability problems can be due to time and the spatial discretization steps. Theoretically analysing the incompressible flow solver, the stability is controlled by the local Courant number, which has to be less than one. deltat 0.005;

24 [ ] Univ. Assist. MSc. Francesco Romanò 21/32 : <problem_folder>/system/ writecontrol: defines the kind of control used to save data. The command timestep saves each (writeinterval)x(time steps). The storage is in folders created using as name the time of saving. purgewrite: defines a limit on the number of storage directories: if the needed directories are more than the indicator, the previous data are cyclically overwritten. Not to define a limit purgewrite has to be 0. writecontrol timestep; writeinterval 20; purgewrite 0;

25 [ ] Univ. Assist. MSc. Francesco Romanò 22/32 : <problem_folder>/system/ further instruction for saving the data: writeformat ascii; writeprecision 6; writecompression off; timeformat general; timeprecision 6; runtimemodifiable true; // ***************************************** //

26 [ ] Univ. Assist. MSc. Francesco Romanò 23/32 : <problem_folder>/system/ initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class dictionary; location "system"; object ; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

27 [ ] Univ. Assist. MSc. Francesco Romanò 24/32 : <problem_folder>/system/ ddtschemes: contains the information about the method to discretize the temporal derivative. Euler means that the time derivative is discretized using an Implicit Euler scheme. Other options are: CrankNicholson, backward, etc... ddtschemes default Euler;

28 [ ] Univ. Assist. MSc. Francesco Romanò 25/32 : <problem_folder>/system/ gradschemes: contains the information about the selected method to discretize the gradient. Gauss linear means that discretizes the gradient operator with the linear Gaussian method. Another method is the least squares method setting leastsquares instead of Gauss linear. gradschemes default grad(p) Gauss linear; Gauss linear;

29 : <problem_folder>/system/ divschemes and laplacianschemes: contains information about the selected method for discretizing the divergence and laplacian operators. divschemes default div(phi,u) laplacianschemes default none; Gauss linear; none; laplacian(nu,u) Gauss linear orthogonal; laplacian((1 A(U)),p) Gauss linear orthogonal; [ ] Univ. Assist. MSc. Francesco Romanò 26/32

30 [ ] Univ. Assist. MSc. Francesco Romanò 27/32 : <problem_folder>/system/ interpolationschemes: sets the interpolation method. interpolationschemes default linear; interpolate(hbya) linear; sngradschemes: sets the treatment for ( ), n. sngradschemes default orthogonal;

31 [ ] Univ. Assist. MSc. Francesco Romanò 28/32 : <problem_folder>/system/ fluxrequired: sets the information about fields for which is required to calculate a flux. fluxrequired default no; p ; // *************************************** //

32 [ ] Univ. Assist. MSc. Francesco Romanò 29/32 : <problem_folder>/system/ initial banner: /* *- C++ -* *\ ========= \\ / F ield : The Open Source CFD Toolbox \\ / O peration Version: \\ / A nd Web: \\/ M anipulation \* */ FoamFile: sub-dictionary delimited by curly brackets containing code s information: FoamFile version 2.0; format ascii; class dictionary; location "system"; object ; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

33 [ ] Univ. Assist. MSc. Francesco Romanò 30/32 : <problem_folder>/system/ solvers: defines the set-up of the linear solvers. solvers <Var> solver preconditioner tolerance reltol <SolverType>; <PreconditionerType>; <AbsoluteTollerance>; <RelativeTollerance>;

34 : <problem_folder>/system/ <SplittingOperator>: defines the respective treatment of pressure and velocity. PISO ncorrectors 2; nnonorthogonalcorrectors 0; prefcell 0; prefvalue 0; // **************************************** // [ ] Univ. Assist. MSc. Francesco Romanò 31/32

35 a Case : a Case <problem_folder> running a solver in foreground: <problem_folder>$ <solvername> running a solver in background: <problem_folder>$ <solvername> > log & data visualization: <problem_folder>$ parafoam [ ] Univ. Assist. MSc. Francesco Romanò 32/32

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

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

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

Computational Fluid Dynamics on HPC

Computational Fluid Dynamics on HPC Computational Fluid Dynamics on HPC Feng Chen HPC User Services LSU HPC & LONI sys-help@loni.org Louisiana State University Baton Rouge November 05, 2014 Some CFD codes 11/05/2014 Computational Fluid Dynamics

More information

Finite Volume Method: A Crash introduction

Finite Volume Method: A Crash introduction Finite Volume Method: A Crash introduction Before continuing, we want to remind you that this a brief introduction to the FVM. Let us use the general transport equation as the starting point to explain

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

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

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

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

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

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 2.3.0 5th February 2014 U-2 Copyright c 2011-2014 OpenFOAM Foundation. This work is licensed under a Creative Commons Attribution-NonCommercial-

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

Generic external aerodynamic simulation training

Generic external aerodynamic simulation training Generic dynamic simulation move-csc UG www. Inst. Scientific Computing, TU Braunschweig 25.06.2012 1 / 57 Table of contents 1 2 3 4 5 6 7 8 Post-processing 2 / 57 Aim Focus of the presentation to present

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

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

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

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

Lid-driven cavity flow

Lid-driven cavity flow The open source CFD toolbox Home Features Download Documentation Support Training Resources News About us Contact Jobs Legal User Guide Contents 1 Introduction ± 2 Tutorials 2.1 Lid-driv en cav ity f low

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

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

Convective Heat transfer in a vertical slot for the course CFD with OpenSource Software for the course CFD with OpenSource Software Applied Mechanics/Fluid Dynamics, Chalmers University of Technology, Gothenburg, Sweden December 10, 2016 December 10, 2016 1 / Contents 1 Introduction 2 buoyantboussinesqsimplefoam

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

Tips and tricks in OpenFOAM

Tips and tricks in OpenFOAM Where and how should we put more salt and as this is kind of a cooking recipe, it comes with a small warning 1 What I am about to show you is based on my personal experience. To draw these kind of conclusions

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

Solvers for Boussinesq shallow water equations

Solvers for Boussinesq shallow water equations Cite as: Koukounas, D.: Solvers for Boussinesq shallow water equations. In Proceedings of CFD with OpenSource Software, 2017, Edited by Nilsson. H., http://dx.doi.org/10.17196/os_cfd#year_2017 CFD with

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

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

Project work for the PhD course in OpenFOAM

Project work for the PhD course in OpenFOAM Project work for the PhD course in OpenFOAM A tutorial on how to use Dynamic Mesh solver IcoDyMFOAM Performed by: Pirooz Moradnia Contact: pirooz.moradnia@forbrf.lth.se Spring 2008, Göteborg-Sweden Introduction:

More information

Fluent User Services Center

Fluent User Services Center Solver Settings 5-1 Using the Solver Setting Solver Parameters Convergence Definition Monitoring Stability Accelerating Convergence Accuracy Grid Independence Adaption Appendix: Background Finite Volume

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

More tutorials. Håkan Nilsson, Chalmers/ Applied Mechanics/ Fluid Dynamics 67

More tutorials. Håkan Nilsson, Chalmers/ Applied Mechanics/ Fluid Dynamics 67 More tutorials Wewillnowlearnhowtousea(small)numberofusefulutilitiesandlibraries. Some of them are described in the UserGuide and ProgrammersGuide, and some ofthemhavebeendiscussedintheforum. Inyourhomeassignmentyouwillbeaskedtogothroughallthewrittentutorials

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

Instructional workshop on OpenFOAM programming LECTURE # 1

Instructional workshop on OpenFOAM programming LECTURE # 1 Instructional workshop on OpenFOAM programming LECTURE # 1 Pavanakumar Mohanamuraly April 16, 2014 Outline Recap of day 1 OpenFOAM mesh file structure Finite volume mesh - fvmesh Introduction to Field

More information

Open Source Software Course: Assignment 1

Open Source Software Course: Assignment 1 Open Source Software Course: Assignment 1 Mengmeng Zhang Aeronautical and Vehicle Engineering, Royal Insistute of Technology (KTH), Stockholm, Sweden 2012-09-09 Mengmeng Zhang Open Source Software Course

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

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

Mesh generation using blockmesh. blockmesh

Mesh generation using blockmesh. blockmesh Mesh generation using blockmesh blockmesh blockmesh is a multi-block mesh generator. For simple geometries, the mesh generation utility blockmesh can be used. The mesh is generated from a dictionary file

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

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

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

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

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

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

Public Release: Native Overset Mesh in FOAM-Extend

Public Release: Native Overset Mesh in FOAM-Extend Public Release: Native Overset Mesh in FOAM-Extend Vuko Vukčević and Hrvoje Jasak Faculty of Mechanical Engineering and Naval Architecture, Uni Zagreb, Croatia Wikki Ltd. United Kingdom 5th OpenFOAM UK

More information

Computational Fluid Dynamics in OpenFOAM

Computational Fluid Dynamics in OpenFOAM Computational Fluid Dynamics in OpenFOAM Mesh Generation and Quality Rebecca Gullberg December 1, 2017 TKP 4555 Advanced Process Simulation Abstract In this report, three different mesh generation methods

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. Teachers: Miklós Balogh and Zoltán Hernádi Department

More information

CFD Simulation of the Flow around NREL Phase VI Wind Turbine

CFD Simulation of the Flow around NREL Phase VI Wind Turbine University of Massachusetts - Amherst ScholarWorks@UMass Amherst Masters Theses May 2014 - current Dissertations and Theses 2014 CFD Simulation of the Flow around NREL Phase VI Wind Turbine Yang Song University

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

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

1.2 Numerical Solutions of Flow Problems

1.2 Numerical Solutions of Flow Problems 1.2 Numerical Solutions of Flow Problems DIFFERENTIAL EQUATIONS OF MOTION FOR A SIMPLIFIED FLOW PROBLEM Continuity equation for incompressible flow: 0 Momentum (Navier-Stokes) equations for a Newtonian

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

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

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

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak

Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models. C. Aberle, A. Hakim, and U. Shumlak Development of a Maxwell Equation Solver for Application to Two Fluid Plasma Models C. Aberle, A. Hakim, and U. Shumlak Aerospace and Astronautics University of Washington, Seattle American Physical Society

More information

Examples of how to use some utilities and functionobjects

Examples of how to use some utilities and functionobjects Examples of how to use some utilities and functionobjects (and some Gnuplot, Python, Matplotlib) Håkan Nilsson, Chalmers / Applied Mechanics / Fluid Dynamics 1 Some utilities and functionobjects We will

More information

OpenFOAM Library for Fluid Structure Interaction

OpenFOAM Library for Fluid Structure Interaction OpenFOAM Library for Fluid Structure Interaction 9th OpenFOAM Workshop - Zagreb, Croatia Željko Tuković, P. Cardiff, A. Karač, H. Jasak, A. Ivanković University of Zagreb Faculty of Mechanical Engineering

More information

Combination of MRFSimpleFoam and conjugatheatfoam

Combination of MRFSimpleFoam and conjugatheatfoam CFD with OpenSource Software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: Combination of MRFSimpleFoam and conjugatheatfoam Developed for OpenFOAM-1.6.ext Author:

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

cuibm A GPU Accelerated Immersed Boundary Method

cuibm A GPU Accelerated Immersed Boundary Method cuibm A GPU Accelerated Immersed Boundary Method S. K. Layton, A. Krishnan and L. A. Barba Corresponding author: labarba@bu.edu Department of Mechanical Engineering, Boston University, Boston, MA, 225,

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

How to get started with OpenFOAM at SHARCNET

How to get started with OpenFOAM at SHARCNET How to get started with OpenFOAM at SHARCNET, High Performance Technical Consultant SHARCNET, York University isaac@sharcnet.ca Outlines Introduction to OpenFOAM Compilation in SHARCNET Pre/Post-Processing

More information

OpenFOAM Project: Different ways to treat rotating geometries

OpenFOAM Project: Different ways to treat rotating geometries /*-------------------------------------------------------------------------------------------------------*\ ======== \\ / F ield OpenFOAM: The Open Source CFD Toolbox \\ / O peration \\ / A nd Copyright

More information

Problem description. The FCBI-C element is used in the fluid part of the model.

Problem description. The FCBI-C element is used in the fluid part of the model. Problem description This tutorial illustrates the use of ADINA for analyzing the fluid-structure interaction (FSI) behavior of a flexible splitter behind a 2D cylinder and the surrounding fluid in a channel.

More information

OpenFOAM Wind Simulation Tutorial

OpenFOAM Wind Simulation Tutorial H2020-EINFRA-2015-1 VI-SEEM VRE for regional Interdisciplinary communities in Southeast Europe and the EasternMediterranean OpenFOAM Wind Simulation Tutorial Author(s): Status Version: Distribution - Type:

More information

A hybrid slurry CFD model: Euler-Euler to Euler-Lagrange

A hybrid slurry CFD model: Euler-Euler to Euler-Lagrange 5th-6th December 2016 A hybrid slurry CFD model: Euler-Euler to Euler-Lagrange Alasdair Mackenzie Weir Advanced Research Centre, University of Strathclyde, Glasgow, Scotland Outline Background, context

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

Fluid Mechanics Simulation Essentials R2014X

Fluid Mechanics Simulation Essentials R2014X Fluid Mechanics Simulation Essentials R2014X About this Course Course objectives Upon completion of this course you will be able to: Set up and create CFD, CHT and FSI models in the 3DEXPERIENCE Platform

More information

Step-by-step guide for the modeling of a simple geometry and solving for its electric field with CAELinux

Step-by-step guide for the modeling of a simple geometry and solving for its electric field with CAELinux Step-by-step guide for the modeling of a simple geometry and solving for its electric field with CAELinux 1 Introduction What is CAELinux? CAELinux is a Linux distribution intended to provide a fully functional

More information

Modelling of chemical batch reactor

Modelling of chemical batch reactor CFD with OpenSource software A course at Chalmers University of Technology Taught by Håkan Nilsson Project work: Modelling of chemical batch reactor Developed for OpenFOAM-2.4x Author: Rajukiran Antham

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

Advanced Process Simulation

Advanced Process Simulation Advanced Process Simulation CFD - Analysis of numerical solvers in openfoam Extend 4.0 Written by Amos Fang December 01, 2017 Computational Fluid Dynamics Difference between FEM and FVM Describe the linear

More information

In this problem, we will demonstrate the following topics:

In this problem, we will demonstrate the following topics: Z Periodic boundary condition 1 1 0.001 Periodic boundary condition 2 Y v V cos t, V 1 0 0 The second Stokes problem is 2D fluid flow above a plate that moves horizontally in a harmonic manner, schematically

More information

Parallel scalability with OpenFOAM

Parallel scalability with OpenFOAM Parallel scalability with OpenFOAM Table of Contents Access to the system and load the environment Set-up of the test-case: 3-D Lid driven cavity flow Remote viz with RCM of the test-case Run with batch

More information

The Immersed Interface Method

The Immersed Interface Method The Immersed Interface Method Numerical Solutions of PDEs Involving Interfaces and Irregular Domains Zhiiin Li Kazufumi Ito North Carolina State University Raleigh, North Carolina Society for Industrial

More information

snappyhexmesh Basic Training single Region meshing simulation of heat transfer with scalartransportfoam

snappyhexmesh Basic Training single Region meshing simulation of heat transfer with scalartransportfoam Basic Training single Region meshing simulation of heat transfer with scalartransportfoam 1 st edition, Aug. 2015 Editor: Philipp Schretter (TU Wien) Tutorial One: Single Region Meshing Mesh creation The

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

Solver Settings. Introductory FLUENT Training ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary

Solver Settings. Introductory FLUENT Training ANSYS, Inc. All rights reserved. ANSYS, Inc. Proprietary Solver Settings Introductory FLUENT Training 2006 ANSYS, Inc. All rights reserved. 2006 ANSYS, Inc. All rights reserved. 5-2 Outline Using the Solver Setting Solver Parameters Convergence Definition Monitoring

More information

Introduction to C omputational F luid Dynamics. D. Murrin

Introduction to C omputational F luid Dynamics. D. Murrin Introduction to C omputational F luid Dynamics D. Murrin Computational fluid dynamics (CFD) is the science of predicting fluid flow, heat transfer, mass transfer, chemical reactions, and related phenomena

More information

Porting OpenFOAM to HECToR A dcse Project

Porting OpenFOAM to HECToR A dcse Project Porting OpenFOAM to HECToR A dcse Project Gavin J. Pringle EPCC, The University of Edinburgh, James Clerk Maxwell Building, Mayfield Road, Edinburgh, EH9 3JZ, UK April 16, 2010 Abstract We present the

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

Investigation of cross flow over a circular cylinder at low Re using the Immersed Boundary Method (IBM)

Investigation of cross flow over a circular cylinder at low Re using the Immersed Boundary Method (IBM) Computational Methods and Experimental Measurements XVII 235 Investigation of cross flow over a circular cylinder at low Re using the Immersed Boundary Method (IBM) K. Rehman Department of Mechanical Engineering,

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

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

OpenFOAM Tutorial. Adaptive mesh refinement. - The development of a new application. Anton Berce, October 16, 2010

OpenFOAM Tutorial. Adaptive mesh refinement. - The development of a new application. Anton Berce, October 16, 2010 OpenFOAM Tutorial Adaptive mesh refinement - The development of a new application, October 16, 2010, Chalmers / Solid and Fluid Dynamics 1 Project Definition Agenda Tutorial icoerrorestimate Tutorial refinemesh

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

Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert)

Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert) Middle East Technical University Mechanical Engineering Department ME 485 CFD with Finite Volume Method Fall 2017 (Dr. Sert) ANSYS Fluent Tutorial Developing Laminar Flow in a 2D Channel 1 How to use This

More information

A hybrid slurry CFD model: Euler-Euler to Euler-Lagrange (in development)

A hybrid slurry CFD model: Euler-Euler to Euler-Lagrange (in development) MacKenzie, Alasdair (2017) A hybrid slurry CFD model : Euler-Euler to Euler-Lagrange (in development). In: 5th United Kingdom & Éire OpenFOAM User Meeting, 2017-01-16-2017-01-17, University College Dublin.,

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

Development of an Integrated Computational Simulation Method for Fluid Driven Structure Movement and Acoustics

Development of an Integrated Computational Simulation Method for Fluid Driven Structure Movement and Acoustics Development of an Integrated Computational Simulation Method for Fluid Driven Structure Movement and Acoustics I. Pantle Fachgebiet Strömungsmaschinen Karlsruher Institut für Technologie KIT Motivation

More information

Best Practices Workshop: Overset Meshing

Best Practices Workshop: Overset Meshing Best Practices Workshop: Overset Meshing Overview Introduction to Overset Meshes Range of Application Workflow Demonstrations and Best Practices What are Overset Meshes? Overset meshes are also known as

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

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

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

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

Coupled Analysis of FSI

Coupled Analysis of FSI Coupled Analysis of FSI Qin Yin Fan Oct. 11, 2008 Important Key Words Fluid Structure Interface = FSI Computational Fluid Dynamics = CFD Pressure Displacement Analysis = PDA Thermal Stress Analysis = TSA

More information

A new hybrid slurry CFD model compared with experimental results

A new hybrid slurry CFD model compared with experimental results 12th OpenFOAM Workshop, University of Exeter 24th-27th July 2017 A new hybrid slurry CFD model compared with experimental results Alasdair Mackenzie 1, Vanja Škurić 2, MT Stickland 1, WM Dempster 1 1.

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

Adjoint Solver Workshop

Adjoint Solver Workshop Adjoint Solver Workshop Why is an Adjoint Solver useful? Design and manufacture for better performance: e.g. airfoil, combustor, rotor blade, ducts, body shape, etc. by optimising a certain characteristic

More information

Particle-based Fluid Simulation

Particle-based Fluid Simulation Simulation in Computer Graphics Particle-based Fluid Simulation Matthias Teschner Computer Science Department University of Freiburg Application (with Pixar) 10 million fluid + 4 million rigid particles,

More information

Solution Recording and Playback: Vortex Shedding

Solution Recording and Playback: Vortex Shedding STAR-CCM+ User Guide 6663 Solution Recording and Playback: Vortex Shedding This tutorial demonstrates how to use the solution recording and playback module for capturing the results of transient phenomena.

More information

Pressure Drop Evaluation in a Pilot Plant Hydrocyclone

Pressure Drop Evaluation in a Pilot Plant Hydrocyclone Pressure Drop Evaluation in a Pilot Plant Hydrocyclone Fabio Kasper, M.Sc. Emilio Paladino, D.Sc. Marcus Reis, M.Sc. ESSS Carlos A. Capela Moraes, D.Sc. Dárley C. Melo, M.Sc. Petrobras Research Center

More information