AI-powered computational fluid dynamics (CFD) assistant that converts natural language descriptions into OpenFOAM simulations with ParaView visualization.
- 🗣️ Natural Language Interface - Describe simulations in plain English
- 🤖 AI-Powered Workflow - LangGraph orchestrated multi-agent system
- 🔧 Automated Mesh Generation - Intelligent mesh creation with validation
- 🎨 3D Visualization - Integrated ParaView for real-time results
- 🖥️ Desktop & Server Modes - GUI application and headless server deployment
- ☁️ Cloud Ready - AWS infrastructure with Terraform automation
- 📦 Containerized - Docker deployment for consistent environments
- 🚀 Production Ready - FastAPI backend with Celery task processing
FoamAI/
├── src/ # Core application code
│ ├── foamai-core/ # Core simulation logic
│ ├── foamai-server/ # FastAPI backend server
│ ├── foamai-client/ # Client library
│ └── foamai-desktop/ # Desktop application
├── infra/ # AWS infrastructure (Terraform)
├── docker/ # Container definitions
├── tests/ # Test files
├── examples/ # Demo scripts and examples
├── dev/ # Development utilities
├── docs/ # Project documentation
└── .github/ # CI/CD workflows
- Python 3.12+
- OpenFOAM 10
- ParaView 6.0+
- Docker & Docker Compose
- UV package manager
- Clone and setup environment:
git clone https://github.com/bbaserdem/FoamAI.git
cd FoamAI
uv sync- Start local development:
# Start local services
docker-compose -f dev/docker-compose.local.yml up -d
# Run the desktop application
uv run python -m foamai_desktop.main
# Or run examples
uv run python examples/demo_user_approval.py- Run tests:
uv run pytest tests/- Deploy infrastructure with Terraform:
cd infra
terraform init
terraform apply- Pre-built container images available:
ghcr.io/bbaserdem/foamai/api:latestghcr.io/bbaserdem/foamai/openfoam:latestghcr.io/bbaserdem/foamai/pvserver:latest
- Or use the quick deployment script:
./infra/deploy-fresh-instance.shComprehensive documentation is available in the docs/ directory:
- 🤖 LangGraph Agents System - AI agent architecture and workflow orchestration
- 🔗 Backend API Reference - REST API endpoints and integration guide
- 🧠 Brainlift Guide - Advanced AI capabilities and features
- 🛠️ Contributing Guide - Development setup, workflows, and testing
- 🖥️ Desktop Application Setup - GUI installation and usage guide
- 🚀 DevOps Guide - Infrastructure deployment and monitoring
| Component | Technology | Purpose |
|---|---|---|
| 🔗 Backend | FastAPI + Celery | REST API and async task processing |
| 🧠 AI Engine | LangGraph + OpenAI | Multi-agent workflow orchestration |
| ⚙️ CFD Engine | OpenFOAM 10 | Computational fluid dynamics solver |
| 🎨 Visualization | ParaView 6.0 | 3D rendering and data visualization |
| 🖥️ Desktop App | PySide6 + Qt | Cross-platform GUI application |
| ☁️ Infrastructure | AWS EC2 + Terraform | Cloud deployment automation |
| 🚀 CI/CD | GitHub Actions | Automated testing and deployment |
| 📦 Containers | Docker + Docker Compose | Service orchestration |
Welcome to FoamAI! To get started with development:
- Read the Contributing Guide - Complete development setup and workflows
- Check Desktop Setup - GUI application development
- Review DevOps Guide - Infrastructure and deployment
- Explore API Documentation - Backend development
- Run tests from the tests/ directory
- Try examples from the examples/ directory
- Use development tools from dev/ directory
# Clone and setup
git clone https://github.com/bbaserdem/FoamAI.git
cd FoamAI
uv sync
# Run tests
uv run pytest
# Start local development
cd dev && ./local-test.shSee LICENSE for details.