OpenFOAM  Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries.  Flexible set of efficient C++ modules---object-oriented.

Slides:



Advertisements
Similar presentations
Subgrid-Scale Models – an Overview
Advertisements

Institut für Meteorologie und Klimatologie Universität Hannover
Open Source Field Operation and Manipulation
Introduction to Computational Fluid Dynamics
Outline Overview of Pipe Flow CFD Process ANSYS Workbench
The analysis of the two dimensional subsonic flow over a NACA 0012 airfoil using OpenFoam is presented. 1) Create the geometry and the flap Sequence of.
Turbulent Models.  DNS – Direct Numerical Simulation ◦ Solve the equations exactly ◦ Possible with today’s supercomputers ◦ Upside – very accurate if.
Lecture Objectives: Simple algorithm Boundary conditions.
LES Combustion Modeling for Diesel Engine Simulations Bing Hu Professor Christopher J. Rutland Sponsors: DOE, Caterpillar.
Advanced CFD Analysis of Aerodynamics Using CFX
Adam Koenig, Wichita State University Mentors: Dr. Ron Riggs, University of Hawai’i, Manoa Dr. Sungsu Lee, Chungbuk National University Krystian Paczkowski,
September, Numerical simulation of particle-laden channel flow Hans Kuerten Department of Mechanical Engineering Technische Universiteit.
Use of OpenFOAM in Modelling of wave-structure interactions
Introduction to numerical simulation of fluid flows
LES Continuity Equation Residual Stress Residual Stress Tensor Anisotropic residual stress tensor Residual kinetic energy Filtered pressure.
1 DLES, Ercoftac Workshop, Trieste, 8-10 September 2008 LES of turbulent flow through a heated rod bundle arranged in a triangular array. S. Rolfo, J C.
1 * 2 conf. paper papers presented by Y. Addad (UoM) and R. Howard (EDF) April 26 – 1 May, 2009 Hammamet, Tunisia * Int. Symp on Convective Heat and Mass.
Wolfgang Kinzelbach with Marc Wolf and Cornel Beffa
HOW AESOP GOT A SUNTAN A fractured fairy tale (with apologies to the producers of the Rocky and Bullwinkle show) The cast of this episode: Oliver Fringer.
DETAILED TURBULENCE CALCULATIONS FOR OPEN CHANNEL FLOW
GFS Deep and Shallow Cumulus Convection Schemes
EdF meeting 18 May 2009 Review of all the work done under the framework of Code_Saturne by S. Rolfo School of Mechanical, Aerospace & Civil Engineering.
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC CG Mingham, L Qian, DM Causon and DM Ingram Centre for Mathematical Modelling and Flow Analysis Manchester.
Modeling, Simulating and Rendering Fluids Thanks to Ron Fediw et al, Jos Stam, Henrik Jensen, Ryan.
FUNDAMENTAL EQUATIONS, CONCEPTS AND IMPLEMENTATION
1 CFD Analysis Process. 2 1.Formulate the Flow Problem 2.Model the Geometry 3.Model the Flow (Computational) Domain 4.Generate the Grid 5.Specify the.
AIAA SciTech 2015 Objective The objective of the present study is to model the turbulent air flow around a horizontal axis wind turbine using a modified.
Atmospheric Flow over Terrain using Hybrid RANS/LES European Wind Energy Conference & Exhibition 2007 A. Bechmann, N.N. Sørensen and J. Johansen Wind Energy.
First Dutch OpenFOAM Day
Numerical study of wave and submerged breakwater interaction (Data-driven and Physical-based Model for characterization of Hydrology, Hydraulics, Oceanography.
Lecture Objectives: -Define turbulence –Solve turbulent flow example –Define average and instantaneous velocities -Define Reynolds Averaged Navier Stokes.
A Hybrid Particle-Mesh Method for Viscous, Incompressible, Multiphase Flows Jie LIU, Seiichi KOSHIZUKA Yoshiaki OKA The University of Tokyo,
1 LES of Turbulent Flows: Lecture 11 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Fall 2014.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
1 Discretization of Fluid Models (Navier Stokes) Dr. Farzad Ismail School of Aerospace and Mechanical Engineering Universiti Sains Malaysia Nibong Tebal.
ParCFD Parallel computation of pollutant dispersion in industrial sites Julien Montagnier Marc Buffat David Guibert.
Detail-Preserving Fluid Control N. Th ű rey R. Keiser M. Pauly U. R ű de SCA 2006.
FSI for Assessing Nerve Injury During Whiplash Motion
Dynamic subgrid-scale modeling in large- eddy simulation of turbulent flows with a stabilized finite element method Andrés E. Tejada-Martínez Thesis advisor:
Shipping and Marine Technology Computational Hydrodynamics PhD course in CFD with OpenSource software Feb 4th, 2009 NaiXian LU 1 Solve Cavitating flow.
Introduction: Lattice Boltzmann Method for Non-fluid Applications Ye Zhao.
The structure of turbulence in a shallow water wind-driven shear current with Langmuir circulation Andrés E. Tejada-Martínez and Chester E. Grosch Center.
Walter Schostak Center for Materials Under eXtreme Environment
1 Large Eddy Simulation of Stable Boundary Layers with a prognostic subgrid TKE equation 8 th Annual Meeting of the EMS, Amsterdam, 2008 Stephan R. de.
FALL 2015 Esra Sorgüven Öner
Discretization Methods Chapter 2. Training Manual May 15, 2001 Inventory # Discretization Methods Topics Equations and The Goal Brief overview.
Aerospace Engineering N. C. State University Air Terminal Wake Vortex Simulation D. Scott McRae, Hassan A. Hassan N.C. State University 4 September 2003.
OPTIMIZATION OF DIESEL INJECTION USING GRID COMPUTING Miguel Caballer Universidad Politécnica de Valencia.
Mesoscale Modeling with a 3D Turbulence Scheme Jocelyn Mailhot and Yufei Zhu (Claude Pelletier) Environment Canada MSC / MRB 3 rd Annual Meeting on CRTI.
Lecture Objectives: Define 1) Reynolds stresses and
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
Direct numerical simulation has to solve all the turbulence scales from the large eddies down to the smallest Kolmogorov scales. They are based on a three-dimensional.
1 LES of Turbulent Flows: Lecture 13 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
Interfacing Model Components CRTI RD Project Review Meeting Canadian Meteorological Centre August 22-23, 2006.
AERODYNAMIC OPTIMIZATION OF REAR AND FRONT FLAPS ON A CAR UNIVERSITY OF GENOVA – POLYTECHNIC SCHOOL ADVANCED FLUID DYNAMICS COURSE 2015/2016 Student: Giannoni.
ДЕМОНСТРАЦИЯ ТИПИЧНЫХ ПРИМЕРОВ, ВХОДЯЩИХ В OPENFOAM ОБТЕКАНИЕ ОБРАТНОГО УСТУПА М.В. Крапошин (НИЦ КИ) О.И. Самоваров (ИСП РАН) С.В. Стрижак (МГТУ им. Баумана)
Introduction to the Turbulence Models
Workshop 7 Tank Flushing
Motorbike Simulation with OpenFOAM
Xing Cai University of Oslo
Numerical Investigation of Turbulent Flows Using k-epsilon
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC
Lecture Objectives Learn about Implementation of Boundary Conditions
Lecture Objectives LES Multizone modeling.
Lecture Objectives LES Multizone modeling.
Lecture 1: Introduction
Software Cradle Releases SC/Tetra V8
14. Computational Fluid Dynamics
Ph.D. Thesis Numerical Solution of PDEs and Their Object-oriented Parallel Implementations Xing Cai October 26, 1998.
Computational Fluid Dynamics Simulation of a Baffle Valve in OpenFoam
Presentation transcript:

OpenFOAM  Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries.  Flexible set of efficient C++ modules---object-oriented.  Use Finite-Volume Method (FVM) to solve systems of PDEs ascribed on any 3D unstructured mesh of polyhedral cells.  Good parallelization. Overview of OpenFOAM structures  Resourceful community (CFD forum, contribution (user-defined libraries).  interFoam, which is a solver for 2 incompressible fluids with interface tracking, is used in the present study. Tutorials:

0 where boundary conditions are defined for alpha.water, B, k, nuSgs, p_rgh, U constant system Mesh building -- blockMeshDict Turbulence closure – turbulenceProperties, LESProperties Computational time control -- controlDict Numerical schemes -- fvSchemes Numerical solvers -- fvSolution Initial condition -- setFieldslDict Domain decomposition -- decomposeParDict

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

x y z 0 ( ) 1 ( ) 2 ( ) How to choose an appropriate domain height? - Big enough to make sure the breaking wave will not touch the top boundary; - Not to big, to save computational cost. 3 ( ) 4 ( ) 5 ( ) 6 ( ) 7 ( ) How to choose an appropriate domain width? - Big enough to cover several largest eddies in the experiment; - Not to big, to save computational cost. In this case, the domain length is set to be smaller than that in the experiment [Ting 2006, 2008] but long enough to cover the initial shoreline and swash zone Domain Layout

z Build the grids x

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Choose the turbulence closure Large-eddy simulation in this simulation Dynamic Smagorinsky closure is used, and an improved version of dynamic Smagorinsky closure developed by Alberto Passalacqua is adopted. How to install the improved dynamic Smagorinsky closure in OpenFOAM? 1.Download the source code using git: git clone git://github.com/AlbertoPa/dynamicSmagorinsky.git 2. Enter the directory where the source code has been extracted, and compile it by typing: wmake libso 3. Add the following line to the controlDict of your case: libs ( "libOpenFOAM.so" "libdynamicSmagorinskyModel.so" ) ; 4. Specify LESModel dynamicSmagorinsky; delta cubeRootVol; in LESModel. 5. Add the subdictionary dynamicSmagorinskyCoeffs { filter simple; ce 1.048; } to LESModels. Filter is defined as

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Set the initial condition ( ) ( ) (0 0 0)( ) ( ) (15 0 0) Offshore Onshore

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Define the boundaries (Wall function is used) Sends in the target solitary wave through groovyBC What is groovyBC? -- A library that can be used to generate arbitrary boundary conditions based on expressions. It is included in the swak4Foam library package. Link:

Install groovyBC 1. Download swak4Foam library package from svn checkout svn://svn.code.sf.net/p/openfoam- extend/svn/trunk/Breeder_2.0/libraries/swak4Foam/ swak4Foam_2.x 2. In the directory of the sources, type wmake all

Use groovyBC to send in solitary wave Expression of the theoretical surface elevation in Lee et al. [1982] Expression of the theoretical velocity in Lee et al. [1982]

Specify the boundary conditions p_rgh: dynamic pressure U: velocity alpha.water: (percentage of water in each cell) in the VOF equation B: subgrid-scale tensor in LES. is the unit tensor; is the deviatoric part of the subgrid-scale tensor and is parameterized by subgrid closure k: subgrid-scale kinetic energy in LES.,, is the rate of strain nuSgs:, sub-grid scale viscosity in LES

Specify the boundary conditions zeroGradient: normal gradient is zero cyclic: periodic boundary condition totalPressure: Total pressure is fixed; when changes, p will be adjusted accordingly

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Numerical schemes interpolationSchemes: numerical scheme for the evaluation of face values from the cell center values snGradSchemes: component of gradient normal to a cell face fluxRequired: fields which require the generation of a flux laplacianSchemes: Laplacian. “Gauss linear corrected” is CDS with some correction terms

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Numerical solvers Solves the Pressure Poisson Equation Set the solvers for p_rgh and U PIMPLE = SIMPLE + PISO

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Set the time control startFrom stopAt deltaT writeControl adjustTimeStep maxCo maxAlphaCo maxDeltaT

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Decompose the domain “decomposeParDict” simpleCoeffs { n (4 1 2); … } numberOfSubdomains 8; x y z Type decomposePar

Build the domain and set the grids Choose the turbulence closure Set the initial condition Set the boundary condition Choose the numerical schemes Choose the numerical solvers Set the time control Decompose the domain Run the case

Type interFoam