Hydraulics and Pneumatics

Chapter 12
Modelling, Simulation and Design Validation

Bachelors Program in Machine Technology
Hydraulics and Pneumatics   •   Bachelor

Modelling, Simulation and Design Validation

Introduction

Hydraulic and pneumatic systems are energy-conversion systems whose behaviour depends on pressure, flow, motion, fluid properties, restrictions, compliance, friction, leakage, heat transfer and control logic. A design that appears satisfactory from a steady-state calculation may become unstable, noisy, slow, or unsafe during starting, stopping, valve switching, load reversal, or emergency shutdown. Modelling and simulation provide a systematic way to predict these behaviours before hardware is built; validation establishes whether the predictions are sufficiently trustworthy for engineering decisions.

A model is a purposeful representation of a physical system. It may be a simple algebraic relationship, a dynamic differential-equation model, a numerical simulation, or a data-driven digital twin. No model is universally correct: its usefulness depends on its assumptions, parameter quality, intended application and validation evidence.

Learning Objectives

By the end of this chapter, the student should be able to:

  1. Formulate steady-state and dynamic models of hydraulic and pneumatic components.
  2. Distinguish ideal, lumped-parameter, distributed-parameter and data-driven models.
  3. Explain the effects of compressibility, fluid inertia, leakage, friction, cavitation and transients.
  4. Select suitable simulation methods and interpret simulation results critically.
  5. Design a measurement and validation plan using uncertainty and error metrics.
  6. Explain how digital twins support operation, maintenance and design improvement.
  7. Identify modelling assumptions, safety risks and governance requirements.

1. Modelling Foundations

1.1 Model hierarchy

A useful model should be no more complicated than necessary for the decision being made. Four levels are common:

ModelMain purposeTypical representation
ConceptualIdentify energy paths and causalityBlock diagram or circuit sketch
Steady-statePredict operating pointsAlgebraic equations
Dynamic lumped-parameterPredict time responseOrdinary differential equations
High-fidelity or distributedResolve spatial, thermal or fluid-detail effectsPartial differential equations or CFD

A valve-sizing calculation may require only pressure-flow equations. Servo positioning, however, requires a dynamic model including valve flow gain, actuator motion, fluid compliance, friction, load inertia and controller behaviour.

The modelling boundary must be stated explicitly. For example, a cylinder model may include the cylinder, pipes and valve but exclude pump dynamics. This exclusion is acceptable only if pump pressure remains effectively constant over the operating range.

1.2 Conservation laws

Hydraulic and pneumatic models are based primarily on conservation of mass, momentum and energy. For a control volume, mass conservation is

ṁin − ṁout = d(mcv)/dt

where ṁ is mass flow rate in kg/s and m_cv is mass contained in the control volume in kg. For an incompressible liquid at constant density, this becomes a volume-flow balance: inflow minus outflow equals the rate of change of stored volume.

For a fluid chamber of volume V, pressure p and effective bulk modulus β_e, the compressibility relation is commonly written

Qnet = (V/βe)(dp/dt)

where Q_net is net flow into storage in m³/s, V is chamber volume in m³, β_e is effective bulk modulus in Pa, and p is pressure in Pa. This lumped equation assumes uniform pressure, small pressure changes relative to the absolute pressure, and negligible spatial pressure gradients within the chamber.

For a gas obeying the ideal-gas law,

pV = mRT

where p is absolute pressure in Pa, V is volume in m³, m is gas mass in kg, R is the specific gas constant in J/(kg·K), and T is absolute temperature in K. If the gas mass is constant and the process is approximately isothermal, pV is constant. If the process is rapid and heat transfer is negligible, an approximately adiabatic relation is used:

pVn = constant

where n is the polytropic exponent. For air, n is often between approximately 1 and 1.4 depending on the time scale and thermal exchange; it must be measured or justified rather than assumed automatically.

1.3 Component constitutive relations

A constitutive relation describes the behaviour of a component. A simplified restriction law for turbulent liquid flow is

Q = Cd A √(2∆p/ρ)

where Q is volume flow rate, C_d is discharge coefficient, A is effective flow area, ∆p is pressure drop and ρ is fluid density. The relation assumes sufficiently developed turbulent flow and a suitable orifice-like restriction. It is not universally valid for laminar flow, spool metering edges, compressible gas flow or cavitating flow.

Rearranging gives the pressure-flow resistance form

∆p = (ρ/2)(Q/(Cd A))²

A hydraulic motor or cylinder converts pressure and flow into force, torque and velocity. For an ideal cylinder,

F = Ap∆p

and

v = Q/Ap

where F is force in N, A_p is effective piston area in m², ∆p is pressure difference in Pa, v is piston velocity in m/s and Q is flow rate in m³/s. Real systems require seal friction, leakage, acceleration and back-pressure terms.

For a rotary hydraulic motor, ideal torque and speed are approximately

T = D∆p/(2π)
ω = Q/D

where T is torque in N·m, D is displacement per revolution in m³/rev, ω is angular speed in rad/s and Q is flow rate. Volumetric and mechanical efficiencies modify these relationships.

2. Steady-State Modelling

A steady-state model sets time derivatives to zero. It predicts operating points after transients have decayed. A useful modelling sequence is:

  1. Define inputs, outputs, states and boundary conditions.
  2. Draw the hydraulic or pneumatic circuit and indicate assumed flow directions.
  3. Write continuity equations at junctions.
  4. Write pressure-drop, force, torque and load equations.
  5. Insert component characteristics and solve simultaneously.
  6. Check signs, units, limiting cases and physical plausibility.

Worked example: cylinder operating point

An ideal hydraulic cylinder has piston area 20 cm² and receives 12 L/min. The opposing load is 18 kN. Neglect friction and return-line pressure. Convert units:

A_p = 20 × 10⁻⁴ m² = 0.002 m²

Q = 12 L/min = 12 × 10⁻³/60 = 2.00 × 10⁻⁴ m³/s.

The required pressure is

∆p = F/Ap = 18,000/0.002 = 9.0 × 10⁶ Pa = 90 bar

The piston speed is

v = Q/Ap = (2.00 × 10⁻⁴)/0.002 = 0.10 m/s

Thus the ideal operating point is 90 bar and 0.10 m/s. In practice, pressure must be higher because of friction, leakage, valve losses and acceleration. If the pump relief setting is 100 bar, only 10 bar remains for all additional losses, so the design margin is small.

Steady-state models are valuable for sizing pumps, valves, actuators, conductors and heat exchangers. They cannot predict overshoot, pressure spikes, oscillation, settling time or start-up behaviour.

3. Dynamic Models

3.1 States and differential equations

A state is a minimum variable set that, together with inputs, determines future system behaviour. In a hydraulic actuator, pressure in a chamber and piston velocity may be states. In a pneumatic actuator, gas pressure and piston position are commonly states.

A general nonlinear state-space model is

ẋ = f(x,u,θ,t)
y = g(x,u,θ,t)

where x is the state vector, u is the input vector, y is the measured-output vector, θ is the parameter vector and t is time. Functions f and g may include nonlinear valve flow, Coulomb friction, saturation, dead zones and leakage.

For a moving hydraulic cylinder with one chamber, a simplified model is

Q − Ap v − Cl∆p = (V/βe)(d∆p/dt)
M(dv/dt) = Ap∆p − Fload − Ffriction
dx/dt = v

Here C_l is leakage coefficient, M is moving mass, x is position, F_load is external load and F_friction represents seal and guide friction. The equations assume uniform chamber pressure and neglect pipe inertia, distributed pressure waves and thermal variation.

3.2 Linearization and transfer functions

For small perturbations around an operating point, a nonlinear model can be linearized. If Δx, Δu and Δy denote small deviations, then

∆ẋ = A∆x + B∆u
∆y = C∆x + D∆u

The matrices A, B, C and D are evaluated at the chosen operating point. Linear models are useful for control design and stability analysis, but they may be inaccurate near valve saturation, flow reversal, deadband, pressure limits or friction breakaway.

A first-order response has the form

y(t) = y_∞ + [y(0) − y_∞]e^(−t/τ)

where τ is the time constant. At t = τ, approximately 63.2% of the total change has occurred. This result applies to a stable first-order linear system, not to a general hydraulic circuit.

3.3 Numerical simulation

Most practical dynamic models are solved numerically. Explicit Runge–Kutta methods are convenient for smooth, non-stiff systems. Implicit methods are often preferable for stiff systems containing very small fluid compliance, large inertance, hard stops or fast valve dynamics. The simulation time step must resolve the fastest significant dynamics; increasing the step until results look smooth is not a valid accuracy test.

Good practice includes step-size refinement, event handling for valve switching and end stops, conservation checks, and comparison with limiting analytical solutions. A simulation that produces a plausible plot may still contain unit errors or an incorrect sign convention.

4. Transients, Compressibility and Cavitation

4.1 Hydraulic transients

Rapid changes in velocity create pressure disturbances. A simplified water-hammer estimate is

∆p = ρa∆v

where ∆p is pressure change, ρ is liquid density, a is pressure-wave speed and ∆v is fluid velocity change. This relation is an idealized Joukowsky result for a rapid change in velocity in a pipe. It assumes a sufficiently fast event relative to wave travel, and it must be modified when pipe elasticity, valve closure time, friction and fluid entrained air are important.

The wave travel time through a pipe of length L is approximately

tw = L/a

If valve closure occurs over a time comparable with or shorter than relevant wave travel times, pressure peaks may be severe. Flexible hoses and entrained air lower effective wave speed but may increase compliance and oscillation.

4.2 Pneumatic compressibility

Compressed air stores substantial energy. A pneumatic actuator can therefore accelerate rapidly and exhibit bounce, overshoot and stick-slip. A model must use absolute pressure in the gas law, although gauge pressure is convenient for reporting pressure relative to atmosphere. Temperature changes may be significant during rapid filling and exhausting.

4.3 Cavitation

Cavitation occurs when local absolute pressure falls near or below the liquid vapour pressure. Vapour bubbles can collapse violently in higher-pressure regions, causing noise, erosion and vibration. The available margin is often expressed using net positive suction head:

NPSHA = pabs,suction/(ρg) + z − hL − pv/(ρg)

where NPSH_A is available suction head in m, p_abs,suction is absolute pressure at the pump inlet, z is elevation head relative to the reference, h_L is suction-line loss, p_v is vapour pressure and g is gravitational acceleration. The exact reference convention must be stated. NPSH available should exceed the pump’s required NPSH with an appropriate margin; the manufacturer’s data and system transients govern final acceptance.

Cavitation prevention includes reducing suction losses, lowering fluid temperature, increasing inlet pressure, avoiding excessive pump speed, removing air ingress and preventing restrictive inlet filters from becoming blocked.

5. Simulation and Digital Twins

Simulation tools may represent circuits graphically, solve component equations, or couple hydraulic, mechanical, electrical and control domains. Model selection should follow the engineering question:

QuestionAppropriate model
Is the actuator large enough?Steady-state algebraic model
Will the position overshoot?Dynamic lumped model
Will a long pipe generate a pressure wave?Transient wave or distributed model
Is a valve edge causing local cavitation?Detailed component or CFD analysis
Can failure be detected during operation?Calibrated digital twin with live data

A digital twin is more than a simulation file. It is a maintained digital representation connected, where appropriate, to a physical asset through data, parameter updates and defined use cases. A practical architecture contains: physical system; sensors and data acquisition; communication and storage; model and parameter-estimation layer; visualization and decision layer.

Digital twins can estimate unmeasured pressure, detect leakage, predict filter blockage and support condition-based maintenance. They also introduce cybersecurity, data-quality, version-control and ownership requirements. A twin should display confidence or alarm status rather than present every estimate as fact.

Artificial intelligence may assist anomaly detection or identify model parameters from operating data. However, a data-driven predictor trained only on normal operation may fail during rare transients. Physics-based constraints, representative training data, out-of-distribution detection and human review are essential in safety-related applications.

6. Design Validation and Experimentation

Validation asks whether a model represents the real system sufficiently for its intended purpose. Verification asks whether the equations and computer implementation correctly represent the specified model. Both are necessary.

A validation plan should specify:

  • the operating envelope, including pressure, temperature, load, speed and duty cycle;
  • measurable outputs and acceptance limits;
  • sensor type, range, bandwidth, calibration and installation location;
  • excitation or test sequence;
  • sampling rate and synchronization method;
  • uncertainty sources and data-rejection rules;
  • safety controls and emergency shutdown conditions.

Sensors must be selected according to the phenomenon being measured. A pressure transducer with a low sampling bandwidth cannot validate a fast pressure spike. A flow meter installed downstream of a pulsating pump may require averaging or pulsation compensation. Sensor placement can itself alter restriction, volume and dynamic response.

6.1 Error metrics

For measured values y_i and model predictions ŷ_i, the residual is

ei = yi − ŷi

The root-mean-square error is

RMSE = √[(1/N)∑(yi − ŷi)²]

where N is the number of paired observations. RMSE has the same units as the output and penalizes large errors. The mean absolute error is

MAE = (1/N)∑|yi − ŷi|

A normalized error may be useful, but the denominator must be stated because normalization by mean, range or rated value produces different interpretations. Percentage error becomes misleading when the reference value is near zero.

For repeated measurements, the sample mean and standard deviation are

ȳ = (1/N)∑yi
s = √[(1/(N−1))∑(yi − ȳ)²]

The N−1 denominator estimates variability from a sample rather than treating it as the complete population. Random uncertainty can often be reduced by repetition; systematic bias, such as an uncalibrated transducer, cannot.

If independent input quantities x_j contribute to a result y, a first-order combined standard uncertainty is commonly estimated by

uc(y) = √[∑(∂y/∂xj)²u²(xj)]

where u(x_j) is the standard uncertainty of x_j. This propagation assumes small uncertainties and, in the displayed form, negligible correlation. Correlated inputs require covariance terms.

Validation should compare trends and dynamic features, not only one scalar error. Important features include rise time, peak pressure, overshoot, settling time, steady-state error, valve switching delay and energy consumption. Acceptance criteria should be defined before viewing the results to avoid unconsciously moving the goalposts.

7. Illustrative Case: Servo-Hydraulic Press Positioning

This is a fictional illustrative case based on common industrial practice.

Background

A hydraulic press uses a proportional valve and cylinder to move a 1,200 kg platen through a 0.6 m stroke. The required pressing force is 25 kN, and the target positioning accuracy is ±0.5 mm. Operators report occasional overshoot and a sharp pressure noise during rapid reversal.

Problem definition

A steady-state calculation predicts adequate force and speed, but it cannot explain the noise or position error. The engineering team therefore develops a dynamic model containing valve flow gain, two chamber pressures, piston motion, effective bulk modulus, leakage, friction, load inertia and a position controller.

Analysis and approach

The model is first verified using conservation checks and a zero-command test. It is then simulated for slow motion, rapid reversal and emergency stop. The model predicts a pressure peak during reversal caused by trapped fluid compressibility and rapid deceleration. A sensitivity study shows that effective bulk modulus, valve spool delay and seal friction dominate the position response.

A test plan uses calibrated pressure transducers at both cylinder ports, a linear position encoder, a flow meter and synchronized data acquisition. The sampling rate is selected substantially above the dominant mechanical bandwidth, while a separate high-bandwidth channel captures pressure spikes. Tests are performed at several loads and oil temperatures.

Outcome

Measured steady-state position agrees within 0.3 mm, but the initial model underpredicts the reversal pressure peak by 22%. Inspection identifies a long hose containing entrained air, which reduces effective stiffness and changes wave propagation. The model is updated using measured hose volume and an estimated air-content parameter. A revised valve ramp reduces reversal severity, and an accumulator is added only after confirming that it does not degrade control bandwidth. Follow-up testing shows peak pressure within the design limit and positioning error below ±0.5 mm.

Learning points

  1. A model can be adequate for force sizing but inadequate for transient prediction.
  2. Parameter identification must include installation details, not only catalogue data.
  3. Pressure sensors at different locations reveal dynamics that a single sensor hides.
  4. Model updating should be traceable; arbitrary parameter tuning weakens confidence.
  5. Safety validation must include worst-case load, temperature, supply pressure and emergency events.

8. Limitations, Safety and Governance

Models are limited by uncertain parameters, unmodelled physics, numerical error and changing equipment condition. A validated model is not permanently valid: seal wear, oil contamination, hose replacement, temperature changes and controller updates can invalidate earlier evidence.

Hydraulic and pneumatic systems can store dangerous energy even when the pump or compressor is off. Simulation does not replace lockout/tagout, pressure release, guarding, rated components, relief protection or documented risk assessment. Test procedures should define maximum allowable pressure, safe discharge paths and emergency isolation.

Traceability is especially important in regulated or safety-critical machinery. Record model version, software version, parameter source, calibration certificates, test conditions, raw data, filtering choices and acceptance decisions. Cybersecurity controls are required when a digital twin connects to industrial networks. Access rights, secure updates and protection against manipulated sensor data are engineering requirements, not optional administrative details.

Best-Practice Workflow

  1. State the engineering decision and model purpose.
  2. Define system boundaries, assumptions and units.
  3. Build the simplest model that can answer the question.
  4. Verify equations, code, signs and limiting cases.
  5. Estimate parameters from reliable data.
  6. Simulate nominal and worst-case conditions.
  7. Identify dominant uncertainties through sensitivity analysis.
  8. Design safe, synchronized measurements.
  9. Compare predictions and observations using suitable metrics.
  10. Update the model transparently and validate it on independent conditions.
  11. Document applicability limits and maintenance requirements.

Chapter Summary

Steady-state models predict operating points, whereas dynamic models describe stored energy, motion and time-dependent interaction. Hydraulic compressibility, pneumatic gas storage, fluid inertia, friction, leakage and valve characteristics determine transient behaviour. Cavitation and water hammer require absolute-pressure and wave-propagation considerations that simple sizing calculations cannot provide.

Simulation is valuable only when its assumptions, numerical implementation and parameters are controlled. Verification concerns correct implementation of the model; validation concerns agreement with physical evidence for a defined purpose. Measurement systems must have suitable range, bandwidth, calibration and installation. Residuals, RMSE, MAE and uncertainty propagation support quantitative assessment, but dynamic features and worst-case events must also be examined.

Digital twins extend simulation by connecting a maintained model to operational data. They can support monitoring and predictive maintenance, but require data quality, cybersecurity, version control and human oversight. Safe design validation combines modelling, controlled experimentation, uncertainty analysis, documented acceptance criteria and physical safety procedures.

Key Terms

Model: A purposeful representation of a physical system.

Steady-state model: A model in which time derivatives are zero.

Dynamic model: A model that predicts time-dependent behaviour.

State: A variable needed to determine future system behaviour with inputs known.

Constitutive relation: An equation describing a component or material response.

Effective bulk modulus: A measure of fluid-volume stiffness including fluid, hose and entrained-air effects.

Compressibility: The ability of a fluid or gas volume to change pressure as mass or volume changes.

Fluid inertia: Resistance to changes in fluid velocity caused by fluid mass.

Cavitation: Formation and collapse of vapour cavities when local absolute pressure becomes too low.

Water hammer: A pressure disturbance caused by rapid change in fluid velocity.

Verification: Establishing that a model or implementation satisfies its specification.

Validation: Establishing that a model represents the physical system adequately for its intended use.

Digital twin: A maintained digital representation linked to a physical asset and its data.

Residual: The difference between measured and predicted output.

RMSE: Root-mean-square error between paired observations and predictions.

Uncertainty: A quantified lack of complete knowledge about a measurement or model result.

Sensitivity analysis: Study of how output changes when parameters or inputs vary.

Parameter identification: Estimation of model parameters from measurements.

Model boundary: The stated division between included and excluded physical phenomena.

Review Questions

Short Answer Questions

  1. Distinguish verification from validation.
  2. Why must absolute pressure be used in the ideal-gas law?
  3. State two limitations of a steady-state model.
  4. What physical effects are represented by effective bulk modulus?
  5. Why can repetition reduce random uncertainty but not systematic bias?

Long Answer Questions

  1. Explain a systematic procedure for developing and validating a dynamic hydraulic-cylinder model.
  2. Discuss the assumptions and limitations of the orifice pressure-flow equation.
  3. Explain the causes and prevention methods of hydraulic transients and cavitation.
  4. Describe a suitable architecture and governance plan for an industrial pneumatic digital twin.
  5. Compare lumped-parameter, distributed-parameter and data-driven models for machine design.

Analytical / Application Questions

  1. A cylinder has an effective area of 0.003 m² and receives 18 L/min. Calculate its ideal speed. If the load is 24 kN, calculate the ideal pressure difference. State two real effects that would increase the required supply pressure.
  2. Design a validation experiment for a proportional pneumatic actuator that exhibits overshoot. Specify sensors, sampling considerations, test inputs, uncertainty sources and acceptance metrics.
  3. A simulation predicts a pressure peak that is absent from measured data. Develop a diagnostic sequence considering sensor bandwidth, valve timing, trapped air, pipe modelling, sampling and parameter error.

Multiple Choice Questions with Answers

Question 1

Which equation represents the lumped compressibility relation for a hydraulic chamber?

A. Qnet = (V/βe)(dp/dt)

B. Q = Ap/v

C. pV = mRT

D. T = D∆p/(2π)

Correct Answer: A. Qnet = (V/βe)(dp/dt)

Question 2

A hydraulic cylinder with area 0.002 m² receives 2.0 × 10⁻⁴ m³/s. What is its ideal speed?

A. 0.01 m/s

B. 0.10 m/s

C. 1.0 m/s

D. 10 m/s

Correct Answer: B. 0.10 m/s

Question 3

Which quantity is essential in the ideal-gas law?

A. Gauge pressure only

B. Absolute pressure

C. Valve displacement only

D. Hydraulic bulk modulus

Correct Answer: B. Absolute pressure

Question 4

What does RMSE measure?

A. The average signed error only

B. The maximum possible pressure

C. The square root of the mean squared prediction error

D. The gas polytropic exponent

Correct Answer: C. The square root of the mean squared prediction error

Question 5

Which event most directly produces water hammer?

A. Very slow valve adjustment

B. Rapid change in fluid velocity

C. Constant reservoir pressure

D. Steady laminar flow

Correct Answer: B. Rapid change in fluid velocity

Question 6

What is the principal purpose of model verification?

A. To prove that the physical machine never fails

B. To establish that implementation correctly represents the specified model

C. To eliminate all measurement uncertainty

D. To replace safety testing

Correct Answer: B. To establish that implementation correctly represents the specified model

Question 7

Which factor can strongly reduce hydraulic stiffness?

A. Entrained air

B. Higher measurement resolution

C. A larger RMSE denominator

D. A lower data-storage rate

Correct Answer: A. Entrained air

Question 8

For a first-order stable system, the response has completed approximately what fraction of its final change after one time constant?

A. 10.0%

B. 36.8%

C. 63.2%

D. 99.9%

Correct Answer: C. 63.2%

Question 9

Which statement about a digital twin is most accurate?

A. It is necessarily a static CAD drawing

B. It is a maintained digital representation connected to an asset and relevant data

C. It requires no sensor or data-quality controls

D. It always replaces physical inspection

Correct Answer: B. It is a maintained digital representation connected to an asset and relevant data

Question 10

Why is a pressure transducer's bandwidth important during transient validation?

A. Bandwidth determines the fluid density

B. Insufficient bandwidth can hide rapid pressure peaks

C. Bandwidth eliminates cavitation

D. Bandwidth sets the cylinder area

Correct Answer: B. Insufficient bandwidth can hide rapid pressure peaks

Hydraulics and Pneumatics
Chapter 12 of 15