lpm_nozzle
Converging-diverging nozzle: wall Mach and pressure across the design space. A Large Physics Model over the design space: the geometry and the operating point in, the field on the body's surface out (mach, pressure_over_chamber on 202 to 202 points per design). Domain: propulsion / rocket and gas-turbine nozzles.
lpm_nozzle v1.0.0 (revision v1.0.0) · part of the PINNeAPPle zoo · training data PINNeAPPle-Labs/lpm-nozzle-heldout
Try it without installing anything: PINNeAPPle zoo demo (pick lpm_nozzle: its predictions along each input with their band and where its physics checks warn or fail, and your own inputs evaluated in the browser).
Task: Converging-diverging nozzle: wall Mach and pressure across the design space
Inputs
| Name | Unit | Description |
|---|---|---|
area_ratio_exit |
- | design parameter of the family (bounds in validity_range) |
chamber_ratio |
- | design parameter of the family (bounds in validity_range) |
throat_radius_m |
- | design parameter of the family (bounds in validity_range) |
half_angle_deg |
- | design parameter of the family (bounds in validity_range) |
gamma |
- | design parameter of the family (bounds in validity_range) |
r_gas_j_kg_k |
- | design parameter of the family (bounds in validity_range) |
Outputs
| Name | Unit | Description |
|---|---|---|
mach |
- | the family's reference field on the body's surface points |
pressure_over_chamber |
- | the family's reference field on the body's surface points |
Validity range
area_ratio_exit: [2.0, 25.0]chamber_ratio: [2.5, 12.0]throat_radius_m: [0.02, 0.08]half_angle_deg: [8.0, 30.0]gamma: [1.15, 1.3]r_gas_j_kg_k: [250.0, 400.0]regime: inside the family's declared geometry and operating bounds
Known limitations
- gate accuracy: failed -- relative L2 against the reference on the held-out points
- the reference itself: analytic — quasi-1-D isentropic flow of a calorically perfect gas, with the assumptions it lists
- agreement with a solver or with measured data for any geometry of this family
- whether the ensemble spread is calibrated: it is the spread between bootstrap heads
- behaviour outside the declared geometry and operating bounds of the family
- the gate accuracy: failed
- the gate conservation: not run
- the gate boundary: not run
- the gate residual: not run
- the metrics shipped with this release are recomputed on a 150-design sample of the held-out set; the campaign's full-set number is under campaign/held_out_relative_l2 (400 designs)
Architecture
LargePhysicsModel—{"dim": 2, "n_fields": 2, "n_params": 2, "radii": [0.1, 0.4, 1.2], "n_freq": 6, "width": 128, "code": 32, "n_heads": 4, "backbone": "attention", "attn_heads": 4, "attn_layers": 2}
Physics
- \frac{p}{p_0}=\left(1+\frac{\gamma-1}{2}M^2\right)^{-\frac{\gamma}{\gamma-1}}
Validation
Reference: quasi-1-D isentropic flow of a calorically perfect gas -- Sutton & Biblarz, Rocket Propulsion Elements, 9th ed. (2017), ch. 3; NACA Report 1135 (1953), eqs. 43-45 and 80; pinneapple_physics.closed_form.rocket_nozzle and .compressible. Assumptions: one-dimensional section averages, isentropic: no shocks, friction, heat loss or separation; constant gamma, calorically perfect gas; flow attached and expanded to the exit area ratio; the field is p/p_chamber; the physical pressure is that times the chamber pressure
| Metric | Value |
|---|---|
| heldout/relative_l2 | 0.04312645949301628 |
| heldout/relative_l2_p90 | 0.06203617622711732 |
| heldout/absolute_error_p90 | 0.15784272551536555 |
| heldout/constant_field_baseline_relative_l2 | 0.6645460212441746 |
| heldout/n_designs | 150.0 |
| campaign/held_out_relative_l2 | 0.04153165490475794 |
| campaign/held_out_relative_l2_p90 | 0.06197898012868805 |
| campaign/constant_field_baseline_relative_l2 | 0.6655408922752942 |
| campaign/n_designs | 400.0 |
Cost
- trainable_parameters: 341608
- train_seconds: 1661.392
- device: mps
Trust
Decision: REJECT · score 0.33 · coverage 100%
- held-out heldout/relative_l2 within the zoo acceptance limit: falhou (crítica)
- worst of the 150 stored held-out designs: 0.1485 against the family's tolerance 0.02: falhou
- score 0.33 abaixo do mínimo de 0.80
Published despite REJECT: experimental tier: shipped as a reproducible base (weights, card, held-out sample, fine-tune hook) with the family's own verdict REJECT and the measured held-out error on the card; not a verified model and not to be used as one without independent review
Training data
- family: pp_nozzle
- dataset: lpm_nozzle_heldout
- campaign: /Users/yanbarros/lpm-campaign
- split: {'policy': 'random by geometry, fixed by the seed: a held-out body is never a training body', 'seed': 0, 'holdout_fraction': 0.25, 'n_train_designs': 1200, 'n_holdout_designs': 400, 'among_refined': [], 'n_train_geometries': 300, 'n_holdout_geometries': 100, 'locked_fraction': 0.0, 'n_locked_designs': 0, 'locked_policy': 'no locked split: the whole held-out is a validation set, and is read by the refinement round'}
- full_dataset: {'schema': 'pinneapple.lpm.dataset/1', 'seed': 0, 'n_designs': 1600, 'n_geometries': 400, 'conditions_per_geometry': 4}
- sample: {'n_designs': 150, 'n_points': 30300, 'n_parameters': 6, 'n_neighbourhood_features': 15, 'dtypes': {'params': 'float64[6]', 'conditioning': 'float32[2]', 'points': 'float32[2]', 'normals': 'float32[2]', 'target': 'float32[2]', 'local': 'float32[15]', 'offsets': 'int64'}}
License: apache-2.0
Citation
Sutton & Biblarz, Rocket Propulsion Elements, 9th ed. (2017), ch. 3; NACA Report 1135 (1953), eqs. 43-45 and 80; pinneapple_physics.closed_form.rocket_nozzle and .compressible
How to use
pip install "pinneapple @ git+https://github.com/PINNeAPPle-Labs/PINNeAPPle"
import pinneapple as pp
model = pp.zoo.load("lpm_nozzle") # weights checked against their SHA-256
inputs = {"area_ratio_exit": 16.6501, "chamber_ratio": 5.06297, "throat_radius_m": 0.0224584, "half_angle_deg": 8.36361, "gamma": 1.27199, "r_gas_j_kg_k": 386.913}
out = model.predict(inputs) # warns for inputs outside the validity range
print({k: round(float(v[0]), 6) for k, v in out.items()})
# {'mach': 1.725016, 'pressure_over_chamber': 0.483426}
print(bool(model.in_range(inputs)[0])) # inside the validity range
# True
print(pp.zoo.validate(model).decisao) # card metrics reproduced + physics checks
# REJECT
The inputs are the first held-out test case of the training dataset; its reference value is mach = 1.6428, pressure_over_chamber = 0.493644. pp.zoo.evaluate("lpm_nozzle") recomputes every metric of the card on the stored reference.
Hosted inference
No Hugging Face inference provider can run this model, so the Hub widget is off (inference: false). It is a small PyTorch network, but its prediction is more than a forward pass: the inputs are encoded and normalised, the outputs denormalised (and, for ensembles, averaged with their spread), and every query is checked against the validity range and the model's physics checks. The pinneapple library does all of that (below); the ONNX graph carries the pre- and post-processing but not the checks; the zoo demo Space shows the model along a sweep of each input and runs it, with its checks, in your browser.
Files
| File | Content | SHA-256 |
|---|---|---|
weights.pt |
PyTorch state_dict (torch.load(weights_only=True)), what pp.zoo.load reads |
0ed8b62f7138cd140460a8a86a44bd736c0af3eed46dd733cb85fcce74f98a3e |
config.json |
architecture and normalisation | 9c00477ea3b1dcd719aaa1cdf5b581036f6f745567142ba84c8b0e4f80265d85 |
model_card.json |
the model card: inputs, outputs, validity range, metrics, trust report | eeff5d8d92e844d506abb153215cd68ff81a759028306a964021fa3ba64dbd50 |
model.safetensors |
the same tensors as weights.pt in safetensors format (pinneapple_hub.zoo.export.load_safetensors loads them) |
derived |
example.json |
the "How to use" case: inputs, outputs, reference, verdicts | derived |
The SHA-256 are those of the package's manifest: pp.zoo.load refuses any other file.
Cite
If you use this model, please cite PINNeAPPle (software, Zenodo DOI 10.5281/zenodo.23343062; see CITATION.cff):
@software{pinneapple,
author = {Barros, Yan and Schiassi, Enrico},
title = {PINNeAPPle},
doi = {10.5281/zenodo.23343062},
url = {https://github.com/PINNeAPPle-Labs/PINNeAPPle}
}
- Downloads last month
- -