Views
No views yet
(x, y) as input and predicts (u, v, p) at every point. T-Nets align the inputs and features; shared MLPs and global max pooling extract local and global features; and a 512 → 256 → 128 → 128 → 3 decoder predicts the flow field from the fused representation. Coordinates retain their original physical scale, while output variables are normalized to [0, 1] using training-set statistics.| Use case | Description |
|---|---|
| CFD flow-field prediction | Predicts velocity components (u, v) and pressure p point by point from the two-dimensional coordinates (x, y) of unstructured-mesh nodes. |
| Irregular-geometry modeling | Directly represents object boundaries and unstructured meshes as point clouds without interpolating CFD data onto a regular grid. |
| Geometry generalization | The corresponding experiment evaluates predictive performance on previously unseen geometries. |
1modelscope download --model OneScience/PointNetCFD --local_dir ./PointNetCFD
2cd PointNetCFD1# Activate DTK and Conda first
2conda create -n onescience311 python=3.11 -y
3conda activate onescience311
4# Installation with uv is also supported
5pip install onescience[cfd-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai1# Activate Conda first
2conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
3conda activate onescience311
4# Installation with uv is also supported
5pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.aipaths.data_dir in config/config.yaml points to the downloaded data directory:modelscope download --dataset OneScience/pointnet_cfd --local_dir ./dataCFDdata.npy is a 1,024 × 5 point-cloud data matrix with columns [x, y, p, u, v]. Index files for the training, validation, and test sets are also provided.config/config.yaml corresponds to the main experimental setup in the paper.python scripts/train.py --config config/config.yamlweight/best_model.pthresults/ directory. For an environment-connectivity check, run the minimal smoke test, which uses a separate output path:python scripts/train.py --smoke-testweight/ directory contains weights pretrained on the PointNetCFD data and ready for inference.config/config.yaml is valid and weight/best_model.pth exists. The following command runs inference on the fixed test set and prints the normalized MSE, RMSE for each physical variable, and relative L2 error in real time:1python scripts/inference.py \
2 --config config/config.yaml \
3 --checkpoint weight/best_model.pth \
4 --device auto \
5 --output-dir resultsresults/test_metrics.json: test metrics and reference metrics from the paper;results/predictions.npz: coordinates, predictions, ground truth, and sample indices.scripts/inference.py during inference. The visualization script depends on results/predictions.npz, so complete the inference step above before running:1python scripts/result.py \
2 --predictions results/predictions.npz \
3 --output-dir results/figures \
4 --num-cases 3| Platform | OneScience Main Repository | Skills Repository |
|---|---|---|
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |