Download README.md from PINNeAPPle-Labs/zhu-solidification-1d: direct link, hf CLI and curl.
- Browser
- Download file 6.37 kB
-
https://huggingface.co/PINNeAPPle-Labs/zhu-solidification-1d/resolve/main/README.md
- Command line
-
hf download hf://PINNeAPPle-Labs/zhu-solidification-1d/README.md
-
curl -L -o README.md https://huggingface.co/PINNeAPPle-Labs/zhu-solidification-1d/resolve/main/README.md
license: apache-2.0
library_name: pinneapple
pipeline_tag: tabular-regression
inference: false
tags:
- pinneapple
- physics
- surrogate-model
- pytorch
- safetensors
- experimental
- manufacturing
- solidification
- pinn
- similarity
datasets:
- PINNeAPPle-Labs/zhu-solidification-1d-reference
zhu_solidification_1d
A data-free similarity PINN of one-dimensional solidification: three ModifiedMLP networks (width 18, three layers, six Fourier features) with an endpoint-constrained construction impose the two bath temperatures and two scalars represent the contact temperature and the moving front. Three seeds are shipped; the spread across them is returned as an uncertainty.
zhu_solidification_1d v1.0.0 (revision v1.0.0) · part of the PINNeAPPle zoo · training data PINNeAPPle-Labs/zhu-solidification-1d-reference
Try it without installing anything: PINNeAPPle zoo demo (pick zhu_solidification_1d: 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: 1-D sharp-interface solidification: temperature against the similarity coordinate
Inputs
| Name | Unit | Description |
|---|---|---|
eta |
- | similarity coordinate eta = x/(0.01 sqrt(t)) for SI x, t |
Outputs
| Name | Unit | Description |
|---|---|---|
temperature_k |
K | temperature of the similarity field |
temperature_std_k |
K | spread across the three seeds |
Validity range
eta: [-8.0, 8.0]regime: the similarity regime of the paper's §4.1 (graphite / solid Al / liquid Al), not the 3-D AM-Bench 2018-02 experiment
Known limitations
- This is the paper's 1-D similarity case, not its unconstrained space-time network and not the 3-D AMB2018-02 benchmark.
- The interface is reported through the two scalars the construction carries; no temperature or front labels were used in training.
- The card's metrics are recomputed by the zoo on the bundled reference; the study's own numbers were temperature RMSE 0.0063 K and a front coefficient of 0.007095375 m/sqrt(s).
Architecture
ModifiedMLP (3 members, endpoint-constrained, similarity construction)—{"width": 18, "layers": 3, "fourier": 6, "seeds": [42, 43, 44]}
Physics
- d(theta)/d(eta) integrated per region with erf/erfc
- Stefan balance at the interface: rho L * SCALE^2 / (2 DT) * front = flux jump
Validation
Reference: The sharp-interface similarity solution by scalar root finding (benchmarks/industrial/zhu_am_bench_2018/solidification_1d.py::reference), an independent solution of the same Stefan problem, cross-checked against the paper's printed coefficients.
| Metric | Value |
|---|---|
| heldout/rmse_k | 0.003234153461217846 |
| heldout/max_abs_error_k | 0.012211852897735298 |
| heldout/front_relative_error | 0.0 |
| heldout/n | 1501.0 |
Cost
- train_seconds: 15.804601976333212
- trainable_parameters: 3533
Trust
Decision: APPROVED · score 1.00 · coverage 100%
Training data
- dataset: zhu_solidification_1d_reference
- family: zhu_am_bench_2018
- reference_source: doi:10.1007/s00466-020-01952-9
- artifact: benchmarks/industrial/zhu_am_bench_2018/models/pinneapple-zhu-1d-seeds.npz
License: apache-2.0
Citation
Zhu et al., Comput Mech (2020) doi:10.1007/s00466-020-01952-9, §4.1
How to use
pip install "pinneapple @ git+https://github.com/PINNeAPPle-Labs/PINNeAPPle"
import pinneapple as pp
model = pp.zoo.load("zhu_solidification_1d") # weights checked against their SHA-256
inputs = {"eta": -8.0}
out = model.predict(inputs) # warns for inputs outside the validity range
print({k: round(float(v[0]), 6) for k, v in out.items()})
# {'temperature_k': 298.15, 'temperature_std_k': 0.0}
print(bool(model.in_range(inputs)[0])) # inside the validity range
# True
print(pp.zoo.validate(model).decisao) # card metrics reproduced + physics checks
# APPROVED
The inputs are the first held-out test case of the training dataset; its reference value is temperature_k = 298.15. pp.zoo.evaluate("zhu_solidification_1d") 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 |
01fc2f07549c28fbe21e8f6ff074448243725d809c40c2cc60c77b4dbabb26ec |
config.json |
architecture and normalisation | ac21a6d57c4d90cb07b1221bcf1140186f0ed0b1f966ad303c93d0e0c8f0d58b |
model_card.json |
the model card: inputs, outputs, validity range, metrics, trust report | eada732537d9123d5a649b73a6730450c9dad353adc5a1cf473063251d292942 |
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}
}