First Dutch OpenFOAM Day

Slides:



Advertisements
Similar presentations
Stable Fluids A paper by Jos Stam.
Advertisements

Open Source Field Operation and Manipulation
Compatible Spatial Discretizations for Partial Differential Equations May 14, 2004 Compatible Reconstruction of Vectors Blair Perot Dept. of Mechanical.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
Turbulent Models.  DNS – Direct Numerical Simulation ◦ Solve the equations exactly ◦ Possible with today’s supercomputers ◦ Upside – very accurate if.
Beams and Frames.
Manipulator Dynamics Amirkabir University of Technology Computer Engineering & Information Technology Department.
Atmosphere and Energy Research Group (AERG) Cristina Archer Niranjan Ghaisas Shengbai Xie Chi Yan Yang Pan High-Performance Computing Symposium, University.
Advanced CFD Analysis of Aerodynamics Using CFX
September, Numerical simulation of particle-laden channel flow Hans Kuerten Department of Mechanical Engineering Technische Universiteit.
Introduction to numerical simulation of fluid flows
AE/ME 339 Computational Fluid Dynamics (CFD) K. M. Isaac Professor of Aerospace Engineering.
Homework 3: Use the Fixed Grid --Volume of Fluid Method with Structured Cartesian CVFEM mesh To track Filling Front h=1 h = 0 2 r = 1 3 Hand in 1. Code.
Image courtesy of National Optical Astronomy Observatory, operated by the Association of Universities for Research in Astronomy, under cooperative agreement.
Estimation of Prandtls Mixing Length
Finite Difference Methods to Solve the Wave Equation To develop the governing equation, Sum the Forces The Wave Equation Equations of Motion.
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.
© 2011 Autodesk Freely licensed for use by educational institutions. Reuse and changes require a note indicating that content has been modified from the.
FUNDAMENTAL EQUATIONS, CONCEPTS AND IMPLEMENTATION
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.
Lecture Objectives: Review discretization methods for advection diffusion equation Accuracy Numerical Stability Unsteady-state CFD Explicit vs. Implicit.
Conservation Laws for Continua
Review (2 nd order tensors): Tensor – Linear mapping of a vector onto another vector Tensor components in a Cartesian basis (3x3 matrix): Basis change.
© Fluent Inc. 9/5/2015L1 Fluids Review TRN Solution Methods.
CFD Modeling of Turbulent Flows
Mathematics for Computer Graphics (Appendix A) Won-Ki Jeong.
Erin Catto Blizzard Entertainment Numerical Integration.
1 Predicting and Understanding the Breakdown of Linear Flow Models P. Stuart, I. Hunter, R. Chevallaz-Perrier, G. Habenicht 19 March 2009.
Next Class Final Project and Presentation – Prepare and me the ppt files 5-7 slides Introduce your problem (1-2 slides) – Problem – Why CFD? Methods.
A control algorithm for attaining stationary statistics in LES of thermally stratified wind-turbine array boundary layers Adrian Sescu * and Charles Meneveau.
I.Z. Naqavi 1, E. Savory 1 & R.J. Martinuzzi 2 1 Advanced Fluid Mechanics Research Group Department of Mechanical and Materials Engineering The University.
Viscous Stress Terms for the RELAP5-3D Momentum Equations Adam Kraus and George Mesina RELAP5 International Users Seminar 2010 September 20-23,
Spring Rigid Body Simulation. Spring Contents Unconstrained Collision Contact Resting Contact.
Discontinuous Galerkin Methods and Strand Mesh Generation
A particle-gridless hybrid methods for incompressible flows
1 MAE 5130: VISCOUS FLOWS Momentum Equation: The Navier-Stokes Equations, Part 2 September 9, 2010 Mechanical and Aerospace Engineering Department Florida.
Discontinuous Galerkin Methods for Solving Euler Equations Andrey Andreyev Advisor: James Baeder Mid.
FSI for Assessing Nerve Injury During Whiplash Motion
© Fluent Inc. 11/24/2015J1 Fluids Review TRN Overview of CFD Solution Methodologies.
Computational Fluid Dynamics in OpenFOAM Henrik Kaald Melbø Supervisor: Heinz Preisig Department of Chemical Engineering.
Parallel Solution of the Poisson Problem Using MPI
FALL 2015 Esra Sorgüven Öner
Pharos University ME 253 Fluid Mechanics 2
Conference on PDE Methods in Applied Mathematics and Image Processing, Sunny Beach, Bulgaria, 2004 NUMERICAL APPROACH IN SOLVING THE PDE FOR PARTICULAR.
Differential Analysis of Fluid Flow. Navier-Stokes equations Example: incompressible Navier-Stokes equations.
Steps in Development of 2 D Turbine Cascades P M V Subbarao Professor Mechanical Engineering Department A Classical Method Recommended by Schlichting.……
© Ram Ramanan 2/22/2016 Commercial Codes 1 ME 7337 Notes Computational Fluid Dynamics for Engineers Lecture 4: Commercial Codes.
SPH weekly meeting Free surface flows in Code Saturne Results 23/11/2009 Olivier Cozzi.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Water Computational Fluid Dynamics Volumes Lagrangian vs. Eulerian modelling Navier-Stokes equations.
An Introduction to Computational Fluids Dynamics Prapared by: Chudasama Gulambhai H ( ) Azhar Damani ( ) Dave Aman ( )
1 LES of Turbulent Flows: Lecture 7 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
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.
ANSYS. Overview of ANSYS It is an engineering simulation software developed in 1970 by Dr. John A. Swanson It was developed to use finite element analysis.
Interfacing Model Components CRTI RD Project Review Meeting Canadian Meteorological Centre August 22-23, 2006.
OpenFOAM  Open source CFD toolbox, which supplies preconfigured solvers, utilities and libraries.  Flexible set of efficient C++ modules---object-oriented.
Introduction to the Turbulence Models
Chamber Dynamic Response Modeling
Manipulator Dynamics 1 Instructor: Jacob Rosen
A TWO-FLUID NUMERICAL MODEL OF THE LIMPET OWC
The k-ε model The k-ε model focuses on the mechanisms that affect the turbulent kinetic energy (per unit mass) k. The instantaneous kinetic energy k(t)
Supplement to I. Theoretical background of CFD
© Fluent Inc. 1/10/2018L1 Fluids Review TRN Solution Methods.
A topology-based approach towards
Manipulator Dynamics 2 Instructor: Jacob Rosen
GENERAL VIEW OF KRATOS MULTIPHYSICS
Lecture Objectives Review for exam Discuss midterm project
topic8_NS_vectorForm_F02
topic8_NS_vectorForm_F02
Low Order Methods for Simulation of Turbulence in Complex Geometries
GPAT – Chapter 7 Physics.
Presentation transcript:

First Dutch OpenFOAM Day Nov 4th, 2010 Implementation of the Oriented-Eddy Collision Turbulence Model in OpenFoam Blair Perot Mike Martell Chris Zusi Department of Mechanical and Industrial Engineering Theoretical & Computational Fluid Dynamics Laboratory

Goal: Develop a New Turbulence Model Navy Requirements Easy for others to test. Easy for others to adopt. Easy to test real world applications. Our Requirements Solve coupled tensor PDE’s. Mixed BCs. Handle arbitrary numbers of equations.

Why OpenFoam? Advantages over commercial code Free, open source, parallel Users can inspect, alter, expand on the source code. Advantages over in house code development Many numerical methods, operators, utilities already implemented and tested Large, user-driven support community Interact with other OpenFOAM users. Get help from CFD experts.

Why OpenFoam? Advantages over commercial code Free, open source, parallel Users can inspect, alter, expand on the source code. Advantages over in house code development Many numerical methods, operators, utilities already implemented and tested Large, user-driven support community Interact with other OpenFOAM users. Get help from CFD experts.

Why OpenFoam? Advantages over commercial code Free, open source, parallel Users can inspect, alter, expand on the source code. Advantages over in house code development Many numerical methods, operators, utilities already implemented and tested Large, user-driven support community Interact with other OpenFOAM users. Get help from CFD experts.

Prior Experience: In House Codes UNS3D: Moving unstructured staggered mesh code for two-phase incompressible flows Stag++: Cartesian staggered mesh for DNS/LES of incompressible turbulence. Fluent User defined subroutines for RANS modeling. OpenFoam Wind turbine blade simulation. Rotating imbedded mesh.

Wind Turbine Calculations with OpenFoam Spin indicator = second invariant of the strain tensor Runs on 8-16 CPUs No major issues

Eddy Collision Model Overview Assumption: Turbulent Flow = Flow of a Colloidal suspension of disk-like spinning objects. Pouring Spherical objects results in RANS eqns. Pouring a concentrated Disk suspension results in OEC model

Review of OEC Model Properties Cost roughly about 10x k/e. Four model constants. Realizable, Material Frame Indifferent, Galilean Invariant, Exact in linear limit, etc. Log(Cost ) Log(Physics ) 1 0.1 100 10 LES RANS OEC

PDE Formulation Global Variables (sum many eddies – 20-50) Eddy Size and Orientation (vector) Eddy Velocity Fluctuation (tensor) Global Variables (sum many eddies – 20-50)

Open Foam Formulation Implicit terms on the left-hand side. fvm::ddt(qiINT) - (1.0/3.0)*fvm::laplacian(dEff(), qiINT) + (1.0/3.0)*fvm::SuSp(((alpha*nu()*qsq + tauR)), qiINT) == - fvc::div(phi_, qiINT) - ( qiINT & fvc::grad(U) ) - ( Ai + Bi ) Implicit terms on the left-hand side. Explicit terms on the right-hand side.

First Challenge: Multiple Eddies The Number of Eddies for each physical location is arbitrary. 10 is minimal necessary. 100 is usually very good. Pointer lists are employed to keep track of eddies Rij_[eddy][cell].xx() Pointer list with an entry for every eddy Location in mesh Component (11 in this case)

Multiple Eddies: OpenFoam Solution forAll(initOrientations_,i) { ... solveqR(i, qi_[i], ...); } void OEC::solveqR(int i, volVectorField qiINT, ...) { tmp<fvVectorMatrix> qEqn ( fvm::ddt(qiINT) = ... ); solve(qEqn, mesh_.solver("q")); This system allows us to write generalized functions which handle any number of eddy vectors. The model can be implemented on a per-eddy basis. Averaging all of the entities in a given pointer list is also easy, which is good because all we really care about is the average R, K, etc.

Second Challenge: Tensors No gradient of a rank 2 (and higher) tensor … fvc::grad(R) … forAll (mesh_.C(), cell) // internal cells { Rx[cell].x() = Rtmp[cell].xx(); Rx[cell].y() = Rtmp[cell].xy(); Rx[cell].z() = Rtmp[cell].xz(); ... gradKgradR[cell].xx() = ( gradK[cell].x()*gradRx[cell].xx() + gradK[cell].y()*gradRx[cell].xy() + gradK[cell].z()*gradRx[cell].xz() ); gradKgradR[cell].yy() = ( gradK[cell].x()*gradRy[cell].yx() + gradK[cell].y()*gradRy[cell].yy() + gradK[cell].z()*gradRy[cell].yz() ); gradKgradR[cell].zz() = ( gradK[cell].x()*gradRz[cell].zx() + gradK[cell].y()*gradRz[cell].zy() + gradK[cell].z()*gradRz[cell].zz() ); Solution: Break it into vectors

Third Challenge: Boundary Conditions On wall, the boundary conditions are mixed. This is for an xz-wall. We currently can not do walls that are not aligned with the tensor coordinate directions.

Last Challenge: Stable Time Marching Many source terms have no fvm:: (implicit) implementation. Some explicit source terms can be unstable with Explicit Euler time advancement. Solution: Write a RK3 solver. Modify equations with explicit time derivative Use FOAM’s .storeOldTime() to save the old time values.

Last Challenge: Stable Time Marching Many source terms have no fvm:: (implicit) implementation. Some explicit source terms can be unstable with Explicit Euler time advancement. Solution: Write a RK3 solver. Modify equations with explicit time derivative Use FOAM’s .storeOldTime() to save the old time values.

Last Observation: Gradient of a vector

Summary: OEC is implemented in OpenFoam.