Petrol Property Calculator| Fluid mechanics for civil engineering

Petrol Property Calculator

Petrol Property Calculator

Formulas Used:

Density (ρ):
ρ = S × 1000 kg/m³
Specific Weight (w):
w = ρ × g
Weight (W):
W = w × Volume (in m³)
Note: 1 litre = 0.001 m³, g = 9.81 m/s²

Fluid properties |Fluid Mechanics in Civil Engineering

Petrol Property Calculator

Petrol Property Calculator

Formulas Used:

Density (ρ):
ρ = S × 1000 kg/m³
Specific Weight (w):
w = ρ × g
Weight (W):
W = w × Volume (in m³)
Note: 1 litre = 0.001 m³, g = 9.81 m/s²

Fluid mechanics chapter 1| let's go through it

Fluid Mechanics - Q&A

Fluid Mechanics - 20 Key Questions and Answers

1. What is the primary distinction between a fluid and a solid?
A solid resists deformation and has a definite shape, while a fluid continuously deforms under any applied shear stress.
2. Define density.
Density is the mass per unit volume of a substance, typically expressed in kg/m³.
3. What is specific weight?
Specific weight is the weight per unit volume of a fluid, calculated as γ = ρ × g.
4. Define specific gravity.
Specific gravity is the ratio of the density of a fluid to the density of a reference substance (usually water).
5. What is dynamic viscosity?
Dynamic viscosity is a fluid's resistance to flow under an applied force, measured in Pa·s or Ns/m².
6. Define kinematic viscosity.
Kinematic viscosity is the ratio of dynamic viscosity to density, expressed as ν = μ / ρ in m²/s.
7. How does viscosity vary with temperature in liquids?
Viscosity decreases with increasing temperature in liquids.
8. How does viscosity vary with temperature in gases?
Viscosity increases with increasing temperature in gases.
9. State Newton's law of viscosity.
Shear stress τ is proportional to the velocity gradient: τ = μ × (du/dy).
10. What is a Newtonian fluid?
A Newtonian fluid is one whose viscosity remains constant regardless of the applied shear rate and obeys Newton’s law of viscosity.
11. What is vapor pressure?
Vapor pressure is the pressure exerted by a vapor in equilibrium with its liquid at a given temperature.
12. Define boiling point in terms of vapor pressure.
The boiling point is the temperature at which the vapor pressure of a liquid equals the surrounding atmospheric pressure.
13. What is surface tension?
Surface tension is the force per unit length acting along the surface of a liquid, causing it to behave like a stretched elastic sheet.
14. What causes surface tension in fluids?
Surface tension is caused by cohesive forces between liquid molecules at the surface being unbalanced, pulling them inward.
15. Define capillarity (capillary action).
Capillarity is the ability of a liquid to flow in narrow spaces without external forces, due to the interplay between cohesive and adhesive forces.
16. How does surface tension affect capillarity?
Higher surface tension increases capillary rise in narrow tubes, provided adhesive forces with the walls are also strong.
17. What is the bulk modulus of elasticity?
It is a measure of a fluid's resistance to uniform compression, defined as the ratio of pressure change to relative volume change.
18. What does a high bulk modulus indicate about a fluid?
A high bulk modulus means the fluid is nearly incompressible.
19. Define compressibility of a fluid.
Compressibility is the measure of how much a fluid's volume changes under pressure, the inverse of the bulk modulus.
20. Why are liquids often considered incompressible in fluid mechanics?
Because their compressibility is very low (bulk modulus is high), leading to negligible volume changes under normal pressure.

Coding Hackathon 2025

Coding Hackathon 2025

You must study Newton forward interpolation method using this Web application

Data Table

Newton Forward Interpolation

Newton Forward Interpolation is a numerical method used to estimate the values of a function based on a set of known values. This technique is particularly useful when the function is tabulated, and we want to predict values for points that fall within the range of the known data. The method is based on the concept of finite differences and utilizes polynomial interpolation to achieve accurate estimates.

Key Concepts:

Finite Differences: The differences between successive values in a table of data are called finite differences. These differences are used to construct the polynomial interpolation.

Newton's Forward Difference Formula: This method uses forward differences, which involve the data points arranged in increasing order, to compute the interpolated value.

Interpolation Polynomial: The goal is to find a polynomial P(x) that passes through the given data points. Newton’s Forward Interpolation constructs this polynomial based on the first n points.

Finite Difference Table

x y Δ Δ² Δ³ Δ⁴
1 10
2 26
3 58
4 112
5 194

\({y_{NFIF}} = {y_0} + r \times \Delta {y_0} + \frac{{r \times \left( {r - 1} \right)}}{{2!}}{\Delta ^2}{y_0} + \frac{{r \times \left( {r - 1} \right) \times \left( {r - 2} \right)}}{{3!}}{\Delta ^3}{y_0} + \frac{{r \times \left( {r - 1} \right) \times \left( {r - 2} \right) \times \left( {r - 3} \right)}}{{4!}}{\Delta ^4}{y_0}\)

Numerical method topics and explanation

Numerical Methods for Engineers

Numerical Methods for Engineers

Numerical methods are essential tools for engineers to solve mathematical problems that are often too complex or impractical to solve analytically. These methods involve approximating solutions using computational techniques, making them invaluable in various fields of engineering.

Common Numerical Methods

Here are some commonly used numerical methods in engineering:

  • Solution of Algebraic & Transcendental Equations: Techniques to find roots of equations, e.g., Bisection method,Iterative method, Regula falsi method & Newton-Raphson method.
  • Interpolation: Estimating values between known data points, e.g., Linear interpolation, Lagrange interpolation.
  • System of Algebraic equations: Gauss Jordan method-Gauss Siedal method.
  • Numerical Integration: Approximating definite integrals, e.g., Trapezoidal rule, Simpson's 1/3rd rule and Simpson's 3/8th rule
  • Numerical Solution of ordinary Differential Equations: The important methods of solving differential equations of first order numerically are as follows, e.g., Taylor's series method, Picard's method, Euler's method, Modified Euler's method of successive approximations and Runge- kutta method.
  • Optimization: Finding the maximum or minimum of functions, e.g., Gradient descent, Newton's method for optimization.
  • Finite Element Method (FEM): Numerical technique for solving partial differential equations in engineering and physics.

Comparison of Numerical Methods

Method Application Advantages Disadvantages
Bisection Method Root finding in continuous functions Converges reliably, guaranteed to find a root if it exists within the interval Slow convergence rate, requires initial interval where the function changes sign
Newton-Raphson Method Root finding, optimization Faster convergence near the root, suitable for well-behaved functions Requires derivative, may diverge if initial guess is poor
Trapezoidal Rule Numerical integration of functions Simple to implement, generally more accurate than the midpoint rule Less accurate for functions with high curvature, tends to underestimate the integral
Euler's Method Numerical solution of ordinary differential equations (ODEs) Simple and straightforward, easy to implement Accuracy limited by step size, prone to numerical instability for stiff equations
Finite Element Method (FEM) Solving partial differential equations (PDEs) Highly flexible, can handle complex geometries and material properties Requires significant computational resources, complex pre-processing

These methods are integral to the practice of modern engineering, providing solutions to problems ranging from structural analysis to fluid dynamics and beyond.

simple calculator

Document

This is the simple calculator

Length of beam : m.

Width of beam : mm.

Depth of beam : mm.



Volume of beam : mm3.

Interpolation is the part numerical method of Engineering

Interpolation

Unequal intervals using Lagrange's Interpolation



Interpolation is a mathematical technique used to estimate values between known data points. It plays a crucial role in various fields such as numerical analysis, computer graphics, and engineering. One popular method for interpolation is the Lagrange interpolation method, named after the French mathematician Joseph-Louis Lagrange. The Lagrange interpolation method constructs a polynomial that passes through a given set of data points. Suppose you have a set of n+1 data points (x0, y0), (x1, y1), ..., (xn, yn). The Lagrange polynomial, denoted as P(x), is expressed as a linear combination of Lagrange basis polynomials, where each basis polynomial is associated with a specific data point. The general form of the Lagrange polynomial is: \[P(x) = L_0(x)y_0 + L_1(x)y_1 + \ldots + L_n(x)y_n\] Here, \(L_i(x)\) is the ith Lagrange basis polynomial, defined as: \[L_i(x) = \frac{(x-x_0)(x-x_1)\ldots(x-x_{i-1})(x-x_{i+1})\ldots(x-x_n)}{(x_i-x_0)(x_i-x_1)\ldots(x_i-x_{i-1})(x_i-x_{i+1})\ldots(x_i-x_n)}\] The Lagrange interpolation method provides a flexible and efficient way to approximate values between data points, making it a valuable tool in numerical analysis and scientific computing.

X Y
0 -4
2 2
3 14
6 158

Lagrange Interpolation formula :

\[\begin{array}{l} y = f(x) = \frac{{\left( {x - {x_1}} \right)\left( {x - {x_2}} \right)\left( {x - {x_3}} \right){y_0}}}{{\left( {{x_0} - {x_1}} \right)\left( {{x_0} - {x_2}} \right)\left( {{x_0} - {x_3}} \right)}} + \\ \frac{{\left( {x - {x_0}} \right)\left( {x - {x_2}} \right)\left( {x - {x_3}} \right){y_1}}}{{\left( {{x_1} - {x_0}} \right)\left( {{x_1} - {x_2}} \right)\left( {{x_1} - {x_3}} \right)}} + \\ \frac{{\left( {x - {x_0}} \right)\left( {x - {x_1}} \right)\left( {x - {x_3}} \right){y_2}}}{{\left( {{x_2} - {x_0}} \right)\left( {{x_2} - {x_1}} \right)\left( {{x_2} - {x_3}} \right)}} + \\ \frac{{\left( {x - {x_0}} \right)\left( {x - {x_1}} \right)\left( {x - {x_2}} \right){y_3}}}{{\left( {{x_3} - {x_0}} \right)\left( {{x_3} - {x_1}} \right)\left( {{x_3} - {x_2}} \right)}} \end{array}\]

Input value to be interpolated in box below

Find/ Interpolate :

Click calculate button





The interpolated value is :