Pneumatics
Skill ferret-physics-pneumatics · download all skills · SKILL.md
When to use#
Train air brakes, a tyre and a pump, a pneumatic door, an air gun, a diving set with a regulator, a balloon filled from tanks, a soda bottle.
The model#
Nodes are closed volumes of a gas mixture (moles per species, internal energy). Links move moles: subsonic or choked from the isentropic law (gasMassFlow), carrying enthalpy; walls exchange heat. Cylinders have gas chambers and a moving mass.
Steps#
- Add the capability
pneumatics()and a level blockphysics.pneumatics(or build aPneumaticCircuitdirectly). - Tanks with volume, pressure,
mix, and awallif heat should leave;airis the atmosphere. - Links:
orifice/linkwithcdA(orpipe),check,regulator,relief,compressor;cylinderwithvented: truefor an air spring. - Drive from programs with
(gas-valve …),(compressor …),(regulator …), read with(gas-pressure …). - For a bottle,
liquid(node, { liquidVolume, henry })(constants inEXAMPLE_LIQUIDS.water.henry, orgases: ['CO2']for the aqueous set's table, orvesselto share the dissolved gas with a chemistry vessel).
Check afterwards#
A blow-down ends at the atmosphere; a regulator holds its set pressure while the supply is above it; a fast fill warms and a slow one with a wall does not; inventory(species) is constant.
What usually goes wrong#
- A compressor stops: the tank reached its
maxPressure. - A regulator never opens: its set pressure is below the downstream pressure.
- A cylinder rod side missing: use
vented: trueor give the.rodchamber a link. - Gas names are case sensitive (
CO2,N2); an unknown one is refused with the list.
Files#
reference/pneumatics.md— physics/pneumatics.mdreference/liquids.md— Tanks and pipes, lakes and rivers, splashes and pours, and the lift of wings, sails and spinning balls: four tools for liquids at four costs.reference/media.md— Drag and buoyancy in water, mud, honey, wind and air; the atmosphere by altitude; gas volumes; floating, sinking, currents, gusts and wading.reference/api-physics-pneumatics.md— every export of@ferret/physics-pneumaticswith signature and doc commentreference/api-physics-media.md— every export of@ferret/physics-mediawith signature and doc commentreference/api-physics-liquids.md— every export of@ferret/physics-liquidswith signature and doc commentreference/commands.md— 31 commands of these packages with their arguments