PaddleCFD
About PaddleCFD
PaddleCFD is a deep learning toolkit for surrogate modeling, equation discovery, shape optimization and flow-control strategy discovery in the field of fluid mechanics. Currently, it mainly supports surrogate modeling, including models based on Fourier Neural Operator (FNO), Transformer, Diffusion Model (DM), Kolmogorov-Arnold Networks (KAN) and DeepONet.
Code structure
doc: documentationexamples: example scriptsppcfd/data: data-process source codeppcfd/model: model source codeppcfd/utils: utils codesource: source code of paddlepaddle custom operators
How to run
Installation
Image pulling & container running
# Pull docker image
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:3.0.0-gpu-cuda11.8-cudnn8.9-trt8.6
# Run docker container
nvidia-docker run --name ppcfd-container -v /home/:/home --network=host -it --shm-size 64g ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:3.0.0-gpu-cuda11.8-cudnn8.9-trt8.6 /bin/bash
Conda environment installation
# Clone PaddleCFD
git clone https://github.com/PaddlePaddle/PaddleCFD.git
cd PaddleCFD
# Create conda environment
conda create --name ppcfd python=3.10
conda activate ppcfd
python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
# Download and install paddle-backended Open3D
wget https://paddle-org.bj.bcebos.com/paddlecfd/envs/open3d-0.18.0+da239b25-cp310-cp310-manylinux_2_31_x86_64.whl
python -m pip install open3d-0.18.0+da239b25-cp310-cp310-manylinux_2_31_x86_64.whl -i https://pypi.tuna.tsinghua.edu.cn/simple
# Compile customed operator to conda environment
wget -nc https://paddle-org.bj.bcebos.com/paddlescience/cmake-3.23.0-linux-x86_64.tar.gz
tar -zxvf cmake-3.23.0-linux-x86_64.tar.gz
rm -f cmake-3.23.0-linux-x86_64.tar.gz
PATH=$PWD/cmake-3.23.0-linux-x86_64/bin:$PATH
cd source/ppfno_op
python -m pip install --no-build-isolation -v .
PaddleCFD package installation (Choose one of the following)
# Install PaddleCFD from sourcecode at PaddleCFD root directory
python -m pip install -e . -i https://pypi.tuna.tsinghua.edu.cn/simple
# Install PaddleCFD from pypi
python -m pip install ppcfd -i https://pypi.tuna.tsinghua.edu.cn/simple
Quick start
# Run examples
cd PaddleCFD/examples/xxx/xxx
run the example according to the example README.md
APIs
Community
Join PaddleCFD WeChat group to discuss with us!
License
PaddleCFD is provided under the Apache-2.0 license
Metadata
Release files for ppcfd 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ppcfd-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for ppcfd-0.3.0-py3-none-any.whl |
Release files / ppcfd-0.3.0-py3-none-any.whl
| Download URL | ppcfd-0.3.0-py3-none-any.whl |
|---|---|
| Size | 234.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dc7b904b69736202bdaac574a7ae804f21d679a1ab650256f77ae93617c56a5
|
|
BLAKE2b-256 checksum How to use checksums |
69a2546822aef748f9cfcfbb6262e154664c9323f413ea532a6c075ea852cc60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|
Security for ppcfd 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.