OpenFoam
Part I
Plan
" Environment installation
" OpenFoam
" Applications
" Cavity flow tutorial
" Materials and links
Instalacja
" OpenFoam
" http://openfoam.org/ ; https://github.com/OpenFOAM
" VirtualBox
" https://www.virtualbox.org/wiki/Downloads
" CAELinux
" http://www.caelinux.com/CMS/
" Instalacja Linuxa na VB
" http://www.wikihow.com/Install-Ubuntu-on-VirtualBox
What is OpenFOAM?
" Free, open source set of libraries
used to solve differential equations
" C++ library
" Primarily focused on Computational
Fluid Dynamics (CFD), but may also
be applied to other problems
" Uses finite volume approach to
discretise and solve the governing
equations
" Distributed by the OpenFOAM
Foundation and developed by
" OpenCFD Ltd.
OpenFOAM structure
Open source
" Signifficant amount of development done by the users. See for instance:
" swak4foam
" pyFoam
" OpenFOAM Extend (e.g. OF-1.7.x) http://www.extend-project.de/
" Individual contributions (solvers, utilities) uploaded by single users
" http://www.cfd-online.com/
" Written in C++ - efficient, versatile and well structured code
" Difficult to get started with development unless a profficient
" C++ user with experience
" User has full control over most of the parameters of any operation
OpenFoam capabilities
" Incompressible, compressible and multiphase flows
" Reynold's Averaged Navier Stokes (RANS), Unsteady-RANS, and Large
Eddy Simulation turbulence modelling
" Built-in meshing tools
" Easy to use (and modify) tools for extraction of data for post-
processing
" Readilly available plugins to ParaView for ow visualisation
" Fully paralellised solvers (and some utilities)
OpenFoam Applications
" Multiphase flow
" https://www.youtube.com/watch?v=1PHvJMy45rE&list=PL6BfJWHH53_pLUOzU8uuzXgvrhR6uBAR6
" Spray combustion
" https://www.youtube.com/watch?v=b6wfODEp0VE
" DI combustion engine
" https://www.youtube.com/watch?v=SCQL57wHVq4
" Supersonic bullet
" https://www.youtube.com/watch?v=D6iuVr9V6os&list=PL6BfJWHH53_pNtHuG0JAEGsW7WzteQbsL
" Dynamic grid
" https://www.youtube.com/watch?v=3pfCP769C_U
" Fire
" https://www.youtube.com/watch?v=oWNTa3HvbHI
" Helicopter
" https://www.youtube.com/watch?v=C7N3ME5NTOs&list=PL7391C9D70EC4BD41
" Diesel spray combustion
" https://www.youtube.com/watch?v=6zjR8kl72_g&list=PL7391C9D70EC4BD41&index=12
" Engine Combustion
" https://www.youtube.com/watch?v=T9WafiQFEpA&list=PL7391C9D70EC4BD41&index=8
Basic steps for modeling
OpenFoam characteristics
" OpenFOAM always operates in a 3 dimensional Cartesian coordinate
system and all geometries should be generated in 3 dimensions
" OpenFOAM solves the case in 3 dimensions by default but can be
instructed to solve in 2 dimensions by specifying a special empty
boundary condition on boundaries normal to the (3rd) dimension for
which no solution is required
Hello World! - Cavtiy flow
" mkdir -p $FOAM RUN
" cp -r $FOAM TUTORIALS $FOAM RUN
" cd $FOAM RUN/tutorials/incompressible/icoFoam/cavity
Lid-driven cavity flow
Main assumptions:
" isothermal, incompressible flow in a
two-dimensional square domain
" all the boundaries of the square are
walls
" the top wall moves in the x-
direction at a speed of 1 m/s while
the other 3 are stationary
" flow will be assumed laminar
" uniform mesh
" icoFoam solver for laminar,
isothermal, incompressible flow.
Case setup = Folder with name of the case
Cavity
Define a case
" 0 folder - contains the boundary conditions (separate le for each field,
or flow variable)
Define a case
" Constant directory - holds the information about the case which
(usually) doesn't change over time
" polyMesh - contains the les describing the mesh
" transportProperties - description of the uid and other associated parameters
(viscosity, density, phase change parameters, etc.)
" turbulenceProperties - how the turbulence is modelled
Define a case
" System directory - used for controlling the utilities and solvers
" controlDict - main solution control: time step, start/end times, data
extraction, additional library linking, etc.
" fvSchemes - describes the discretisation adopted for all quantities solved
" fvSolution - provides information as to how each of the equations is solved,
given its discretisation
Pre-processing
Mesh generation
" cavity domain consists of a square
of side length d = 0.1 m in the x-y
plane
" uniform mesh of 20 by 20 cells will
be used initially
" blockMesh - mesh generator
supplied with OpenFOAM
generates meshes from a
description specified in an input
dictionary, blockMeshDict located
in the constant/polyMesh
directory for a given case
blockMeshDict size and mesh
blockMeshDict boundary conditions
Generate Geometry and Mesh
" blockMesh
" checkMesh
Boundary and initial conditions
" 0 sub-directory
" P file
" 2 files, p and U
" internalField the internal field data
which can be uniform, described by
a single value; or nonuniform,
where all the values of the field
must be specified
" boundaryField the boundary field
data that includes boundary
conditions and data for all the
boundary patches
Physical properties
" transportProperties
" kinematic viscosity m2s-1
Control
" controlDict - located in the
system directory
" start the run at time t = 0 -
OpenFOAM needs to read field
data from a directory named 0
" startTime keyword to be 0.
" endTime keyword to 0.5
" deltaT time step
Discretisation and linear-solver settings
" fvSchemes discretisation schemes
" fvSolution - the specification of the linear equation solvers and
tolerances and other algorithm controls
Check the mesch
" checkMesh
" paraFoam
Running an application
" icoFoam help :to check options
Post-processing
" paraFoam
" PYTHON scripts
" http://www.paraview.org/
Wiki/ParaView/Python_Scr
ipting
Vector plots
" Filter -> Alphabetical -> Cell Centers
" Filter -> Alphabetical -> Glyph
" Properties window
Tutorials on youtube
" OpenFoam tutorials !!!
" https://www.youtube.com/channel/UCjdgpuxuAxH9BqheyE82Vvw
" OpenFOAM Tutorials for Beginners
" https://www.youtube.com/watch?v=O1kPKH0bdbg
" How to run your first simulation in OpenFOAM - Part 1
" https://www.youtube.com/watch?v=KznljrgWSvo
" How to create a grid with blockMesh
" https://www.youtube.com/watch?v=Ds0eK1wXMks
Additional Materials
" http://www.cfd-online.com/Forums/openfoam/
" https://www.youtube.com/channel/UCjdgpuxuAxH9BqheyE82Vvw
" User s Guide
" http://www.extend-project.de/
" Google OpenFoam
" Hakowanie Wykresów
" Grafula
" https://www.dropbox.com/s/1xv4cuo695bt1ke/Grafula.rar?dl=0
" imageJ
" http://imagej.nih.gov/ij/
Project
" OpenFoam tutorials with combustion
" Chelmers University OF course with combustion
Wyszukiwarka
Podobne podstrony:
Wykład OpenFoamCaseSetupWykład OpenFoamGeometryAndMeashWykład OpenFoamGeometryAndMeashSieci komputerowe wyklady dr FurtakWykład 05 Opadanie i fluidyzacjaWYKŁAD 1 Wprowadzenie do biotechnologii farmaceutycznejmo3 wykladyJJZARZĄDZANIE WARTOŚCIĄ PRZEDSIĘBIORSTWA Z DNIA 26 MARZEC 2011 WYKŁAD NR 3Wyklad 2 PNOP 08 9 zaoczneWyklad studport 8Kryptografia wykladBudownictwo Ogolne II zaoczne wyklad 13 ppozwyklad09więcej podobnych podstron