lpm_airfoil

Cambered Joukowski airfoil: surface Cp over camber, thickness and incidence. 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 120 to 120 points per design). Domain: aerodynamics / UAV, wind and compressor sections.

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

Try it without installing anything: PINNeAPPle zoo demo (pick lpm_airfoil: 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: Cambered Joukowski airfoil: surface Cp over camber, thickness and incidence

Inputs

Name Unit Description
thickness_x_c_m - design parameter of the family (bounds in validity_range)
camber_y_c_m - design parameter of the family (bounds in validity_range)
alpha_deg - 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

  • thickness_x_c_m: [-0.09, -0.01]
  • camber_y_c_m: [0.0, 0.06]
  • alpha_deg: [-4.0, 14.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 — Joukowski conformal map with the Kutta condition (exact potential flow), 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 (900 designs)

Architecture

  • LargePhysicsModel — {"dim": 2, "n_fields": 1, "n_params": 1, "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=1-\left(\frac{V}{U}\right)^2,\quad \Gamma=-4\pi aU\sin(\alpha+\beta)

Validation

Reference: Joukowski conformal map with the Kutta condition (exact potential flow) -- Milne-Thomson, Theoretical Hydrodynamics, 5th ed. (1968), ch. 6 (the Joukowski transformation); Anderson, Fundamentals of Aerodynamics, ch. 4 (Kutta condition and Kutta-Joukowski theorem). Assumptions: incompressible, inviscid, irrotational: no boundary layer, no separation, no drag from pressure; two-dimensional and steady; a cusped trailing edge, so the Kutta condition applies and the circulation is fixed by it

Metric Value
heldout/relative_l2 0.10288374158550168
heldout/relative_l2_p90 0.540362153874211
heldout/absolute_error_p90 0.39810862019658083
heldout/constant_field_baseline_relative_l2 0.9759022960211572
heldout/n_designs 150.0
campaign/held_out_relative_l2 0.10758843095968437
campaign/held_out_relative_l2_p90 0.5990277388128787
campaign/constant_field_baseline_relative_l2 0.9769649283521985
campaign/n_designs 900.0

Cost

  • trainable_parameters: 340964
  • train_seconds: 2901.573
  • device: mps

Trust

Decision: REVIEW · score 0.67 · coverage 100%

  • worst of the 150 stored held-out designs: 1.3175 against the family's tolerance 0.13: 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_airfoil
  • dataset: lpm_airfoil_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': 2700, 'n_holdout_designs': 900, 'among_refined': [], 'n_train_geometries': 675, 'n_holdout_geometries': 225, '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': 3600, 'n_geometries': 900, 'conditions_per_geometry': 4}
  • sample: {'n_designs': 150, 'n_points': 18000, 'n_parameters': 3, 'n_neighbourhood_features': 15, 'dtypes': {'params': 'float64[3]', 'conditioning': 'float32[1]', 'points': 'float32[2]', 'normals': 'float32[2]', 'target': 'float32[1]', 'local': 'float32[15]', 'offsets': 'int64'}}

License: apache-2.0

Citation

Milne-Thomson, Theoretical Hydrodynamics, 5th ed. (1968), ch. 6 (the Joukowski transformation); Anderson, Fundamentals of Aerodynamics, ch. 4 (Kutta condition and Kutta-Joukowski theorem)

How to use

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

model = pp.zoo.load("lpm_airfoil")          # weights checked against their SHA-256
inputs = {"thickness_x_c_m": -0.0214077, "camber_y_c_m": 0.00201513, "alpha_deg": 11.5372}
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': -1.12295}
print(bool(model.in_range(inputs)[0]))      # inside the validity range
# True
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 = -1.14309. pp.zoo.evaluate("lpm_airfoil") 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 1c633bad73ba8ccf9aa5967b203dda5c8ac2667a6473d5fe2ec20684cc489fb5
config.json architecture and normalisation e0f8f590d77024ddf566c3b20a4d366cc4df77e9edcb24c7b65a56be15c73a3e
model_card.json the model card: inputs, outputs, validity range, metrics, trust report e05c187eaba3f263a647cbde24ee26b2acb4d0cde1fb725a22a6cb9c7ee6a81e
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
527k 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-airfoil