Fluids Compressible
fluids_compressibleComputes compressible-flow properties for ideal gases, including isentropic, shock, expansion, Fanno, Rayleigh, and nozzle relations, with unit-checked inputs and branch-resolved inverses.
Instructions
Calorically perfect ideal-gas isentropic, normal/oblique shock, Prandtl-Meyer, Fanno, Rayleigh and nozzle mass-flow relations. NACA 1135 formulas; bracketed branch inverses. 1.01<=gamma<=2, 1e-6<=Mach<=50; attached shocks only. No real-gas or viscous nozzle model.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fluids_compressible"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Nozzle throat area, e.g. '1 cm^2'; required for nozzle; '' omits in other modes. | |
| mach | No | Mach number, e.g. 2; 0 selects inverse area/pressure input for isentropic; nozzle ignores it. | |
| mode | No | isentropic, normal_shock, oblique_shock, expansion, fanno, rayleigh, or nozzle. | isentropic |
| gamma | No | Constant heat-capacity ratio, e.g. 1.4; all modes, supported 1.01..2. | |
| branch | No | subsonic/supersonic for area inversion; weak/strong for oblique shock. | subsonic |
| density | No | Fluid mass density, e.g. '1000 kg/m^3'; all modes; default is a nominal water input, not a property correlation. | 1.2 kg/m^3 |
| deflection | No | Flow turning angle, e.g. '10 deg'; required for oblique_shock and expansion; '' omits in other modes. | |
| gas_constant | No | Specific ideal-gas constant, e.g. '287.05 J/kg/K'; needed for nozzle; no gas-name lookup. | 287.05 J/kg/K |
| back_pressure | No | Absolute nozzle outlet pressure, e.g. '1 bar'; required for nozzle, may be zero; '' omits otherwise. | |
| area_ratio_input | No | A/A*, e.g. 1.6875; isentropic inverse only with mach=0; 0 omits. | |
| dynamic_viscosity | No | Fluid dynamic viscosity, e.g. '1 mPa*s'; all modes; '' requires kinematic_viscosity instead. | 18.1 uPa*s |
| kinematic_viscosity | No | Fluid kinematic viscosity, e.g. '1 cSt'; '' omits; supply only when dynamic_viscosity is ''. | |
| stagnation_pressure | No | Absolute nozzle reservoir pressure, e.g. '2 bar'; required for nozzle; '' omits in relation modes. | |
| pressure_ratio_input | No | p0/p, e.g. 7.8244; isentropic inverse only with mach=0; 0 omits. | |
| discharge_coefficient | No | Nozzle discharge coefficient Cd in (0,1], e.g. 0.98; nozzle only. | |
| stagnation_temperature | No | Absolute nozzle reservoir temperature, e.g. '20 degC'; required for nozzle; '' omits otherwise. |