Views
No views yet
| Use case | Description |
|---|---|
| Parameterized PDE operator learning | Learns mappings from PDE parameters, coefficient fields, or initial conditions to solution fields, especially when a PDE must be solved repeatedly for many parameter settings. |
| Burgers' equation prediction | Predicts future states from initial conditions for the one-dimensional Burgers' equation, demonstrating operator learning for nonlinear evolution equations. |
| Darcy flow prediction | Predicts steady-state solutions from two-dimensional diffusion or permeability coefficient fields for applications such as porous-media flow and groundwater seepage. |
| Navier–Stokes flow prediction | Autoregressively predicts the evolution of two-dimensional incompressible flow from historical vorticity fields. |
1modelscope download --model OneScience/FNO --local_dir ./FNO
2cd FNO1# 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.aiNavierStokes_V1e-5_N1200_T20.mat, whose shape is [N,H,W,T]=[1200,64,64,20]. For each trajectory, the first 10 frames are inputs and the final 10 frames are prediction targets. The first 1,000 trajectories are used for training and the remaining 200 for testing. There is no separate validation set, and no normalization is applied.modelscope download --dataset OneScience/fno --local_dir ./datadata.root in config/config.yaml to the data directory and confirm that data.file matches the MAT filename above. The training script strictly validates the field name, shape, dtype, and finite values.ν=1e-5 and T=20 in the paper. It trains for 500 epochs with a batch size of 20, uses Adam with an initial learning rate of 1e-3, and halves the learning rate every 100 epochs.python scripts/train.py --config config/config.yaml --device autoweight/best_model.pth. The latest complete training state from every epoch is saved to weight/last_model.pth, and the training history is written to results/train_history.json.weight/best_model.pth contains the best weights from the full training run and can be used directly for inference.weight/best_model.pth exists. The standard inference run uses the 200 configured test trajectories and a 10-step closed-loop rollout, printing batch progress and the final relative L2 error in real time:python scripts/inference.py --config config/config.yamlresults/predictions.npz: predictions, ground truth, sample indices, and prediction times;results/metrics.json: overall and per-step metrics, including comparisons with the reference values from the paper;results/per_sample_metrics.csv: per-sample relative L2 errors.python scripts/result.py --config config/config.yaml --sample-index 0predictions.npz, cross-checks the JSON and CSV outputs, best epoch, and prediction shape, and then generates:results/training_curves.png: training/test errors and training-objective curves;results/sample_000_rollout.png: ground truth, predictions, and absolute errors at t=11, 16, 20 for a representative sample;results/run_metadata.json: configuration, runtime environment, assumptions, file hashes, and quality checks;results/summary.md: a summary of experimental results.| 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 |