Buckets:
CAD Kevin
Application web de simulation par éléments finis (FEM) de type SolidWorks Simulation.
Fonctionnalités
- Création de géométries 3D (primitives : boîte, cylindre, sphère)
- Génération de maillage
- Intégration dolfinx pour les calculs FEM
- Visualisation 3D interactive
Stack Technique
| Composant | Technologie |
|---|---|
| Backend | FastAPI (Python) |
| CAO | CadQuery (OpenCASCADE) |
| Maillage | GMSH |
| Solver | dolfinx (FEniCSx) |
| Visualisation | PyVista / VTK |
| Frontend | React + Three.js |
Installation
Prérequis
- Python 3.10+
- Node.js 18+
Backend
cd backend
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
Frontend
cd frontend
npm install
npm start
Structure du Projet
CAD_kevin/
├── backend/
│ ├── app/
│ │ ├── api/ # Routes FastAPI
│ │ ├── cad/ # Module CAO (CadQuery)
│ │ ├── mesh/ # Module maillage (GMSH)
│ │ ├── fem/ # Module FEM (dolfinx)
│ │ └── core/ # Configuration
│ ├── main.py
│ └── requirements.txt
├── frontend/
│ ├── src/
│ │ ├── components/ # Composants React
│ │ ├── services/ # Appels API
│ │ └── types/ # Types TypeScript
│ └── package.json
├── CONTEXT.md
├── PLAN.md
└── README.md
API Endpoints
Projets
GET /api/projects/- Liste des projetsPOST /api/projects/- Créer un projetGET /api/projects/{id}- Détails d'un projetDELETE /api/projects/{id}- Supprimer un projet
Géométrie
POST /api/geometry/box- Créer une boîtePOST /api/geometry/cylinder- Créer un cylindrePOST /api/geometry/sphere- Créer une sphèreGET /api/geometry/{id}/mesh-data- Données de tessellation
Maillage
POST /api/mesh/generate- Générer un maillageGET /api/mesh/{id}- Informations du maillageGET /api/mesh/{id}/data- Données du maillagePOST /api/mesh/{id}/refine- Raffiner le maillage
Développement
Voir PLAN.md pour le plan de développement détaillé.
Licence
Projet personnel - Tous droits réservés
Xet Storage Details
- Size:
- 2.32 kB
- Xet hash:
- f2f52fa07b16c15cf9cc4583dbafaf6de5940027e38370abba37dc6d70af374c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.