|
download
raw
2.32 kB
# 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
```bash
cd backend
pip install -r requirements.txt
uvicorn main:app --reload --port 8000
```
### Frontend
```bash
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 projets
- `POST /api/projects/` - Créer un projet
- `GET /api/projects/{id}` - Détails d'un projet
- `DELETE /api/projects/{id}` - Supprimer un projet
### Géométrie
- `POST /api/geometry/box` - Créer une boîte
- `POST /api/geometry/cylinder` - Créer un cylindre
- `POST /api/geometry/sphere` - Créer une sphère
- `GET /api/geometry/{id}/mesh-data` - Données de tessellation
### Maillage
- `POST /api/mesh/generate` - Générer un maillage
- `GET /api/mesh/{id}` - Informations du maillage
- `GET /api/mesh/{id}/data` - Données du maillage
- `POST /api/mesh/{id}/refine` - Raffiner le maillage
## Développement
Voir [PLAN.md](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.