Professional Documents
Culture Documents
1 s2.0 S0965997822001363 Main
1 s2.0 S0965997822001363 Main
A R T I C L E I N F O A B S T R A C T
Keywords: Buckingham’s Pi theorem plays an important role in engineering, applied mathematics, and physics for
Buckingham’s Pi theorem dimensional analysis. From the given variables, it will be utilised to evaluate the set of dimensionless parameters.
Fluid mechanics It indicates that the validity of the physical law is independent of the specific unit system, and it can be expressed
Dimensional analysis
as an identity incorporating only dimensionless variables associated with the law. A python-based function has
Physical similarity analysis
Python programming
been developed and reported in this manuscript, which can be utilised to evaluate Pi terms (commonly called π
terms) for any fluid flow problem. Smaller moderation in the written function can make it capable of solving any
fundamental dimensions. Different fluid mechanics problems are utilised to test and validate the reported
function, five of which are presented in this manuscript along with code. Obtained results are in good agreement
with the theoretically obtained results.
similarity gives a clue to answering the above questions. With the idea of
physical similarity [12–15], we can apply the test results of altered
1. Introduction conditions to the actual problem, provided the physics of the problem
remains the same. Furthermore, we can club the different dimensional
It is a well-known fact that engineering problems are complex, and variables influencing a performance parameter into a single group
sometimes the complexity is so high that the theoretical solutions are because of the principle of physical similarity. The influence of all the
impossible. Therefore, researchers try to handle complex issues with the dimensional variables as operating parameters on the performance
help of computational fluid dynamics [1–4] or numerical analysis [5,6]. parameter is affected through that parameter group.
Still, empirical relations (i.e., the experimental information) are If many physical variables define a problem, so if the problem has to
required to take care of all the down-to-earth considerations in some be made similar to the problem of a different condition, then definitely
instances. Also, if somehow a theoretical model for some engineering some dimensionless terms have to be fixed for both the problems, which
problem is developed, it must be validated with the help of experimental represents the criterion of similarity, mainly the dynamic similarity
data. Hence, it is proven that experiments are the actual truth, and most [16]. Now the question comes how to find such nondimensional pa
problems are solved with the help of experiments [7,8]. rameters, which are the combination of dimensional variables. The
When the experiments were performed in the laboratory to solve answer to this question lies with dimensional analysis and dimensional
some engineering problems, then due to economic constraints, time, homogeneity [17,18]. The first instance of dimensional homogeneity is
space, energy, etc., the experiments couldn’t be performed under an found in the work of Fourier [19]. Lord Rayleigh [20,21] proposed an
identical set of operating conditions which prevails in the real place indicial method to perform dimensional analysis to obtain a nondi
[9–11]. So, to save money, time, and space, the experiments are per mensional relationship between dimensional variables. An initial
formed under an altered set of conditions than what exists. So, under ground for the π theorem was set independently by Vaschy [22] Ria
these circumstances, two pertinent questions usually arise: how the test bouchinsky [23]. Buckingham’s Pi theorem was introduced later with
results from the laboratory experiments can be applied to the actual the full-fledged procedure to evaluate the nondimensional πterms by
problem. Secondly, is it possible to limit the number of experiments and Buckingham in 1914 [24]. This paper has set a benchmark in the
still get the same results as in the real case. The concept of physical
Abbreviations: RV,rv, repeating variables; nrv , nonrepeating variables; BuPi , Buckingham’s Pi function; SI , International System.
* Corresponding author at: Department of Mechanical Engineering, Jaypee University of Engineering and Technology, JUET Campus, Raghogarh, Guna, Madhya
Pradesh 473226, India.
E-mail addresses: p.dumka.juet@gmail.com, p.dumka.ipec@gmail.com (P. Dumka).
https://doi.org/10.1016/j.advengsoft.2022.103232
Received 16 July 2022; Received in revised form 30 July 2022; Accepted 1 August 2022
Available online 7 August 2022
0965-9978/© 2022 Elsevier Ltd. All rights reserved.
P. Dumka et al. Advances in Engineering Software 173 (2022) 103232
2
P. Dumka et al. Advances in Engineering Software 173 (2022) 103232
Table 1 3.2. For laminar, steady, fully developed flow in a pipe of circular cross-
Dimensions of physical variables section, the pressure gradient along the length of the pipe is a function of
S. No. Physical variable/quantity Dimension pipe diameter (d), flow velocity (v), the density of the fluid (ρ), and the
dynamic viscosity of fluid (μ). The dimensionless π terms have to be
1 Mass M
2 Time L evaluated
3 Length T
4 velocity LT− 1 The dimensional terms (m) involved are 5 (dx dp
, d, μ, ρ, v). The
5 Angular velocity T− 1
6 Acceleration LT− 2 fundamental dimensions involved are 3 (refer to Table 1). So, the π terms
7 Density ML− 3 will be 2 (5 − 3 = 2). First, a list of RV and nonrepeating variables are
8 Angular acceleration T− 2 created (with the help of dimensional variables as declared above) as
9 Force, weight, thrust MLT− 2 follows:
10 Pressure, Stress ML− 1T− 2
11 Momentum MLT− 1
12 Angular momentum ML2T− 1 3.2.1. List of repeating variables
13 Torque, Momentum ML2T− 2 d=ℓ
14 Energy, work ML2T− 2 u=v
15 Rate of energy or work, power ML2T− 3
rv=[u,d,ρ]
16 Velocity gradient, vorticity T− 1
17 Stream function, velocity potential L2T− 1
18 Pressure gradient ML− 2T− 2 3.2.2. List of Non-repeating variables
19 Surface tension MT− 2 nr=[μ,dpdx]
20 Bulk modulus ML− 1T− 2 (Note: the choice of the RVs is such that one is a geometric variable,
21 Dynamic viscosity ML− 1T− 1
one is a kinematic variable, and the last one flows property. Moreover,
22 Kinematic viscosity L2T− 1
the output variable cannot be considered as the repeating variable (in
this case, pressure gradient))
3.1. Dimensional variables An empty list π[] has been created to hold the values of a, b, and c for
different pi terms. For loop is used for different π terms in which BuPi
dpdx=array([1,-2,-2]) function is solved for rv and nrv lists.
ρ=array([1,-3,0])
ℓ=array([0,1,0]) 3.2.3. Function calling for the evaluation of repeating variable indices
μ=array([1,-1,-1]) π=[]
v=array([0,1,-1]) for i,xx in enumerate(nr):
σ=array([1,0,-2]) print(f’π{i+1} >’,BuPi(rv,xx))
ν=array([0,2,-1]) π.append(BuPi(rv,xx))
ω=array([0,0,-1]) The output of the program is as follows:
Δp=array([1,-1,-2]) To write the final expression for the π term correctly, one should
Q=array([0,3,-1]) understand that the exponents are powers of terms in rv list starting from
P=array([1,2,-3]) left to right (viz. uadbρc), which are multiplied together along with the
N=array([0,0,-1]) individual term in the nrv list following the same conventions, i.e., from
g=array([0,1,-2]) left to right. So, the result shown in Fig. 1 can be interpreted as:
F=array([1,1,-2]) μ
Pow=array([1,2,-3]) π1 = ua db ρc μ = u− 1 d− 1 ρ− 1 μ =
ρud
du_dx=array([0,0,-1])
K=array([1,-1,-2]) dp dp d dp
Now two lists are created: one for RVs (total n in numbers) and the π2 = ua db ρc = u− 2 d1 ρ− 1 = 2
dx dx ρu dx
other for remaining variables (m-n). In the program, they are called rv
and nrv. In π terms, each repeating variable is raised to some unknown
exponent (a, b, and c in this case), and these are multiplied together 3.3. The Drag Force (F) on an aircraft is a function of the characteristic
along with one nonrepeating variable. As we have formed an array of length of aircraft (l), the density of air (ρ), the viscosity of air (μ), aircraft
powers of M, L, and T so, all the respective powers of individual terms velocity (u), and bulk modulus of elasticity (Es). The dimensionless terms
will add up to from equations having unknowns a, b, and c. On the RHS, involved in the problem are to be evaluated
the exponent of M, L, and T of nonrepeating variables will be there. In
the program, these are implemented with the help of a function (known Total 6-dimensional variables are involved with three fundamental
as ‘BuPi’), which accept rv and nrv as input and, in turn, returns a, b, and dimensions, so the number of pi terms will be 3. The repeating variable
c. The simultaneous equations are solved symbolically using the SymPy chosen is: u, l, and ρ.
module (from sympy import *; form sympy.abc import *). The function First, lists of rv and nrv are created as follows:
developed for Buckingham’s Pi theorem is as follows:
def BuPi(rv,x) 3.3.1. list of repeating variables
""" l=ℓ
pass on the list of repeating variable (rv) and the u=v
nonrepeating variables (x=nrv) E_s=K
""" rv=[u,l,ρ]
return solve((a*rv[0]+b*rv[1]+c*rv[2]+x),(a,b,c))
Now the use of the above-developed function to evaluate the π terms 3.3.2. list of Non-repeating variables
will be demonstrated with the help of some fluid flow problems. nr=[F,μ,E_s]
Then the function BuPi is called will return the output as shown in
Fig. 2.
Hence, the π terms are:
3
P. Dumka et al. Advances in Engineering Software 173 (2022) 103232
μ
3.4.2. list of Non-repeating variables π2 = N − 1 ρ− 1 D− 2 μ =
ρND2
nr=[U,μ,D]
Now calling the function BuPi as in problem 3.1 will result in the
output shown in Fig. 3. 3.6. For a hydraulic machine, the pertinent dimensional variables
Therefore the π terms will be: involved are D (rotor diameter), N (rotor rpm), Q (volumetric discharge),
gH (per unit mass energy), P (power), ρ (density), and μ (dynamic
1 1 U
π 1 = H − 2 ρ0 g− 2 U = √̅̅̅̅̅̅ viscosity). The task is to evaluate all the π terms
Hg
In the problem in total 7-dimensional variables are involved, which
μ
are represented in 3 fundamental dimensions, so the number of π terms
3 1
π 2 = H − 2 ρ− 1 g− 2 μ = √̅̅̅̅̅̅
H ρ Hg
will be 4. The repeating variables chosen are D, ρ, and N.
D First, lists of rv and nrv created are as follows:
π 3 = H − 1 ρ0 g0 D =
H
3.6.1. list of repeating variables
D=ℓ
H=ℓ
gH=g+H
P=Pow
4
P. Dumka et al. Advances in Engineering Software 173 (2022) 103232
rv=[D,N,ρ]
gH
π 2 = D− 2 N − 2 ρ0 gH =
N 2 D2
μ Fig. 5. Program output for hydraulic machine
π 3 = D − 2 N − 1 ρ− 1 μ =
ρ N D2
participation in speakers’ bureaus; membership, employment, consul
P
π 4 = D − 5 N − 3 ρ− 1 P = tancies, stock ownership, or other equity interest; and expert testimony
ρ N 3 D5
or patent-licensing arrangements), or non-financial interest (such as
An important thing to note in this example is that as the array carries personal or professional relationships, affiliations, knowledge or beliefs)
the power of fundamental dimensions hence, while multiplying the in the subject matter or materials discussed in this manuscript.
dimensional variable, it has to be kept in mind that the arrays should be Authors Name
added (e.g. gH=g+H). Dr. Dhananjay R. Mishra
Readers of this research article are also provided with the full- Dr. Pankaj Dumka
fledged code (for problem 3.4) in the appendix. They can modify rv Mrs. Rishika Chauhan
and nrv and get the exponents within on time with minimal hassle. Mr. Ayush Singh
Mr. Gaurav Singh
4. Conclusion
Supplementary materials
In this manuscript, the use of dimensional analysis for developing
nondimensional numbers from dimensional variables has been dis Supplementary material associated with this article can be found, in
cussed in detail. A theorem known as Buckingham’s Pi theorem has been the online version, at doi:10.1016/j.advengsoft.2022.103232.
explained in detail, along with the mathematical formulation of nondi
mensional π terms elaborated. The hand calculation of π terms can be Appendix
very time-consuming. There as well are chances of error while solving
the equations manually. So, to remove the problem of error propagation (Full Python Program)
into the solution, a python-based function (BuPi) has been developed. from numpy import *
The function can solve any fluid flow problem with three fundamental from sympy import *
variables. Moreover, a minor modification is required to extend the from sympy.abc import *
function to any fundamental dimensions. The function and computer #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
program testing has been done on five different fluid mechanics prob # Buckingham’s Pi theorem function
lems. It has been observed that the program has efficiently evaluated all #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the exponents and, ultimately, the π terms. The computer program is def BuPi(rv,x):
very robust, and in our opinion, the methodology given in this research """
article will benefit the scientific community in research and education. pass on the list of repeating variables (rv) and the
nonrepeating variables (x)
CRediT authorship contribution statement """
return solve((a*rv[0]+b*rv[1]+c*rv[2]+x),(a,b,c))
Pankaj Dumka: Conceptualization, Methodology, Software, Visu #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alization, Investigation, Writing – original draft. Rishika Chauhan: # Dimensional variables
Software, Writing – original draft. Ayush Singh: Conceptualization, #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Methodology. Gaurav Singh: Conceptualization, Methodology. Dha dpdx=array([1,-2,-2])
nanjay Mishra: Conceptualization, Writing – review & editing. ρ=array([1,-3,0])
ℓ=array([0,1,0])
Declaration of competing interest μ=array([1,-1,-1])
v=array([0,1,-1])
The authors whose names are listed immediately below certify that σ=array([1,0,-2])
they have No affiliations with or involvement in any organization or ν=array([0,2,-1])
entity with any financial interest (such as honoraria; educational grants;
5
P. Dumka et al. Advances in Engineering Software 173 (2022) 103232
ω=array([0,0,-1]) [12] Lee J-C, Bang K-S, Yu S-H, Choi W-S, Ko S. Similarity analysis of thermal-fluid flow
for thermal testing using scaled-down model of spent fuel storage cask. Ann Nucl
Δp=array([1,-1,-2])
Energy 2020;149:107791.
Q=array([0,3,-1]) [13] Castillo L, George WK. Similarity analysis for turbulent boundary layer with
P=array([1,2,-3]) pressure gradient: the outer flow. 38th Aerospace Sci Meet Exhi. 2000;39(1):41–7.
N=array([0,0,-1]) [14] Narbondo S, Gorgoglione A, Crisci M, Chreties C. Enhancing physical similarity
approach to predict runoff in ungauged watersheds in sub-tropical regions. Water
g=array([0,1,-2]) 2020;12(2).
F=array([1,1,-2]) [15] S. G. Sterrett, “Similarity and dimensional analysis,” in Philosophy of technology
Pow=array([1,2,-3]) and engineering sciences, A. Meijers, Ed. Amsterdam: North-Holland, 2009, pp.
799–823.
du_dx=array([0,0,-1]) [16] G. R. Rajput and M. G. Timol, “Similarity analysis of heat transfer and MHD fluid
K=array([1,-1,-2]) flow of Powell–Eyring Nanofluid,” in Numerical heat transfer and fluid flow, 2019,
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pp. 339–348.
[17] Adiutori EF. An alternate view of dimensional homogeneity, and its impact on
#list of repeating variables engineering science. Open Mech Eng J 2018;12(1):164–74.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [18] Conejo AN. Units, dimensions and dimensional homogeneity. Fundamentals of
D=ℓ dimensional analysis. Singapore: Springer Singapore; 2021. p. 13–30.
[19] Fourier JBJ. Théorie analytique de la chaleur. Chez Firmin Didot 1822. père et fils.
rv=[N,ρ,D] [20] Lord R. On the light from the sky, its polarisation and colour. Phil Mag 1871;41:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 274–9.
#list of Non-repeating variables [21] Rott N. Lord Rayleigh and hydrodynamic similarity. Phys Fluids A Fluid Dyn 1992;
4:2595–600.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[22] A. Vaschy, Sur les lois de similitude en physique. 1892.
nr=[P,μ] [23] Riabouchinsky D. Methode des variables de dimension zero, et son application en
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ aerodynamique. L’aerophile 1911;1:407–8.
~~~~~~~~~~~~~~~~~~~~~~~~~~ [24] Buckingham E. On physically similar systems; illustrations of the use of
dimensional equations. Phys Rev 1914;4(4):345–76.
# Function calling for the evaluation of repeating [25] Longo SG. Principles and applications of dimensional analysis and similarity.
variable indices Cham: Springer; 2021.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [26] Elsheikh AH, et al. Low-cost bilayered structure for improving the performance of
solar stills: performance/cost analysis and water yield prediction using machine
~~~~~~~~~~~~~~~~~~~~~~~~~~~ learning. Sustain Energy Technol Assessments 2022;49:101783.
π=[] [27] Kaushik S, et al. Continuous monitoring of power consumption in urban buildings
for i,xx in enumerate(nr): based on Internet of Things. Int J Ambient Energy 2021;0(0):1–7.
[28] Singh H. Basics of python and Scikit image. Practical machine learning and image
print(f’π{i+1} >’,BuPi(rv,xx)) processing. Berkeley, CA: Apress; 2019. p. 29–61.
π.append(BuPi(rv,xx)) [29] Lin JWB. Why python is the next wave in earth sciences computing. Bull Am
print(π) Meteorol Soc 2012;93(12):1823–4.
[30] Huei YC. Benefits and introduction to python programming for freshmore students
using inexpensive robots. In: Proceedings of IEEE International Conference on
References Teaching, Assessment and Learning for Engineering: Learning for the Future Now;
2015. p. 12–7. TALE 2014.
[1] Versteeg HK, Malalasekera W. An introduction to computational fluid dynamics: [31] Moruzzi G. Python basics and the interactive mode. Essential python for the
the finite volume method. Pearson education; 2007. physicist. Cham: Springer International Publishing; 2020. p. 1–39.
[2] Deo A, Joshi AR, Parashar A, Mishra DR. Analysing one dimensional tapered pin- [32] Johansson R. Numerical Python: scientific computing and data science applications
fin using finite difference. Res Appl Therm Eng 2022;5(1):1–6. with numpy, SciPy and matplotlib. Second edition. Berkeley, CA: Apress; 2018.
[3] Dumka P, Sharma S, Gautam H, Mishra DR. Finite volume modelling of an [33] C. Bauckhage, “NumPy /SciPy recipes for data science: subset-constrained vector
axisymmetric cylindrical fin using python. Res Appl Therm Eng 2021;4(3):1–11. Quantisation via mean discrepancy minimization,” no. February, pp. 1–4, 2020.
[4] Keshtkar M, Eslami M, Jafarpur K. A novel procedure for transient CFD modeling of [34] Meurer A, et al. SymPy: symbolic computing in python. PeerJ Comput Sci 2017;(1):
basin solar stills: coupling of species and energy equations. Desalination 2020;481: 1–27. 2017.
114350. [35] Fuhrer C, Verdier O, Solem JE, Führer C, Verdier O, Solem JE. Scientific computing
[5] Kumar D, Singh J, Kumar S, Sushila. Numerical computation of Klein–Gordon with python. High-performance scientific computing with NumPy, SciPy, and
equations arising in quantum field theory by using homotopy analysis transform pandas. Packt Publishing Ltd; 2021.
method. Alexandria Eng J 2014;53(2):469–74. [36] Pawar PS, Mishra DR, Dumka P. Solving first order ordinary differential equations
[6] Chauhan R, Sharma S, Pachauri R, Dumka P, Mishra DR. Experimental and using least square method : a comparative study. Int J Innov Sci Res Technol 2022;
theoretical evaluation of thermophysical properties for moist air within solar still 7(3):857–64.
by using different algorithms of artificial neural network. J Energy Storage 2020; [37] Pawar PS, Mishra DR, Dumka P, Pradesh M. Obtaining exact solutions of visco-
30:101408. February. incompressible parallel flows using python. Int J Eng Appl Sci Technol 2022;6(11):
[7] Vineis P, Butler A. Commentary: Climate change and health: the importance of 213–7.
experiments. Int J Epidemiol 2020;50(3):929–30. [38] Sulzer V, Marquis SG, Timms R, Robinson M, Chapman SJ. Python battery
[8] Holubova R. The impact of experiments in physics lessons–‘Why, when, how mathematical modelling (PyBaMM). J Open Res Softw 2021;9:1–8.
often?. In: AIP Conference Proceedings; 2019, 030007. [39] Marowka A. On parallel software engineering education using python. Educ Inf
[9] Shen W, Lin DKJ. A conjugate model for dimensional analysis. Technometrics Technol 2018;23(1):357–72.
2018;60(1):79–89. [40] Dumka P, Pawar PS, Sauda A, Shukla G, Mishra DR. Application of He’s homotopy
[10] K. Taira, “Modal analysis of fluid flows: applications and outlook,” vol. 58, no. 3, and perturbation method to solve heat transfer equations: a python approach. Adv
pp. 998–1022, 2020. Eng Softw 2022;170:103160. May.
[11] Morris MW, Hassan MAAM, Vaskinn KA. Breach formation: field test and [41] Dumka P, Rana K, Pratap S, Tomar S, Pawar PS, Mishra DR. Modelling air standard
laboratory experiments. J Hydraul Res 2007;45:9–17. SPEC. ISS. thermodynamic cycles using python. Adv Eng Softw 2022;172:103186. July.
[42] Biswas G, Som SK. Introduction to fluid mechanics and fluid machines. Tata
McGraw-Hill Education; 2003. March.