Transolver-Car-Design
Model Overview
Transolver-Car-Design is a three-dimensional automotive external-flow prediction model built on Transolver and Transolver++ by Tsinghua University's THUML group. It provides surrogate modeling of vehicle flow fields and rapid prediction of drag coefficients.
Paper: Transolver: A Fast Transformer Solver for PDEs on General Geometries
Model Description
Transolver-Car-Design uses a Transformer architecture with Physics-Attention and is trained on ShapeNet-Car automotive aerodynamic simulation data. It predicts velocity fields, pressure fields, and drag coefficients for complex vehicle geometries.
Use Cases
| Use Case | Description |
|---|---|
| Automotive aerodynamic design | Rapidly predict external-flow velocities and surface pressures around vehicles |
| CFD surrogate modeling | Approximate fluid simulation on complex unstructured meshes with a neural network |
| Simulation acceleration | Provide a lightweight evaluation pipeline for large-scale candidate design screening |
Usage
1. OneCode
Use the online OneCode environment for an intelligent, one-click AI for Science (AI4S) programming experience:
Launch OneCode for one-click AI4S programming
2. Manual Setup
Hardware Requirements
- A GPU or DCU is recommended.
- A CPU can be used for import checks and small-scale pipeline validation, but full training and inference will be slow.
- DCU users must install DTK in advance. DTK 25.04.2 or later, or the OneScience-recommended version for the target cluster, is recommended.
Download the Model Package
hf download OneScience-Group/Transolver-Car-Design --local-dir ./Transolver-Car-Design
cd Transolver-Car-Design
Set Up the Runtime Environment
DCU Environment
# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU Environment
# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
Training Data
The OneScience community provides the ShapeNetCar dataset for training. Download it with the command below and verify that the data path in config/config.yaml is configured correctly:
hf download --repo-type dataset OneScience-Group/ShapeNetCar --local-dir ./data
Training
python scripts/train.py
Training saves Transolver_plus.pth under weight/:
./weight/Transolver_plus.pth
Model Weights
This repository will provide model weights pretrained on ShapeNetCar data in the weights/ directory. The weights will be uploaded soon.
Inference
python scripts/inference.py
Evaluation and Visualization
python scripts/result.py
Official OneScience Resources
| 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 |
Citations and License
- Original Transolver paper: Transolver: A Fast Transformer Solver for PDEs on General Geometries.
- Original Transolver++ paper: Transolver++: An Accurate Neural Solver for PDEs on Million-Scale Geometries
- This repository retains source attribution and has been adapted for automated execution through OneScience and ModelScope.
中文说明
模型概述
Transolver-Car-Design 是清华大学 THUML 团队基于 Transolver 和 Transolver++ 构建的三维汽车外流场预测模型。它提供车辆流场代理模型(surrogate model)建模,并可快速预测阻力系数。
论文Transolver:面向通用几何形状的快速 Transformer PDE 求解器
模型描述
Transolver-Car-Design 采用带 Physics-Attention 的 Transformer 架构,在 ShapeNet-Car 汽车气动模拟数据上训练。它可预测复杂车辆几何形状的速度场、压力场和阻力系数。
使用场景
| 使用场景 | 说明 |
|---|---|
| 汽车气动设计 | 快速预测车辆周围的外流场速度和表面压力 |
| 计算流体力学(computational fluid dynamics (CFD))代理建模 | 使用神经网络近似复杂非结构化网格上的流体模拟 |
| 模拟加速 | 为大规模候选设计筛选提供轻量级评估流程 |
使用方法
1. OneCode
通过 OneCode 在线环境体验智能一键式 AI 科学计算(AI4S)编程。
2. 手动配置
硬件要求
- 建议使用 GPU 或 DCU。
- 可使用 CPU 进行导入检查和小规模流程验证,完整训练和推理(inference)会较慢。
- DCU 用户必须提前安装 DTK。建议使用 DTK 25.04.2 或更高版本,或使用 OneScience 为目标集群推荐的版本。
下载模型包
hf download OneScience-Group/Transolver-Car-Design --local-dir ./Transolver-Car-Design
cd Transolver-Car-Design
配置运行环境
DCU 环境
# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
GPU 环境
# Activate Conda first
conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
conda activate onescience311
# Installation with uv is also supported
pip install onescience[cfd-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
训练数据
OneScience 社区提供 ShapeNetCar 数据集用于训练。使用以下命令下载,并确认 config/config.yaml 中的数据路径配置正确。
hf download --repo-type dataset OneScience-Group/ShapeNetCar --local-dir ./data
训练
python scripts/train.py
训练将 Transolver_plus.pth 保存至 weight/ 下。
./weight/Transolver_plus.pth
模型权重
本仓库将在 weights/ 目录提供在 ShapeNetCar 数据上预训练的模型权重。权重即将上传。
推理
python scripts/inference.py
评估与可视化
python scripts/result.py
OneScience 官方资源
| 平台 | OneScience 仓库 | Skills 仓库 |
|---|---|---|
| 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 |
引用与许可证
- Transolver 原始论文Transolver:面向通用几何形状的快速 Transformer PDE 求解器。
- Transolver++ 原始论文Transolver++:面向百万规模几何的精确神经 PDE 求解器
- 本仓库保留来源署名,并已适配在 OneScience 和 ModelScope 上自动运行。
- Downloads last month
- 6