OpenFOAM Opensource and CFD



Similar documents
Open Source CFD Solver - OpenFOAM

ME6130 An introduction to CFD 1-1

CFD: What is it good for?

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

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

OpenFOAM postprocessing and advanced running options

Modeling of Earth Surface Dynamics and Related Problems Using OpenFOAM

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

A simplefoam tutorial

Lecture 6 - Boundary Conditions. Applied Computational Fluid Dynamics

Self Financed One Week Training

CFD Simulation of Subcooled Flow Boiling using OpenFOAM

OpenFOAM. The Open Source CFD Toolbox. User Guide

How To Create A Cdf Optimisation System

Express Introductory Training in ANSYS Fluent Lecture 1 Introduction to the CFD Methodology

OpenFOAM Workshop. Yağmur Gülkanat Res.Assist.

OpenFOAM Optimization Tools

Customer Training Material. Lecture 2. Introduction to. Methodology ANSYS FLUENT. ANSYS, Inc. Proprietary 2010 ANSYS, Inc. All rights reserved.

How To Run A Steady Case On A Creeper

Abaqus/CFD Sample Problems. Abaqus 6.10

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

TVM 4155 Numerical modelling and hydraulics 10. March OpenFOAM homework

Aerodynamic Department Institute of Aviation. Adam Dziubiński CFD group FLUENT

CastNet: Modelling platform for open source solver technology

Moving boundary in openfoam

CastNet: GUI environment for OpenFOAM

How To Run A Cdef Simulation

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

OPEN-SOURCE CFD ANALYSIS OF MULTI-DOMAIN UNSTEADY HEATING WITH NATURAL CONVECTION

NUMERICAL ANALYSIS OF THE EFFECTS OF WIND ON BUILDING STRUCTURES

CFD SIMULATION OF SDHW STORAGE TANK WITH AND WITHOUT HEATER

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

Steady Flow: Laminar and Turbulent in an S-Bend

Introduction to CFD Analysis

Set up and solve a transient problem using the pressure-based solver and VOF model.

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

GAMBIT Demo Tutorial

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

OpenFOAM: Open source CFD in research and industry

Use of OpenFoam in a CFD analysis of a finger type slug catcher. Dynaflow Conference 2011 January , Rotterdam, the Netherlands

Introduction to COMSOL. The Navier-Stokes Equations

How To Model A Horseshoe Vortex

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

HPC Deployment of OpenFOAM in an Industrial Setting

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

Introduction to CFD Analysis

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

CFD modelling of floating body response to regular waves

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

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

Harvesting-Combine-Flow Simulation Technique

Adaptation of General Purpose CFD Code for Fusion MHD Applications*

Simple beginning 3D OpenFOAM Tutorial

Introductory FLUENT Training

Application of Wray-Agarwal Model to Turbulent Flow in a 2D Lid-Driven Cavity and a 3D Lid- Driven Box

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

Model of a flow in intersecting microchannels. Denis Semyonov

3. Prescribe boundary conditions at all boundary Zones:

Multiphase Flow - Appendices

External bluff-body flow-cfd simulation using ANSYS Fluent

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

A comparison of CFD Software packages to find the. suitable one for numerical modeling of gasification. process

Design and Optimization of OpenFOAM-based CFD Applications for Hybrid and Heterogeneous HPC Platforms

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

CFD Analysis of a butterfly valve in a compressible fluid

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

Visualization and Post Processing of OpenFOAM results a Brie. a Brief Introduction to VTK

Computational Modeling of Wind Turbines in OpenFOAM

This tutorial provides a recipe for simulating L

CCTech TM. ICEM-CFD & FLUENT Software Training. Course Brochure. Simulation is The Future

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

CFD Based Air Flow and Contamination Modeling of Subway Stations

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

ANSYS ICEM CFD - pre-processing program used to generate the geometry and mesh for our CFD simulations.

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

Introduction to Visualization with VTK and ParaView

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

Heat Transfer by Free Convection

Tutorials from CAD through CFD for Beginners

Overset Grids Technology in STAR-CCM+: Methodology and Applications

POLITECNICO DI MILANO Department of Energy

OpenFOAM Tutorial. 4. Units

Introduction to ANSYS

. Address the following issues in your solution:

Pre-processing in openfoam, mesh generation. OpenFOAM kurs 2013 Håkan Nilsson Olivier Petit

NUMERICAL SIMULATION OF REGULAR WAVES RUN-UP OVER SLOPPING BEACH BY OPEN FOAM

Performance Comparison of a Vertical Axis Wind Turbine using Commercial and Open Source Computational Fluid Dynamics based Codes

Comparison of Heat Transfer between a Helical and Straight Tube Heat Exchanger

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

Open Source Computational Fluid Dynamics

CFD Simulations of I.C. Engines: Combustion, Internal Flows, integrated 1D-MultiD simulations

CFD Analysis of Container Ship Sinkage, Trim and Resistance

Modeling and Numerical Blood Flow Analysis of Tibial Artery using CFD

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

Titelmasterformat durch Klicken bearbeiten

Workshop plan. From zero to results

CFD Simulation of the NREL Phase VI Rotor

Auxiliary Processing swak4foam and PyFoam

CFD Modelling of a Physical Scale Model: assessing model skill. Kristof Verelst FHR, Antwerp

OPTIMISE TANK DESIGN USING CFD. Lisa Brown. Parsons Brinckerhoff

Transcription:

OpenFOAM Opensource and CFD Andrew King Department of Mechanical Engineering Curtin University

Outline What is Opensource Software OpenFOAM Overview Utilities, Libraries and Solvers Data Formats The CFD toolchain Solid Modelling (Geometry) Meshing Solution Postprocessing

Outline Examples Lid driven Cavity Buoyancy driven flow Free Surface Flows Dynamic Meshing Fluid Structure Interaction

Opensource what is it? Opensource Software has source code freely available. permits users to study, change, and improve the code. allows redistribution in modified or unmodified form. promotes development in a public, collaborative manner.

Examples Apache (web server) runs ~60% of the internet Linux Operating System based on UNIX. Firefox Standards Compliant Web Browser...many more... And of course Open source CFD

OpenFOAM - Overview OpenFOAM stands for: Open Field Operations And Manipulation Consists of a library of efficient CFD related C++ modules. These can be combined together to create solvers utilities (for example pre/post-processing, mesh checking, manipulation, conversion, etc.) Or, additional functionality can be introduced through new libraries or modules

OpenFOAM - Overview So far modules, libraries and applications are available for the following tasks SOLVERS UTILITIES LIBRARIES Basic CFD Incompressible flows Compressible flows Multiphase flows DNS and LES Combustion Heat transfer Electromagnetics Solid dynamics Finance Pre-processing The FoamX case manager Other pre-processing utilities Model libraries Turbulence Large-eddy simulation (LES) Transport models Thermophysical models Lagrangian particle tracking Chemical kinetics Post-processing The parafoam post-processor Third-party post-processing Other post-processing utilities Mesh processing Mesh generation Mesh converters Mesh manipulation More details of solvers later... Other features Linear system solvers ODE system solvers Parallel computing Mesh motion Numerical method

OpenFOAM - Overview Data Formats Open foam cases consist of a directory, and subdirectories with specific tasks. Top Level Case Directory Initial Conditions Timestep Data Constant Data (fluid properties, etc) Mesh (also in each TS dir for moving meshes) Simulation controls (disc. schemes, solvers, Timestep size, write controls,... ) Exported Data (ie. VTK format)

OpenFOAM - Overview A GUI (FoamX) allows easy access to the files, to control all facets, and run simulations. FoamX GUI

OpenFOAM - Overview Alternatively direct access to files is possible Boundary and initial conditions are set in '0' directory. file '.../cavity/0/u' Velocities Note that OpenFOAM keeps track of dimensions and type (ie scalar, vector, tensor) and checks these when compiling a solver. Initial internal field values boundary type and value (where required)

OpenFOAM - Overview file '.../cavity/0/p' Pressures pressure is a scalar dimensions (ie m2/s2 = N/m2) Initial internal field values boundary type (zero normal gradient, no value req d)

OpenFOAM - Overview Postprocessing Quantitative data available using utility applications, ie. samplesurface patchaverage patchintegrate wallheatflux checkyplus wallgradu etc... Or from parafoam graphical utility

OpenFOAM - Overview ParaFoam ParaFoam imports fields in general formats and filters are applied to construct contours, graphs, etc. Grid visualisation (above) and overlay of pressure contours, velocity vectors and grid (right)

Opensource CFD Toolchain OpenFOAM provides the solver (and a bit more), however the CFD tool chain is more than this. It is possible to use an entirely OSS toolchain, or a combination of commercial and OSS tools. Geometry Mesh Solver Postprocessing

Opensource CFD Toolchain Geometry Meshing Solver Postprocessing BlockMesh Utilities Blender Paraview netgen BRL-CAD gmsh SolidWorks OpenDX OpenFOAM ANSYS ANSYS Mesh FLUENT Gambit TecPlot Other Other OpenFOAM Other Opensource Commercial

Customisation Due to opensource code, customisation is easy. for solvers, a typical flow equation can be descibed as follows. (ie momentum) fvvectormatrix UEqn ( fvm::ddt(u) + fvm::div(phi, U) - fvm::laplacian(nu, U) ); solve(ueqn == -fvc::grad(p)); Unsteady term Momentum term Diffusion term Pressure gradient New solvers can be created by modifying existing solvers, for example to add scalar transport, equation is similar to above.

OpenFOAM - Overview In combination, the above utilities and solvers are at least as powerful as the commercial offerings. (Fluent, ANSYS CFX, StarCD, etc) though some initial investment in learning is required.

OpenFOAM - Examples Lid driven cavity Standard test case, bottom and side walls are no-slip and stationary, top wall is driven at 1 m/s. Flow is assumed incompressible, isothermal and laminar. Solution obtained using the standard icofoam solver

OpenFOAM - Examples Mesh generation Mesh for this problem is created using the blockmesh utility Geometry, grid spacing and labels for boundaries (patches) are all specified in a blockmeshdict. Running the utility gives a mesh as shown.

OpenFOAM - Examples Boundary Conditions movingwall Set in 0/U fixedwalls type fixedvalue value uniform (0 0 0) movingwall type fixedvalue value uniform (1 0 0) Set in 0/p fixedwalls type zerogradient movingwall type zerogradient fixedwalls

OpenFOAM - Examples Solution run using icofoam Typical Output (at each timestep) Time = 0.8 Mean and max Courant Numbers = 0.0500943 0.42312 BICCG: Solving for Ux, Initial residual = 8.9862e-09, Final residual = 8.9862e-09, No Iterations 0 BICCG: Solving for Uy, Initial residual = 2.28622e-08, Final residual = 2.28622e-08, No Iterations 0 ICCG: Solving for p, Initial residual = 1.02719e-06, Final residual = 1.61421e-07, No Iterations 1 time step continuity errors : sum local = 1.01957e-09, global = -1.23457e-19, cumulative = -1.32236e-18 ICCG: Solving for p, Initial residual = 3.48287e-07, Final residual = 3.48287e-07, No Iterations 0 time step continuity errors : sum local = 1.62239e-09, global = -5.22778e-20, cumulative = -1.37464e-18 ExecutionTime = 1.73 s ClockTime = 3 s End...

OpenFOAM - Examples Results From paraview graphical results can be obtained. Pressure Stream Lines

OpenFOAM - Examples Buoyancy driven flow Isothermal sphere, in walled enclose open at top and bottom Flow is assumed incompressible and laminar with boussinesq assumption for buoyant forces. Sphere Walls Open base Solution obtained using contributed boussinesqbuoyantfoam solver

OpenFOAM - Examples Buoyancy driven flow Temperature Field after 0.3s, sphere coloured by wall heat flux Velocity Vector Field

OpenFOAM - Examples Free-surface flow Side walls Outlet solid cube, 50% suspended in free-stream channel flow. Flow is assumed incompressible and laminar with VOF tracking of interface. Solution obtained using the standard interfoam solver brick Inlet Symmetry plane

OpenFOAM - Examples Free-surface flow Pressure contours at brick centreline Free surface, coloured by velocity magnitude

OpenFOAM - Examples Dynamic Moving Mesh Cylinder in free stream flow Flow is assumed incompressible and laminar Re ~ 100 Solution obtained using the standard icodymfoam solver

OpenFOAM - Examples Dynamic Moving Mesh In the solution, periodic shedding of vortices in the wake can be observed.

OpenFOAM - Examples Fluid Structure Interaction Channel flow, obstructed by solid block, covered with flexible casing. Fluid stucture interaction solution obtained using contributed icostructfoam solver