lpm_car

Ahmed body at Re 7.7e4 to 2.3e5: surface Cp over a published OpenFOAM RANS campaign. A Large Physics Model over the design space: the geometry and the operating point in, the field on the body's surface out (cp on 1751 to 1751 points per design). Domain: aerodynamics / automotive, bluff-body wake (real RANS data).

lpm_car v1.0.0 (revision v1.0.0) · part of the PINNeAPPle zoo · training data PINNeAPPle-Labs/lpm-car-heldout

Try it without installing anything: PINNeAPPle zoo demo (pick lpm_car: 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: Ahmed body at Re 7.7e4 to 2.3e5: surface Cp over a published OpenFOAM RANS campaign

Inputs

Name Unit Description
slant_deg - design parameter of the family (bounds in validity_range)
clearance_mm - design parameter of the family (bounds in validity_range)
speed_ms - design parameter of the family (bounds in validity_range)
slant_deg - design parameter of the family (bounds in validity_range)
clearance_mm - design parameter of the family (bounds in validity_range)

Outputs

Name Unit Description
cp - the family's reference field on the body's surface points

Validity range

  • slant_deg: [0.0, 40.0]
  • clearance_mm: [30.0, 80.0]
  • speed_ms: [20.0, 60.0]
  • regime: inside the family's declared geometry and operating bounds

Known limitations

  • the reference itself: solver — steady 3-D RANS, OpenFOAM simpleFoam with k-omega SST on the Ahmed body half model, 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 conservation: not run
  • the gate boundary: not run
  • the gate residual: not run
  • the metrics shipped with this release are recomputed on a 10-design sample of the held-out set; the campaign's full-set number is under campaign/held_out_relative_l2 (10 designs)

Architecture

  • LargePhysicsModel — {"dim": 3, "n_fields": 1, "n_params": 3, "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

  • C_p=\frac{p-p_\infty}{\frac{1}{2}\rho U^2}

Validation

Reference: steady 3-D RANS, OpenFOAM simpleFoam with k-omega SST on the Ahmed body half model -- Ahmed, Ramm & Faltin (1984), Some salient features of the time-averaged ground vehicle wake, SAE 840300 (the body and its slant-angle drag curve); PINNeAPPle campaign ahmed_body_e2e in this repository (54 runs, L1 mesh with five prism layers, 800 iterations, outputs averaged over 400-800). Assumptions: steady RANS with a fully turbulent closure: the unsteady wake of a real car is time-averaged, not resolved; half model with a symmetry plane and a moving ground the campaign fixes; the ride height is the clearance parameter; the field is the pressure coefficient on the stored surface; the campaign also reports the drag breakdown, which is not part of this field; the mesh is L1: a grid study is part of the campaign's verification, not of this family

Metric Value
heldout/relative_l2 0.13033306281692858
heldout/relative_l2_p90 0.15404428501271217
heldout/absolute_error_p90 0.10008905231952667
heldout/constant_field_baseline_relative_l2 0.8814886936353358
heldout/n_designs 10.0
campaign/held_out_relative_l2 0.13033319576436148
campaign/held_out_relative_l2_p90 0.1532260580341371
campaign/constant_field_baseline_relative_l2 0.8816451997765822
campaign/n_designs 10.0

Cost

  • trainable_parameters: 344292
  • train_seconds: 920.859
  • device: mps

Trust

Decision: REVIEW · score 0.67 · coverage 100%

  • worst of the 10 stored held-out designs: 0.1614 against the family's tolerance 0.14: falhou
  • score 0.67 abaixo do mínimo de 0.80

Published despite REVIEW: experimental tier: shipped as a reproducible base (weights, card, held-out sample, fine-tune hook) with the family's own verdict REVIEW 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_car
  • dataset: lpm_car_heldout
  • campaign: /Users/yanbarros/lpm-campaign
  • split: {'policy': 'the published split of the dataset: a held-out body was held out before training', 'seed': 0, 'holdout_fraction': 0.25, 'n_train_designs': 34, 'n_holdout_designs': 10, 'among_refined': [], 'n_train_geometries': 34, 'n_holdout_geometries': 10, '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': 44, 'n_geometries': 44, 'conditions_per_geometry': 3}
  • sample: {'n_designs': 10, 'n_points': 17510, 'n_parameters': 5, 'n_neighbourhood_features': 21, 'dtypes': {'params': 'float64[5]', 'conditioning': 'float32[3]', 'points': 'float32[3]', 'normals': 'float32[3]', 'target': 'float32[1]', 'local': 'float32[21]', 'offsets': 'int64'}}

License: apache-2.0

Citation

Ahmed, Ramm & Faltin (1984), Some salient features of the time-averaged ground vehicle wake, SAE 840300 (the body and its slant-angle drag curve); PINNeAPPle campaign ahmed_body_e2e in this repository (54 runs, L1 mesh with five prism layers, 800 iterations, outputs averaged over 400-800)

How to use

pip install "pinneapple @ git+https://github.com/PINNeAPPle-Labs/PINNeAPPle"
import pinneapple as pp

model = pp.zoo.load("lpm_car")          # weights checked against their SHA-256
inputs = {"slant_deg": 66.7585, "clearance_mm": 29.5625, "speed_ms": 17.7571}
out = model.predict(inputs)                 # warns for inputs outside the validity range
print({k: round(float(v[0]), 6) for k, v in out.items()})
# {'cp': -0.454584}
print(bool(model.in_range(inputs)[0]))      # inside the validity range
# False
print(pp.zoo.validate(model).decisao)        # card metrics reproduced + physics checks
# REVIEW

The inputs are the first held-out test case of the training dataset; its reference value is cp = -0.221288. pp.zoo.evaluate("lpm_car") 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 0983fc200f367e501ef415180ead54c2fa1f52fc7e8c95089ae0b72897e456ff
config.json architecture and normalisation a168657ca79b3bc68f07eb43e488e2f8b1afb291ed10a59c7a8285c1c83674be
model_card.json the model card: inputs, outputs, validity range, metrics, trust report 4936d95990de223d69f23ea9f37fdf27d178b1d5581bad81307398565575a6cf
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
-
Safetensors
Model size
347k params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train PINNeAPPle-Labs/lpm-car