- Restructure docs/ folder (remove numeric prefixes): - 04_USER_GUIDES -> guides/ - 05_API_REFERENCE -> api/ - 06_PHYSICS -> physics/ - 07_DEVELOPMENT -> development/ - 08_ARCHIVE -> archive/ - 09_DIAGRAMS -> diagrams/ - Replace tagline 'Talk, don't click' with 'LLM-driven optimization framework' in 9 files - Create comprehensive docs/GETTING_STARTED.md: - Prerequisites and quick setup - Project structure overview - First study tutorial (Claude or manual) - Dashboard usage guide - Neural acceleration introduction - Rewrite docs/00_INDEX.md with correct paths and modern structure - Archive obsolete files: - 01_PROTOCOLS.md -> archive/historical/01_PROTOCOLS_legacy.md - 03_GETTING_STARTED.md -> archive/historical/ - ATOMIZER_PODCAST_BRIEFING.md -> archive/marketing/ - Update timestamps to 2026-01-20 across all key files - Update .gitignore to exclude docs/generated/ - Version bump: ATOMIZER_CONTEXT v1.8 -> v2.0
2.8 KiB
2.8 KiB
Backend Integration Plan
Objective
Implement the backend logic required to support the advanced dashboard features, including study creation, real-time data streaming, 3D mesh conversion, and report generation.
1. Enhanced WebSocket Real-Time Streaming
File: atomizer-dashboard/backend/api/websocket/optimization_stream.py
Tasks
- Update
OptimizationFileHandlerto watch forpareto_frontupdates. - Update
OptimizationFileHandlerto watch foroptimizer_stateupdates. - Implement broadcasting logic for new event types:
pareto_front,optimizer_state.
2. Study Creation API
File: atomizer-dashboard/backend/api/routes/optimization.py
Tasks
- Implement
POST /api/optimization/studiesendpoint. - Add logic to handle multipart/form-data (config + files).
- Create study directory structure (
1_setup,2_results, etc.). - Save uploaded files (
.prt,.sim,.fem) to1_setup/model/. - Save configuration to
1_setup/optimization_config.json.
3. 3D Mesh Visualization API
File: atomizer-dashboard/backend/api/routes/optimization.py & optimization_engine/mesh_converter.py
Tasks
- Create
optimization_engine/mesh_converter.pyutility.- Implement
convert_to_gltf(bdf_path, op2_path, output_path)function. - Use
pyNastranto read BDF/OP2. - Use
trimesh(or custom logic) to export GLTF.
- Implement
- Implement
POST /api/optimization/studies/{study_id}/convert-meshendpoint. - Implement
GET /api/optimization/studies/{study_id}/mesh/{filename}endpoint.
4. Report Generation API
File: atomizer-dashboard/backend/api/routes/optimization.py & optimization_engine/report_generator.py
Tasks
- Create
optimization_engine/report_generator.pyutility.- Implement
generate_report(study_id, format, include_llm)function. - Use
markdownandweasyprint(optional) for rendering.
- Implement
- Implement
POST /api/optimization/studies/{study_id}/generate-reportendpoint. - Implement
GET /api/optimization/studies/{study_id}/reports/{filename}endpoint.
5. Dependencies
File: atomizer-dashboard/backend/requirements.txt
Tasks
- Add
python-multipart(for file uploads). - Add
pyNastran(for mesh conversion). - Add
trimesh(optional, for GLTF export). - Add
markdown(for report generation). - Add
weasyprint(optional, for PDF generation).
Execution Order
- Dependencies: Update
requirements.txtand install packages. - Study Creation: Implement the POST endpoint to enable the Configurator.
- WebSocket: Enhance the stream to support advanced visualizations.
- 3D Pipeline: Build the mesh converter and API endpoints.
- Reporting: Build the report generator and API endpoints.