vibrationdata_fluids is a stand-alone Matlab GUI for practical fluid dynamics calculations. It brings twenty-six calculations together in one window, from hydrostatics and buoyancy through pipe flow and pipe sizing, pumps, control valves, drag, vortex shedding, compressible flow, water hammer, sloshing, acoustic modes, tank volume, convective heat transfer and the standard atmosphere. It follows the same layout as the vibrationdata_bolts app.
Update, November 27, 2026 (ver 1.7): the Open Channel tab now handles partly full and full circular pipes (fill ratio, full-pipe capacity, a Q/Qfull chart), solves for the normal depth, the pipe diameter or the slope for a given flow, takes the slope in percent and the flow in L/s or m3/h, checks the self-cleaning velocity, and has more Manning n presets. The Pump Power & Efficiency tab (ver 1.6) adds three-phase electrical input (V, I and power factor), a pressure rise in kgf/cm2, and an estimate of the flow from the running power and head.
Update, November 27, 2026 (ver 1.5): five new tabs (Convective Heat Transfer, Pipe Sizing & Velocity, Control Valve Cv, Pump Power & Efficiency and Tank Volume) and a hydraulic press (Pascal’s principle) calculation on the Hydrostatic Pressure tab. Ver 1.5 needs Matlab R2026b or later, or MATLAB Runtime R2026b for the stand-alone version.
Update, November 22, 2026 (ver 1.4): the Vortex Shedding plot legend now labels each line correctly, and switching units converts preset values (fluid properties, roughness) without rounding.
Download:
vibrationdata_fluids_11_27_26a.zip: Matlab source (about 2.6 MB). Unzip into one folder and run vibrationdata_fluids in Matlab R2026b or later.
vibrationdata_fluids_sa_11_27_26a.zip: Stand-alone Windows executable (about 2.6 MB). This version does not need Matlab, but it needs the free MATLAB Runtime R2026b.
Worked examples: vibrationdata_fluids_worked_examples_revG.pptx (PowerPoint, 96 slides). Twenty-seven examples, at least one for every tab, run through the GUI and checked against closed-form solutions and hand calculations: Colebrook pipe friction, vortex shedding lock-in, Joukowsky water hammer, the 1976 Standard Atmosphere, a normal shock at Mach 2, forced convection in a heated tube, a hydraulic press, sizing a pipe for 100 m3/h of water, a control valve Cv and Kv, the efficiency of an oil pump, the capacity of a cylindrical tank, the flow of a pump from its running electrical data, the capacity of a half-full drainage pipe, the force on an inclined circular gate, the draft and stability of a barge, a reducer with a rise, a Pitot tube at Mach 0.53, an orifice plate, a flat-plate boundary layer, the pump head for a piping system, a pump speed change, the thrust on a 90° bend, the drag of a car, a submerged water-filled pipe, sloshing in a water tank, the resonances of a closed-open pipe, and NPSH with hot water.
Ver 1.7 was developed and tested in Matlab R2026b. Its files are saved in R2026b and do not open in older releases. It uses base Matlab only, with no toolboxes. The source zip contains the app, the equation images and the equations PDF.
TWENTY-SIX CALCULATIONS
A Select Function list on the left side of the window opens the tab for each calculation:
- Hydrostatic Pressure: pressure against depth through a stack of fluid layers, each with its own specific gravity, with a plot. A second mode solves a hydraulic press by Pascal’s principle: pressure, output force, mechanical advantage and stroke.
- Submerged Surface: the resultant force, center of pressure and hinge moment on a rectangular or circular plate at any angle.
- Buoyancy & Stability: buoyancy of a submerged body, and the draft, metacentric height and roll period of a rectangular barge.
- Continuity & Bernoulli: velocities and the downstream pressure between two stations, with elevation change and head loss.
- Pitot Tube: airspeed from the Pitot pressure difference, incompressible and compressible (subsonic and supersonic), or the velocity of a liquid.
- Orifice & Venturi: flow from the differential pressure, or the pressure from the flow, for an orifice plate, venturi or flow nozzle.
- Reynolds Number: Re and the flow regime for a pipe, a flat plate, or a cylinder or sphere.
- Pipe Friction: the Darcy friction factor (laminar or Colebrook) and the head and pressure loss, with a Moody diagram.
- Pipe System & Pump: the pump head and power for a pipe run with fittings (a table of typical K values), with the system curve.
- Pump Affinity Laws: flow, head and power at a new speed or impeller diameter, or for a geometrically similar pump.
- Momentum & Jet Force: the force on a pipe bend or reducer, and the force of a jet on a moving vane.
- Drag & Lift: drag and lift forces, the Reynolds number, and the terminal velocity, with typical drag coefficients for common shapes.
- Vortex Shedding: the shedding frequency of a cylinder in cross flow, the lock-in velocity, the Scruton number and the lift force.
- Compressible Flow: isentropic stagnation ratios for a perfect gas and, above Mach 1, the normal shock relations.
- Water Hammer: the pressure wave speed in an elastic pipe and the Joukowsky pressure rise, with the Michaud estimate for slow valve closure.
- Open Channel: uniform flow by the Manning equation for rectangular, trapezoidal and circular channels, with the Froude number. For pipes: the fill ratio, the full-pipe capacity and a Q/Qfull chart; solve for the normal depth, the diameter (next Schedule 40 size) or the slope for a given flow; a self-cleaning velocity check (Ten States Standards).
- Added Mass: the added mass of a cylinder, strip or sphere vibrating in a fluid, and the natural frequency when submerged or filled.
- Liquid Sloshing: lateral sloshing frequencies of a rectangular or upright cylindrical tank, with the mode shapes.
- Acoustic Modes: plane-wave natural frequencies of a pipe or duct for open and closed ends, with end corrections and the cut-on frequency.
- NPSH & Cavitation: the net positive suction head available and the margin over the pump requirement.
- Standard Atmosphere: temperature, pressure, density, speed of sound and viscosity from 0 to 86 km (U.S. Standard Atmosphere, 1976), with an optional ISA temperature offset.
- Convective Heat Transfer (new): Nusselt number and convection coefficient for tube flow (laminar fully developed, or Dittus-Boelter) and a flat plate (laminar or mixed), with the heat flux and heat rate. Presets for water and air.
- Pipe Sizing & Velocity (new): the velocity for a flow and diameter, or the diameter for a design velocity rounded up to the next Schedule 40 steel pipe, with a check against typical velocity ranges for water, steam and drainage services. Flow in gpm, L/s or m3/h.
- Control Valve Cv (new): the flow coefficient of a valve for a liquid, as both Cv (gpm, psi) and Kv (m3/h, bar), or the flow through a valve of known Cv.
- Pump Power & Efficiency (new): the hydraulic power and head from the measured pressure rise, flow and pipe sizes, and the pump and overall efficiency from the motor power. The motor power can be entered as three-phase voltage, current and power factor, and the flow can be estimated from the power and head (an upper bound at 100 % efficiency).
- Tank Volume (new): the capacity and liquid contents of a vertical or horizontal cylindrical tank or a rectangular tank, in ft3, gallons, liters and m3, with the liquid mass.
HOW THE APP WORKS
- Every tab has its own English or metric unit selection and an equation strip that shows the formulas used. Changing the units converts the values already entered.
- Preset lists fill in typical values: water, seawater or air properties, gas constants, pipe roughness, discharge and drag coefficients, Manning n, the vapor pressure of water and service velocity ranges.
- View Equations opens a PDF with the equations, inputs, notes and references for all twenty-six tabs.
- Save Model and Load Model store and restore the inputs of every tab in one file.
- Export to Excel writes the inputs and results of every calculated tab to one workbook, with a summary sheet and a sheet for each tab. Input tables such as the fluid layers and pipe fittings are included, and numeric results are split into quantity, value and units, so they can be used in Excel.
- The Standard Atmosphere tab can send its air density, viscosity, pressure and temperature to the Drag & Lift, Vortex Shedding, Pitot Tube and Compressible Flow tabs.
- Plots open in separate windows: hydrostatic pressure, the Moody diagram, the system curve, vortex shedding, sloshing and acoustic mode shapes, and the standard atmosphere. Closing the app closes them too.
SOURCES
The app uses standard textbook methods:
- Munson, Young and Okiishi, Fundamentals of Fluid Mechanics, and F.M. White, Fluid Mechanics.
- Crane Technical Paper No. 410, for fitting loss coefficients.
- ISO 5167, for orifice, nozzle and venturi meters.
- Colebrook and Haaland, for the pipe friction factor.
- NACA Report 1135, for compressible flow.
- Wylie and Streeter, Fluid Transients in Systems, for water hammer.
- V.T. Chow, Open-Channel Hydraulics.
- R.D. Blevins, Flow-Induced Vibration and Formulas for Natural Frequency and Mode Shape, and Hoerner, Fluid-Dynamic Drag.
- Pump Handbook and ANSI/HI 9.6.1, for pumps and NPSH margin.
- Principles of Naval Architecture, for barge stability.
- NASA SP-106, The Dynamic Behavior of Liquids in Moving Containers, for sloshing.
- Kinsler et al., Fundamentals of Acoustics, for duct acoustics.
- U.S. Standard Atmosphere, 1976.
- Bergman, Lavine, Incropera and DeWitt, Fundamentals of Heat and Mass Transfer, and Dittus and Boelter (1930), for convection; Cengel and Cimbala, Fluid Mechanics, for the water and air properties.
- ASME B36.10M, for Schedule 40 pipe sizes, and the ASHRAE Handbook, Fundamentals, for pipe sizing.
- ANSI/ISA-75.01.01 (IEC 60534-2-1), for control valve sizing.
- Ten States Standards, Recommended Standards for Wastewater Facilities, for the sewer self-cleaning velocity.
Full references are in the View Equations PDF. Coefficients such as Cd, CD, K and Manning n, and the service velocity ranges, are typical values. Use the values for your own hardware and project where they are known.
The app is also part of the Vibrationdata Matlab Signal Analysis & Structural Dynamics Package. Please send me an email if you have questions or suggestions.
Tom Irvine
More stand-alone Matlab GUIs: Matlab Engineering GUI Packages Hub
Learn This in a Live Course
Acoustic modes, Helmholtz resonators and aeolian tones are covered in the Acoustics & Statistical Energy Analysis course, and pumps, fans and blowers in the Machinery Acoustics, Vibration & Rotor Dynamics course. The February 2027 series includes live one-hour classes, IACET CEUs, recorded sessions and slides. See the schedule and fees or register here.
1 thought on “Fluid Dynamics Matlab GUI Package”