Machine Pressure Vessel
machine_pressure_vesselCalculate pressure-vessel stresses and wall sizing for thin/thick cylinders and spheres under internal/external pressure, including von Mises/Tresca, bore displacement, and allowable thickness.
Instructions
Thin-wall membrane or thick-wall Lame cylinder/sphere under internal/external pressure. Returns stresses, von Mises/Tresca, elastic bore displacement, and hoop-allowable wall sizing. Cylinder ends closed/open/constrained. Warns at r/t<10 with thin error. A sphere is a full sphere or hemispherical end only: no ellipsoidal/torispherical heads, nozzle openings or code check. joint_efficiency scales the allowable; corrosion_allowance is added to the sized wall.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"geometry": "<geometry>",
"inner_radius": "<inner_radius>",
"internal_pressure": "<internal_pressure>"
},
"name": "machine_pressure_vessel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ends | No | Cylinder 'closed', 'open', or 'constrained' (zero axial strain). Sphere: 'closed' only. | closed |
| model | No | 'thin' membrane or 'thick' Lame; wall sizing always reports both methods. | thick |
| radius | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| geometry | Yes | 'cylinder' or 'sphere'; spheres require closed geometry. | |
| thickness | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| unit_system | No | Output units: 'metric' (mm, N, MPa) or 'imperial' (inch, lbf, ksi). | metric |
| inner_radius | Yes | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| outer_radius | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| poisson_ratio | No | Finite dimensionless coefficient; zero selects the documented automatic value where supported. | |
| yield_strength | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| youngs_modulus | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| allowable_stress | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| joint_efficiency | No | Weld joint efficiency E, 0.5..1 (default 1): wall sizing uses the allowable stress times E; stresses are not changed. | |
| external_pressure | No | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | 0 MPa |
| internal_pressure | Yes | Physical quantity with unit, e.g. '25 mm', '100 N*m', '200 MPa'; optional inputs use ''. | |
| corrosion_allowance | No | Metal added to the sized wall, e.g. '1 mm'; '' = none. Gives nominal_thickness_*; with thickness, the margin after corrosion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |