Pneumatic Tank
Pneumatics
Run the live example
Free · no sign-up · runs in your browser
The Pneumatic Tank models an air receiver or pressure vessel that stores compressed gas. Mass flow entering the port raises pressure according to the ideal gas law and polytropic dynamics.
Real-World Analog: Represents an air receiver vessel, accumulator bottle, or charging reservoir that stores compressed gas to buffer pressure spikes and meet peak flow demands.
Mathematical Model
Where:
\gammais the isentropic exponent (1.4 for air)Ris the gas constant for dry air (287.058 J/(kg·K))Tis the gas temperature (K)Vis the tank internal volume (m³)\dot{m}is the net mass flow rate entering the port (kg/s)
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | port |
Port | number | Required |
| → In | H |
H | number | Optional |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
volume |
Volume | number | 0.01 |
Internal volume of the tank / vessel |
initial_pressure |
Initial pressure | number | 600000 |
Absolute pressure at t = 0 (default: 6 bar abs) |
temperature |
Temperature | number | 293.15 |
Gas temperature in Kelvin (default: 20 °C) |
gamma |
Isentropic exponent (γ) | number | 1.4 |
Ratio of specific heats (1.4 for diatomic dry air) |
Usage Examples
Receiver vessel charging from supply
The example examples/basic-pneumatictank.json charges an empty 10 L receiver vessel from 1 atm up to 6 bar abs through an ISO 6358 proportional pneumatic valve, showing the polytropic pressure accumulation curve.
Tank discharge through an orifice
Discharges a pressurized tank into the ambient atmosphere through a calibrated restriction nozzle.
Remarks & Best Practices
- Conserving network: Conserves pneumatic mass flow rate at its port.
- Absolute pressure: The state tracks absolute pressure in Pa. To display gauge pressure, subtract 101325 Pa.
- Solvers: Well-suited for TR-BDF2 and RK45 solvers.