How devamsolanki009/autosim-2 works
AutoSim is a web-based differential-equation solving platform: users enter an equation or natural-language problem, configure a run, receive computed and optionally verified results, and inspect plots, derivations, explanations, and run history. The graph follows the documented browser-to-API workflow and preserves the solver, verification, and LLM capabilities listed in the README. Some backend calls are supported by the SOURCE INDEX rather than complete excerpts; unsampled connections are omitted where ownership is unclear.
Main entry points: main.py FastAPI endpoints · page.tsx App orchestrator · enhanced_solver.py Enhanced solver · SolverWorkspace.tsx Solver workspace
Components 19
Web interface
- Solver workspace
autosim-frontend/app/components/SolverWorkspace.tsx - App orchestrator
autosim-frontend/app/page.tsx - Interactive plots
autosim-frontend/app/components/PlotlyPanel.tsx - Plot interactions
autosim-frontend/app/components/InteractivePlot.tsx - Result tabs
autosim-frontend/app/components/ResultTabs.tsx
API workflow
- FastAPI endpoints
api/main.py - Solution verification
utils/verifier.py - Solver generation
utils/solver_engine.py
Equation solving
- Equation parser
core/parser.py - Solver router
core/router.py - Euler solver
solvers/euler.py - Numerical solver
solvers/numerical.py - Symbolic solver
solvers/symbolic.py - Laplace solver
solvers/laplace.py
Language assistance
- Enhanced solver
llm_integration/enhanced_solver.py - Natural-language parser
llm_integration/nl_pde_parser.py - LLM interface
llm_integration/deepseek_interface.py
Other components
- User
- Ollama service
Connections 20
- User → Solver workspace: enters problem
README.md - App orchestrator → Solver workspace: renders
autosim-frontend/app/page.tsx - Solver workspace → App orchestrator: submits inputs
autosim-frontend/app/page.tsx - App orchestrator → FastAPI endpoints: POST solve
autosim-frontend/app/page.tsx - FastAPI endpoints → Equation parser: parses equation
api/main.py - FastAPI endpoints → Solver router: routes solver
api/main.py - FastAPI endpoints → Euler solver: dispatches
api/main.py - FastAPI endpoints → Numerical solver: dispatches
api/main.py - FastAPI endpoints → Symbolic solver: dispatches
api/main.py - FastAPI endpoints → Laplace solver: dispatches
api/main.py - FastAPI endpoints → Solution verification: verifies solution
api/main.py - FastAPI endpoints → Solver generation: generates solver
api/main.py - FastAPI endpoints → App orchestrator: returns results
README.md - App orchestrator → Interactive plots: renders plots
autosim-frontend/app/page.tsx - App orchestrator → Result tabs: renders results
autosim-frontend/app/page.tsx - Interactive plots → Plot interactions: uses interactions
autosim-frontend/app/components/PlotlyPanel.tsx - Enhanced solver → Natural-language parser: parses descriptions
llm_integration/enhanced_solver.py - Enhanced solver → LLM interface: requests explanations
llm_integration/enhanced_solver.py - LLM interface → Ollama service: sends requests
llm_integration/deepseek_interface.py - Enhanced solver → FastAPI endpoints: optional integration