Views
No views yet
exp(alpha), ensuring that they remain positive with a mean close to 1. The Adam stage updates both the network and attention parameters, whereas the L-BFGS stage freezes the attention parameters and refines the network.| Use Case | Description |
|---|---|
| One-dimensional Laplace equation | Examine how attention focuses on collocation points with high residuals |
| Two-dimensional Helmholtz equation | Solve a two-dimensional analytical solution with high-frequency spatial variation |
| Burgers equation | Train jointly on initial conditions, boundary conditions, and nonlinear PDE residuals |
| Adaptive-weight research | Compare a standard PINN with pointwise soft-attention weighting |
1hf download OneScience-Group/SA-PINNs --local-dir ./SA-PINNs
2cd SA-PINNs1# Activate DTK and Conda first
2conda create -n onescience311 python=3.11 -y
3conda activate onescience311
4pip 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
4pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai--case:1python scripts/train.py --case laplace
2python scripts/train.py --case helmholtz
3python scripts/train.py --case burgersweight/ and result/ by default. Command-line arguments such as --epochs, --lbfgs-iters, --n-pde, and --device can override values in conf/config.yaml.weight/ directory.1python scripts/inference.py --case laplace
2python scripts/inference.py --case helmholtz
3python scripts/inference.py --case burgersresult/ directory. The Laplace and Helmholtz examples report relative L2 errors. Default model and training parameters can be modified in conf/config.yaml.| Platform | OneScience 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 |