Views
No views yet
u_xx + u_yy = exp(x) + exp(y)tanh, sin, and cos activation functions by default. The model solves the equation on the irregular domain by jointly optimizing boundary loss, PDE residual loss, interface-value loss, and interface-residual loss.| Use Case | Description |
|---|---|
| PDE solving on complex domains | Solve a two-dimensional Poisson equation on an irregular X-shaped domain |
| Domain-decomposition research | Configure independent network architectures and activation functions for different subdomains |
| Interface-constraint research | Compare losses for interface solution continuity and residual consistency |
| Pipeline validation | Validate training and inference using the bundled data and a small-scale configuration |
1hf download OneScience-Group/XPINNs --local-dir ./XPINNs
2cd XPINNs1# 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.aidata/XPINN_2D_PoissonEqn.mat, which contains interior, boundary, and interface points for the three subdomains together with the exact solution. The number of training samples of each type can be adjusted in conf/config.yaml.python scripts/train.pyweight/xpinn_poisson_2d.pt.weight/ directory.python scripts/inference.pyresult/xpinn_poisson_2d.png. Model, data, loss, and inference parameters can all 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 |