OpenFOAM: Open Platform for Complex Physics Simulations

Similar documents
OpenFOAM: A C++ Library for Complex Physics Simulations

Numerical Modelling in Continuum Mechanics

Introduction to OpenFOAM at SIMDI 06

Object-Oriented CFD Solver Design

New Developments in OpenFOAM

Multi-Physics Simulations in Continuum Mechanics

Dynamic Mesh Handling in OpenFOAM

Free Surface Flow Simulations

Example Simulations in OpenFOAM

Second OpenFOAM Workshop: Welcome and Introduction

Overview and Recent Developments of Dynamic Mesh Capabilities

Conjugate Simulations and Fluid-Structure Interaction In OpenFOAM

Open Source CFD in Research and Industrial Use

Handling Parallelisation in OpenFOAM

1.2 Numerical Solutions of Flow Problems

Public Release: Native Overset Mesh in FOAM-Extend

OpenFOAM Programming the basic classes

OpenFOAM Library for Fluid Structure Interaction

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

Turbo Tools and General Grid Interface

Finite element method - tutorial no. 1

Finite Volume Methodology for Contact Problems of Linear Elastic Solids

Marine Hydrodynamics Solver in OpenFOAM

Simulation of Freak Wave Impact Using the Higher Order Spectrum

Dynamic Mesh Handling in OpenFOAM

Immersed Boundary Method in FOAM

Partitioned strongly coupled Fluid-Structure Interaction

computational Fluid Dynamics - Prof. V. Esfahanian

Introduction to C omputational F luid Dynamics. D. Murrin

Directions: 1) Delete this text box 2) Insert desired picture here

Best Practices Workshop: Overset Meshing

UTSR Fellowship Christopher J. Paul 05/23/ /12/2011

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

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

Validation of an Automatic Mesh Generation Technique in Engine Simulations

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

Mathematics Behind CFD

CFD-1. Introduction: What is CFD? T. J. Craft. Msc CFD-1. CFD: Computational Fluid Dynamics

DNV GL s 16th Technology Week

STCE. An (more) effective Discrete Adjoint Model for OpenFOAM

Recent & Upcoming Features in STAR-CCM+ for Aerospace Applications Deryl Snyder, Ph.D.

Computational Fluid Dynamics (CFD) using Graphics Processing Units

Reproducibility of Complex Turbulent Flow Using Commercially-Available CFD Software

LS-DYNA 980 : Recent Developments, Application Areas and Validation Process of the Incompressible fluid solver (ICFD) in LS-DYNA.

Vehicle Cabin Noise from Turbulence Induced by Side-View Mirrors. Hua-Dong Yao, 2018/8/29 Chalmers University of Technology, Sweden

Introduction to Finite Element Analysis using ANSYS

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

Reproducibility of Complex Turbulent Flow Using Commercially-Available CFD Software

Nonlinear Potential Flow Solver Development in OpenFOAM

Fluid Mechanics Simulation Essentials R2014X

Accurate and Efficient Turbomachinery Simulation. Chad Custer, PhD Turbomachinery Technical Specialist

A new hybrid slurry CFD model compared with experimental results

Open source software tools for powertrain optimisation

RBF Morph An Add-on Module for Mesh Morphing in ANSYS Fluent

Isotropic Porous Media Tutorial

TU Berlin - ECUST Shanghai Module Catalogue

Team 194: Aerodynamic Study of Airflow around an Airfoil in the EGI Cloud

A look inside icofoam (and pisofoam)

cuibm A GPU Accelerated Immersed Boundary Method

Introduction to Computational Fluid Dynamics Mech 122 D. Fabris, K. Lynch, D. Rich

Application of Finite Volume Method for Structural Analysis

OpenFOAM in Wave and Offshore CFD

ACCELERATION OF A COMPUTATIONAL FLUID DYNAMICS CODE WITH GPU USING OPENACC

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

COMPUTATIONAL FLUID DYNAMICS ANALYSIS OF ORIFICE PLATE METERING SITUATIONS UNDER ABNORMAL CONFIGURATIONS

Topology optimization of heat conduction problems

Revision of the SolidWorks Variable Pressure Simulation Tutorial J.E. Akin, Rice University, Mechanical Engineering. Introduction

Parallelization study of a VOF/Navier-Stokes model for 3D unstructured staggered meshes

midas NFX 2017R1 Release Note

Click to edit Master title style

Using a Single Rotating Reference Frame

Recent applications of overset mesh technology in SC/Tetra

Non-Linear Finite Element Methods in Solid Mechanics Attilio Frangi, Politecnico di Milano, February 3, 2017, Lesson 1

Thin Film Simulation on a Rotating Wafer. B. Gschaider, D. Prieling, H. Steiner, P. Vita

Adjoint Solver Advances, Tailored to Automotive Applications

Evaluation of an improved mixing plane interface for OpenFOAM

An added mass partitioned algorithm for rigid bodies and incompressible flows

Development of a CFD methodology for fuel-air mixing and combustion modeling of GDI Engines

High-Lift Aerodynamics: STAR-CCM+ Applied to AIAA HiLiftWS1 D. Snyder

Multiphysics simulations of nuclear reactors and more

Fire and Smoke Modelling Matthieu Stasia, Fred Mendonça 24 th June 2014 CD-adapco

Free Convection Cookbook for StarCCM+

Literature Report. Daniël Pols. 23 May 2018

A brief introduction to fluidstructure. O. Souček

Multigrid Solvers in CFD. David Emerson. Scientific Computing Department STFC Daresbury Laboratory Daresbury, Warrington, WA4 4AD, UK

Computational Fluid Dynamics - Incompressible Flows

Project work for the PhD course in OpenFOAM


Adarsh Krishnamurthy (cs184-bb) Bela Stepanova (cs184-bs)

Driven Cavity Example

S0432 NEW IDEAS FOR MASSIVELY PARALLEL PRECONDITIONERS

New Rules of ME Ph.D. Qualifying Exams 1/8

Robustness improvement of polyhedral mesh method for airbag deployment simulations. TU Delft

PRESSURE DROP AND FLOW UNIFORMITY ANALYSIS OF COMPLETE EXHAUST SYSTEMS FOR DIESEL ENGINES

ALE METHODS FOR DETERMINING STATIONARY SOLUTIONS OF METAL FORMING PROCESSES

CFD VALIDATION FOR SURFACE COMBATANT 5415 STRAIGHT AHEAD AND STATIC DRIFT 20 DEGREE CONDITIONS USING STAR CCM+

Adjoint Solver Workshop

Simulation of Free Surface Viscoelastic Fluid Flow Using the viscoelasticinterfoam Solver

Crevice and Blowby Model Development and Application

Modeling icing using cartesian grids, penalization & level sets

Transcription:

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 Platform forcomplex Physics Simulations p.1/11

Background Objective Present an open source CFD simulation platform based on fundamental ideas of object orientation, layered software design and equation mimicking Topics 1. Implementing complex physical models through equation mimicking 2. OpenFOAM: Object-oriented software for Computational Continuum Mechanics 3. Layered software development as a collaboration platform 4. Some illustrative examples 5. Summary OpenFOAM: Open Platform forcomplex Physics Simulations p.2/11

Open Source CFD Platform Open Source Computational Continuum Mechanics Commercial CFD dominates the landscape: a complete code with sufficient efficiency, parallelism, mesh handling and pre- and post- utilities is a large project Targeted at industrial user and established physics. Can we extend the scope? Complete CFD methodology is already in the public domain (research papers, model formulation, numerical schemes, linear equation solvers etc.) Objective: open source implementation of existing knowledge and an object-oriented platform for easy and collaborative future development 1. Completely open software platform using object-oriented design 2. Extensive modelling capabilities in library form: component re-use 3. Fast, robust and accurate numerical solver 4. State of the art complex geometry handling 5. Collaborative and project-driven model development This furthers the research and collaboration by removing proprietary software issues: complete source code and algorithmic details available to all... but the mode of operation changes considerably OpenFOAM: Open Platform forcomplex Physics Simulations p.3/11

Object-Oriented Numerics for CCM Flexible Handling of Arbitrary Equations Sets Natural language of continuum mechanics: partial differential equations Example: turbulence kinetic energy equation k t + (uk) [(ν + ν t) k] = ν t» 1 2 2 ( u + ut ) ǫ o k k o Objective: Represent differential equations in their natural language solve ( fvm::ddt(k) + fvm::div(phi, k) - fvm::laplacian(nu() + nut, k) == nut*magsqr(symm(fvc::grad(u))) - fvm::sp(epsilon/k, k) ); Correspondence between the implementation and the original equation is clear OpenFOAM: Open Platform forcomplex Physics Simulations p.4/11

Object Orientation Object-Oriented Software: Create a Language Suitable for the Problem Analysis of numerical simulation software through object orientation: Recognise main objects from the numerical modelling viewpoint Objects consist of data they encapsulate and functions which operate on the data Example: Sparse Matrix Class Data members: protected and managed Sparse addressing pattern (CR format, arrow format) Diagonal coefficients, off-diagonal coefficients Operations on matrices or data members: Public interface Matrix algebra operations: +,,, /, Matrix-vector product, transpose, triple product, under-relaxation Actual data layout and functionality is important only internally: efficiency Example: Linear Equation Solver Operate on a system of linear equations Ax = b to obtain x It is irrelevant how the matrix was assembled or what shall be done with solution Ultimately, even the solver algorithm is not of interest: all we want is new x! Gauss-Seidel, AMG, direct solver: all answer to the same interface OpenFOAM: Open Platform forcomplex Physics Simulations p.5/11

Top-Level Solver Code Application Development in OpenFOAM Custom-written top-level solvers are written for each class of physics Solvers are optimised for efficiency and storage, re-using basic components Writing top-level code is very similar to manipulating the equations Ultimate user-coding capabilities: components can be re-used to handle most problems in computational continuum mechanics Layered Development Design encourages code re-use: developing shared tools Classes and functional components developed and tested in isolation Vectors, tensors and field algebra Mesh handling, refinement, mesh motion, topological changes Discretisation, boundary conditions Matrices and linear solver technology Physics by segment in library form Library level mesh, pre-, post- and data handling utilities Model-to-model interaction handled through common interfaces New components do not disturb existing code: fewer bugs OpenFOAM: Open Platform forcomplex Physics Simulations p.6/11

Automatic Mesh Generation Automatic Meshing for Complex Geometry Mesh generation for complex geometry currently demands extensive user-interaction The FVM method allows polyhedral support: fewer cells per volume, minimal distortion, near-wall layers, richer connectivity Primarily, reliable automatic meshing Polyhedral cell support, combined with automatic mesh motion and topological changes, gives a state-of-the-art mesh handling module Z X Y OpenFOAM: Open Platform forcomplex Physics Simulations p.7/11

Internal Combustion Engine Simulations Work performed at Politecnico di Milano: leading engine collaboration group 1/8 sector with 75 % load and n-heptane RANS, k ǫ turbulence model, simplified 5-species chemistry and 1 reaction, Chalmers PaSR combustion model Temperature on the cutting plane Spray droplets coloured with temperature Cold Flow with Valves Parallel valves Exhaust and intake stroke Engine with Side-Valves Demonstration of topological changes and combustion in a single solver OpenFOAM: Open Platform forcomplex Physics Simulations p.8/11

Example: Fluid-Structure Interaction ALE FVM Fluid Flow Solver Continuity and momentum equation for incompressible flow in ALE formulation Space conservation law; automatic mesh motion solver: Laplace equation Collocated 2nd order FVM for flow and 2nd order FEM for mesh motion Updated Lagrangian FVM Solver Incremental momentum equation in updated Lagrangian formulation Z V u ρ u δv t Ṿ u Levels of Fluid-Structure Coupling I S u n u (2µ + λ) δu Ṣ u = I S u n u q Ṣ u Unified mathematical model: single equation set (prof. Ivanković, UC Dublin) Unified discretisation method and boundary coupling consistency Unified solution procedure: fluid + structure matrix solved in a single solver Data Transfer Data transfer and coupling significantly easier: both domains in the same solver Data interpolation routines already available: patch-to-patch interpolation OpenFOAM: Open Platform forcomplex Physics Simulations p.9/11

Example: Fluid-Structure Interaction Cantilevered Beam Vibration in an Oscillating Flow Field Effect of Under-Relaxation ρs /ρf 10 1 Number of outer iterations per time-step Fixed under-relaxation Adaptive under-relaxation 30 60 6 12 OpenFOAM: Open Platform forcomplex Physics Simulations p.10/11

Summary Project Status Summary OpenFOAM is a free software, available to all at no charge: GNU Public License Object-oriented approach facilitates model implementation Equation mimicking opens new grounds in Computational Continuum Mechanics Extensive capabilities already implemented; open design for easy customisation Solvers are validated in detail and match the efficiency of commercial codes OpenFOAM in Research and Industry Second OpenFOAM Workshop: Zagreb Croatia, Jun/2007. 100 attendees in 2007 Leading research/development centres: FSB Zagreb, Chalmers University, Sweden; Politecnico di Milano, University College Dublin; new groups joining research and contributing code Major development through US Research Labs: National Energy Technology Lab (NETL), US Dept. of Energy (MFIX-NG), Oak Ridge Labs, USA, NRC Canada Interest greatly increased in the last two years, sometimes following PhD projects, study visits, funded projects or joint development Active use in Audi, ABB Corporate Research, BAE Systems, Calderys SA, Esteco, Hitachi, Mitsubishi, Shell Oil, Toyota, Volkswagen and high-end consultants OpenFOAM: Open Platform forcomplex Physics Simulations p.11/11