Skip to content

Commit af62848

Browse files
update README (#1078)
1 parent 637b4e7 commit af62848

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,19 +247,17 @@ python -c "import paddle; paddle.utils.run_check()"
247247

248248
| 工具 | 简介 | 支持情况 |
249249
| -- | -- | -- |
250-
| [Modulus-sym](https://github.com/PaddlePaddle/modulus-sym/tree/paddle?tab=readme-ov-file#modulus-symbolic-betapaddle-backend) | AI仿真套件 | 全量支持 |
251250
| [DeepXDE](https://github.com/lululxvi/deepxde/tree/master?tab=readme-ov-file#deepxde) | 方程求解套件 | 全量支持 |
252251
| [DeepMD-kit](https://docs.deepmodeling.com/projects/deepmd/en/latest/index.html) | 分子动力学套件 | 部分支持 |
253-
| [TensorLy](https://tensorly.org/dev/index.html) | 张量计算库 | 全量支持 |
254-
| [NVIDIA/warp](https://github.com/NVIDIA/warp) | 高性能仿真/图形库 | 全量支持 |
255-
| [DLPACK(v0.8)](https://dmlc.github.io/dlpack/latest/index.html) | 跨框架张量内存共享协议 | 全量支持 |
256-
| [tensorly](https://dmlc.github.io/dlpack/latest/index.html) | 张量运算库 | 全量支持 |
257-
| [warp](https://dmlc.github.io/dlpack/latest/index.html) | 基于 Python 的 GPU 高性能仿真和图形库 | 全量支持 |
252+
| [Modulus-sym](https://github.com/PaddlePaddle/modulus-sym/tree/paddle?tab=readme-ov-file#modulus-symbolic-betapaddle-backend) | AI仿真套件 | 全量支持 |
253+
| [NVIDIA/warp](https://github.com/NVIDIA/warp) | 基于 Python 的 GPU 高性能仿真和图形库 | 全量支持 |
254+
| [tensorly](https://github.com/tensorly/tensorly) | 张量运算库 | 全量支持 |
258255
| [Open3D](https://github.com/PFCCLab/Open3D.git) | 三维图形库 | 全量支持 |
256+
| [neuraloperator](https://github.com/PFCCLab/neuraloperator) | 神经算子库 | 全量支持 |
259257
| [paddle_scatter](https://github.com/PFCCLab/paddle_scatter) | 张量稀疏计算库 | 全量支持 |
258+
| [paddle_harmonics](https://github.com/PFCCLab/paddle_harmonics.git) | 球面谐波变换库 | 全量支持 |
260259
| [deepali](https://github.com/PFCCLab/deepali) | 图像、点云配准库 | 全量支持 |
261-
| [paddle_harmonics](https://dmlc.github.io/dlpack/latest/index.html) | 球面谐波变换库 | 全量支持 |
262-
| [neuraloperator](https://dmlc.github.io/dlpack/latest/index.html) | 神经算子库 | 全量支持 |
260+
| [DLPACK(v0.8)](https://dmlc.github.io/dlpack/latest/index.html) | 跨框架张量内存共享协议 | 全量支持 |
263261
<!-- --8<-- [end:adaptation] -->
264262

265263
<!-- --8<-- [start:support] -->

ppsci/equation/pde/helmholtz.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ class Helmholtz(base.PDE):
5454
5555
Args:
5656
dim (int): Dimension of equation.
57+
k (float): The wave number, which is a parameter that affects the frequency of the solution.
5758
detach_keys (Optional[Tuple[str, ...]]): Keys used for detach during computing.
5859
Defaults to None.
5960
6061
Examples:
6162
>>> import ppsci
62-
>>> pde = ppsci.equation.Helmholtz(2, -1.0, 1.0)
63+
>>> model = ppsci.arch.MLP(("x", "y"), ("u",), 2, 32)
64+
>>> pde = ppsci.equation.Helmholtz(2, -1.0, model)
6365
"""
6466

6567
def __init__(
@@ -94,7 +96,7 @@ def helmholtz(data_dict: Dict[str, paddle.Tensor]) -> paddle.Tensor:
9496
lambda y_: self.model.forward_tensor(xs[0], y_), (xs[1],)
9597
)
9698
out = (self.k**2) * data_dict["u"] + u__x__x + u__y__y
97-
elif self.dim >= 3:
99+
elif self.dim == 3:
98100
u__x__x = hvp_revrev(
99101
lambda x_: self.model.forward_tensor(x_, xs[1], xs[2]), (xs[0],)
100102
)

0 commit comments

Comments
 (0)