All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM: Simulate an incompressible-laminar-viscous flow through the backward facing step geometry. perform transient simulation; choose a solver based on the described physics of the flow in problem statement. Explaining simulation process and way of setting up the problem statement in openFOAM and also, explain…
Suleman Ansari
updated on 16 Nov 2021
AIM:
PROCEDURE TO APPROACH THE PROBLEM:
Problem Statement:
Simulate an incompressible-laminar-viscous flow through the backward facing step geometry, perform case 1.
Case 1 - Simulate the flow without using any grading factor (i.e., GF = 1)
Mesh specification:
Boundary condition specification
The domain specifications are provided in the following figure.
In order to start the simulation process,
/*--------------------------------*- C++ -*----------------------------------*
========= |
\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\ / O peration | Website: https://openfoam.org
\ / A nd | Version: 8
\/ M anipulation |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.01 ;
Mesh generation without any grading factor
Vertices:
vertices
(
(0 0 0)//point 0
(8 0 0)//point 1
(8 0.5 0)//point 2
(0 0.5 0)//point 3
(8 1 0)//point 4
(0 1 0)//point 5
(20 1 0)//point 6
(20 0.5 0)//point 7
(20 0 0)//point 8
(20 -1 0)//point 9
(8 -1 0)//point 10
(0 0 0.1)//point 11
(8 0 0.1)//point 12
(8 0.5 0.1)//point 13
(0 0.5 0.1)//point 14
(8 1 0.1)//point 15
(0 1 0.1)//point 16
(20 1 0.1)//point 17
(20 0.5 0.1)//point 18
(20 0 0.1)//point 19
(20 -1 0.1)//point 20
(8 -1 0.1)//point 21
);
Given mesh specification:
Now, we give simple grading which is cell expansion ratios
Grading factor or expansion ratios:
Expansion ratio = (size of end cell) / (size of starting cell)
blocks
(
hex (0 1 2 3 11 12 13 14) (200 10 1) simpleGrading (1 1 1)
hex (3 2 4 5 14 13 15 16) (200 10 1) simpleGrading (1 1 1)
hex (2 7 6 4 13 18 17 15) (200 10 1) simpleGrading (1 1 1)
hex (1 8 7 2 12 19 18 13) (200 10 1) simpleGrading (1 1 1)
hex (10 9 8 1 21 20 19 12) (200 10 1) simpleGrading (1 1 1)
);
edges
(
);
boundary
(
inlet
{
type patch;
faces
(
(0 11 14 3)
(3 14 16 5)
);
}
outlet
{
type patch;
faces
(
(9 8 19 20)
(8 7 18 19)
(7 6 17 18)
);
}
frontandBack
{
type empty;
faces
(
(0 3 2 1)
(3 5 4 2)
(10 1 8 9)
(1 2 7 8)
(2 4 6 7)
(11 12 13 14)
(14 13 15 16)
(21 20 19 12)
(12 19 18 13)
(13 18 17 15)
);
}
Noslipwalls
{
type wall;
faces
(
(5 16 15 4)
(4 15 17 6)
(0 1 12 11)
(10 21 12 1)
(10 9 20 21)
);
}
);
mergePatchPairs
(
);
// ************************************************************************* //
Also to represent delta t. While selection of delta t CFL value should be less than 1. otherwise, the solution could stop forcibly or it may diverge at the time of converging. So make the following changes in ‘controlDict’ file.
/*--------------------------------*- C++ -*----------------------------------*
========= |
\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\ / O peration | Website: https://openfoam.org
\ / A nd | Version: 8
\/ M anipulation |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
inlet
{
type fixedValue;
value uniform (1 0 0);
}
outlet
{
type zeroGradient;
}
Noslipwalls
{
type noSlip;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
Initial setting for Pressure
/*--------------------------------*- C++ -*----------------------------------*
========= |
\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\ / O peration | Website: https://openfoam.org
\ / A nd | Version: 8
\/ M anipulation |
*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
Noslipwalls
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
BlockMesh
CheckMesh
After, checking mesh we get following confirmation
hex (0 1 2 3 11 12 13 14) (200 10 1) simpleGrading (1 1 1)
hex (3 2 4 5 14 13 15 16) (200 10 1) simpleGrading (1 1 1)
hex (2 7 6 4 13 18 17 15) (200 10 1) simpleGrading (1 1 1)
hex (1 8 7 2 12 19 18 13) (200 10 1) simpleGrading (1 1 1)
hex (10 9 8 1 21 20 19 12) (200 10 1) simpleGrading (1 1 1)
RESULTS:
Mesh grid:
Velocity Distribution along the domain area:
Pressure Distribution along the domain area:
Velocity Plot:
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...
Simulation of a backward facing step in OpenFOAM
AIM: Simulate an incompressible-laminar-viscous flow through the backward facing step geometry. perform transient simulation; choose a solver based on the described physics of the flow in problem statement. Explaining simulation process and way of setting up the problem statement in openFOAM and also, explain…
16 Nov 2021 08:11 AM IST
DESIGN OF BACK DOOR USING NX
AIM : To design a BIW of Back Door from the given Class A Surfacing. The Inner Panel is designed and assembled with Hinge Reinforcements, Gas Stay Reinforcements , Wiper Motor Reinforcements and Latch Reinforcements. …
16 Nov 2021 08:10 AM IST
ROOF DESIGN USING NX CAD
AIM : To Design Roof, Bow Roof Rail, Central Reinforcement and Calculations. OBJECTIVES : Designing the roof from the given styling surface with Front and Rear roof rails. Creating…
16 Nov 2021 08:09 AM IST
Simulation of a 1D Super-sonic nozzle flow simulation using MacCormack Method
AIM: Simulation of a 1D Supersonic nozzle flow using MacCormack Method for conservative form and non-conservative form. THEORY: The objective of project is to solve 1D Super-sonic nozzle flow using numerical method.The numerical method which is used is MacCormack Method which is an explicit finite difference technique…
02 Nov 2021 01:27 PM IST
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.