Sie sind auf Seite 1von 27

Open Source Field Operation

and Manipulation
What is OpenFOAM?
OpenFOAM is a library of C++ codes that solve
partial differential equations
Incompressible flow (Navier-Stokes)
Compressible flow (Navier-Stokes)
Solid displacement (Elasticity)
Pricing stock options (Black-Scholes)
How does OpenFOAM work?

How does OpenFOAM work?
Editing input files in case folder
Preprocessing
Utilities
Fluid properties
Turbulence properties
Meshing

How does OpenFOAM work?
Editing input files in case folder
Solving
Discretization schemes
Numerical Methods
Parallel processing
Creates output files for each write step
Velocity, pressure, turbulence properties, temperature,
displacement



How does OpenFOAM work?
Postprocessing
paraFOAM
Reads output files created when solving
Uses paraView
Displays flow properties within the domain
Various filters
Cut into domain
Vector plots
Contour plots
Plot cell centers
Create image and video files

2D Poisuille Flow
Geometry and fluid properties
Length L = 0.1 m
Width 2h = 0.01 m
Origin located at the inlet along the centerline
Uniform velocity of 0.01 m/s at the inlet
Uniform pressure of 0 Pa at the outlet
Density of = 1.205 kg/m
3

Dynamic viscosity of = 1.82 x 10
-5
Pa-s

2D Poisuille Flow
Analytical Solution
Pressure Gradient
-0.02184 Pa/m
Maximum velocity
0.015 m/s
Average velocity
0.01 m/s

dx
dP h
u
dx
dP h
u
h y
dx
dP
y u
avg

2
3
2
1
) (
2
max
2
2 2



2D Poisuille Flow
Numerical Solution Mesh
Cells are clustered at the channel entrance and walls
2D Poisuille Flow
Numerical Solution Pressure Gradient
2D Poisuille Flow
Numerical Solution Pressure Gradient
2D Poisuille Flow
Numerical Solution Velocity Profile (uniform)
2D Poisuille Flow
Numerical Solution Velocity Profile (graded)
2D Poisuille Flow
Numerical Solution Velocity Profile (comparisson)
2D Laminar Flow Over Cylinder
Metric
Drag coefficient
Strouhal Number (vortex shedding)
Variable
Reynolds number
Meshes
Boundary conditions
2D Laminar Flow Over Cylinder
First mesh
2D Laminar Flow Over Cylinder
First Velocity Field
2D Laminar Flow Over Cylinder
Second Mesh
2D Laminar Flow Over Cylinder
Second Velocity Field
2D Laminar Flow Over Cylinder
Discontinuities
2D Laminar Flow Over Cylinder
Third Mesh
2D Laminar Flow Over Cylinder
Third Velocity Field (discontinuities)
2D Laminar Flow Over Cylinder
Fifth and Sixth meshes
Results are invariant to cell density
2D Laminar Flow Over Cylinder
Velocity Field
2D Laminar Flow Over Cylinder
Drag Coefficient
2D Laminar Flow Over Cylinder
Strouhal Number
Lift Coefficient
U
f d
St
Lid-Driven Cavity Flow
Start-to-finish walkthrough
Linux in general
Laminar
Turbulent
Mesh density
Grading
Numerical Schemes
paraFoam

Das könnte Ihnen auch gefallen