All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
SIMULATION OF LAMINAR FLOW IN A WEDGE-SHAPED PIPE USING OpenFOAM AIM Our aim is to simulate a laminar flow in a wedge-shaped pipe by writing a Matlab code that can generate a BlockMesh Dict file for computational mesh for any wedge angle and validate the Hagen-Poiseuille equation using OpenFOAM. THEORY/EQUATIONS/FORMULAE…
Ramkumar Venkatachalam
updated on 29 Jan 2022
SIMULATION OF LAMINAR FLOW IN A WEDGE-SHAPED PIPE USING OpenFOAM
Our aim is to simulate a laminar flow in a wedge-shaped pipe by writing a Matlab code that can generate a BlockMesh Dict file for computational mesh for any wedge angle and validate the Hagen-Poiseuille equation using OpenFOAM.
OpenFOAM is an open source CFD package. It is a Finite Volume Method (FVM) based tool as it can handle unstructured mesh as well.
It contains basic predefined solvers which can be used to solve our problem, but we need to make sure that correct solver is chosen.
Structure of OpenFOAM simulations
The important directories for a simulation are as follows,
OpenFOAM solver – icoFoam is used for problem involving laminar, transient, incompressible and Newtonian fluid. So it’s suitable for flow in a wedge-shaped pipe problem.
Hagen-Poiseuille Equation
Hagen-Poiseuille equation is a fluidic law to find the head loss (or) pressure drop through a circular pipe under laminar flow conditions.
Where ΔP is Pressure drop, L is Length of the pipe, R is Radius of the pipe, U is Average Velocity of the flow and µ is Dynamic Viscosity of the fluid.
Fluid chosen for the problem – Water
Reynolds Number –It is a ratio of inertial forces to the viscous forces. It is a dimensionless number used to categorize any fluid where viscosity plays an important role, as viscosity controls the velocity.
Where Re is Reynolds number, ρ is Density of the fluid, L is Length of the pipe, u is flow speed and µ is Dynamic Viscosity of the fluid.
The dimensionless number is used to determine if a fluid is laminar or turbulent. It is assumed that,
Re ≤ to 2100 is laminar flow.
Re ≥ to 2100 and ≤ to 4000 is Critical flow.
Re ≥ to 4000 is Turbulent flow.
Hydrodynamic Length
For an Internal flow in a cylindrical pipe, flow region can be divided into two phases, initial phase - Hydrodynamic entrance length and then fully developed region as shown in the below figure.
The velocity profile in laminar flow inside a pipe is parabolic in nature. But, initially the velocity profile looks like a straight line as velocity at center and at boundary are equal and parabolic nature can be seen in fully developed region.
So the length of the pipe for the problem is decided based on the Hydrodynamic entrance length, Le.
Analytical Calculation
Diameter = 0.01 m (Assumed)
Total Length of the pipe, L = Le + X = 2 m, where Hydrodynamic entrance length, Le = 1.05 (As per above equation) and for fully developed region X = 0.95 (Assumed)
Dynamic Viscosity of Water = 9.5320e-4 kg/ms
Density of Water = 997 kg/m3
Average Velocity of the flow = 0.20077 m/s
Maximum Velocity of the flow = 0.40155 m/s
Pressure Drop (As per Hagen Poiseuille eq) = 122.48 Pa
3. OBJECTIVES & PROCEDURE
4. NUMERICAL ANALYSIS (Software used – OpenFOAM 4.1)
Geometric Modeling
The 3D geometry is considered as one complete block and grids are defined only on two axes as the flow with respect to wedge angle is ignored.
3D Geometry – Wedge-shaped Pipe less than 5 deg
Number of Cells Mesh specification
Matlab Code for generating BlockMesh Dict file
BLOCKMESH DICT FILE GENERATED FROM MATLAB
MESHING
Boundaries
Boundary Condition
Control Dict
Transport Properties
Initial Condition - Pressure
Initial Condition – Velocity
5. RESULTS
Velocity Contour of 2 Deg Wedge
Inlet
Outlet
Velocity Contour of 3 Deg Wedge
Inlet
Outlet
Velocity Contour of 4 Deg Wedge
Inlet
Outlet
Shear Stress Plot
Velocity profile for the complete pipe
6. CONCLUSION
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.