π Introduction
In computational fluid dynamics (CFD), verifying the solution of known analytical problems helps build confidence in simulation tools and numerical schemes. One such classical benchmark is Poiseuille flow β a pressure-driven, fully developed laminar flow through a channel.
In this post, I recreate and verify the parabolic velocity profile of Poiseuille flow using OpenFOAM, and visualize it using ParaView.
π What Is Poiseuille Flow?
Poiseuille flow describes steady, incompressible, laminar flow of a Newtonian fluid in a long, straight channel driven by a pressure gradient.
β Assumptions
- Incompressible and Newtonian fluid
- Laminar, steady-state flow
- Fully developed: no changes along the flow direction
- No-slip boundary condition at the walls
β Governing Equation
From the NavierβStokes equations, the simplified form for x-direction is:
Solving gives:
This is a parabola, symmetric across the channel height, with zero velocity at the walls and maximum velocity at the center.
π οΈ CFD Simulation with OpenFOAM
To simulate this in OpenFOAM:
β Geometry
- A 2D rectangular channel:
- Length: 1.0 m
- Height: 0.1 m
- Depth: 0.01 m (or use
emptyfor 2D)
β Boundary Conditions
Inlet: fixed pressure (1 unit)
Outlet: fixed pressure (0 unit)
Walls: no-slip (U = 0)
Internal Field: uniform (0 0 0)
β Solver
Use icoFoam (transient, laminar, incompressible)
π Visualization in ParaView
After running the simulation:
- Create a
.foamfile to open in ParaView - Use "Plot Over Line" tool
- Define a vertical line at mid-channel (
x=0.5), fromy=0.0toy=0.1 - Plot the
U_Xcomponent of velocity
π Result
The resulting plot shows the expected parabolic profile:
π‘ Key Learnings
- Poiseuille flow is an ideal case for verifying laminar solvers
- Boundary condition correctness is crucial
- Mesh resolution affects symmetry and smoothness
- ParaView enables direct comparison to theory
π§ Beyond the Code: What Poiseuille Flow Teaches Us
At first glance, Poiseuille flow is just a parabolic curve. But under the surface, it reveals deeper truths.
π Pressure as a Metaphor
In this simulation, the fluid moves not because it wants to β but because pressure compels it. It obeys boundaries, yet flows optimally. This is how life often works β pressure shapes motion, boundaries define form.
π§© The Parabola of Nature
That arc you see isnβt just math. Itβs how rivers curve, how air flows through lungs, how blood pulses through arteries. Itβs nature optimizing flow β again and again.
π§ The Simulation Reflects You
As a solver:
- You define conditions
- You impose structure
- You wait for the system to converge
And maybe, just maybe, in the symmetry of that parabola, you catch a glimpse of your own search for balance.
β Conclusion
Poiseuille flow is more than a simulation β itβs a philosophical checkpoint. Youβre not just verifying code. Youβre using math and computation to echo nature.
You didnβt just run a case.
You discovered order, where theory meets flow, and code meets clarity.
Happy simulating. π
So...
Here I am...
Enjoy...
Top comments (0)