Simulation with OpenFOAM Hasret Türkeri 9 December 2016 OpenFOAM Computer software Solves equation for flows Momentum Pressure Energy Developed for Linux ID: 550365
Download Presentation The PPT/PDF document "Motorbike" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Motorbike Simulation with OpenFOAM
Hasret Türkeri
9
December
2016Slide2
OpenFOAM
Computer
software
Solves
equation for flowsMomentumPressureEnergy…Developed for Linux No graphic interfaceRun with commands Slide3
The ConceptsCFD :
Computational
Fluid Dynamics
Initial and boundary conditionsMesh -
Grid Numerical Methods… Slide4
Steps in CFDPre-Processing
Preparation
of
grid
Setting initial and boundary conditions
Selecting numerical schemesProcessingSolving the equation using computer software, OpenFOAMPost-ProcessingPlotting and analyzing the resultsSlide5
Pre-Processing in OpenFOAM
Case
directory
0
U, p, rho,…Constant
SystemblockMeshfvSchemes, fvSolutionsSlide6
Pre-Processing in OpenFOAMblockMesh
vertices
(
(
-5 -4 0) (15
-4
0)
(15
4
0)
(
-5 4 0) ( -5 -4 8) (15 -4 8) (15 4 8) ( -5 4 8));blocks( hex (0 1 2 3 4 5 6 7) (20 8 8) simpleGrading (1 1 1));Slide7
Pre-Processing in OpenFOAMSetting the
motorbike
velocity
Setting the
motorbike velocity0.org/U => fixedValues => initialConditions -> flowVelocity (20 0 0)Setting the grid sizeIn system/blockMesh change the values in green
box
blocks
(
hex (0 1 2 3 4 5 6 7) (20 8 8)
simpleGrading
(1 1 1)
);Slide8
Processing with OpenFOAM
OpenFOAM
runs
with commandsln motorbike
case directory ./Allrunwait until it finishes, it may take a couple of ten minutesCheck log.* files in case of any problem Slide9
Post-Processing with OpenFOAM
run
the
command in the motorbike directory
paraFoamUsing parafoam draw countor plots, and streamlines to analyze your resultsFor tutorial about post-processing you can refer
to
the
post-
processing
section
http://cfd.direct/openfoam/user-guide/tutorials/Slide10
How to Start OpenFOAM on Windows
I
strongly
recommend to download and install
OpenfOAM from the link below http://www.cfdsupport.com/install-openfoam-for-windows.html Follow the instruction on the webpageSlide11
How to Start OpenFOAM on Windows
Open
OpenFOAMforWindows
16.10
C:/OpenFOAM/16.10/Faruk-3.0.x/runSlide12
How to Start OpenFOAM on Windows
Copy
motorBike
case dirFrom
C:\OpenFOAM\16.10\cygwin64\opt\OpenFOAM\OpenFOAM-3.0.x\tutorials\incompressible\simpleFoamTo C:/OpenFOAM/16.10/Faruk-3.0.x/runSlide13
How to Start OpenFOAM on Windows
Open 0.org/
initialConditions
and set the flow velocity
flowVelocity (20 0 0) Important: The dimension here is m/sOpen system/blockMesh change the values in green box
blocks
(
hex (0 1 2 3 4 5 6 7) (20 8 8)
simpleGrading
(1 1 1)
);
The
number
of
cells in x, y, z, direction respectivelySlide14
How to Start OpenFOAM on Windows
In
terminal,
change
your directory into
motorBike cd motorBikeIn terminal, run the commands ./Allclean ./AllrunWait until it finishes, it may takes a couple ten
minutes
Once
it
completes
, in terminal,
run
paraFoamSlide15
How to Start OpenFOAM on Windows
In
terminal,
change
your directory into
motorBike cd motorBikeIn terminal, run the commands ./Allclean ./AllrunWait until it finishes, it may takes a couple ten
minutes
Once
it
completes
, in terminal,
run
paraFoamSlide16
How to Start OpenFOAM on Windows
Follow
the
tutorial for paraFoam at
the linkhttp://cfd.direct/openfoam/user-guide/tutorials/Plot contour plots Stream lines….