OpenFOAM execution service for simd-ai/agent. Receives a case ZIP over HTTP, runs the solver, streams residuals + post-processed VTK back as SSE.
uvicorn app.main:app --host 0.0.0.0 --port 9000The service listens on port 9000. Point the agent at it by setting
SIMULATION_SERVER_URL=http://<this-host>:9000 in the agent's .env.
The repo ships sim-server.service, a systemd unit that runs uvicorn
via venv/bin/uvicorn on port 9000 and restarts on failure. The unit
name is sim-server for backward-compatibility with existing deploys
— the systemctl commands below match.
sudo cp sim-server.service /etc/systemd/system/sim-server.service
sudo systemctl daemon-reload
sudo systemctl enable sim-server
sudo systemctl start sim-servergit pull
sudo cp sim-server.service /etc/systemd/system/sim-server.service
sudo systemctl daemon-reload
sudo systemctl restart sim-server
sudo systemctl status sim-server --no-pagersudo systemctl status sim-server # check status
sudo systemctl restart sim-server # restart
sudo systemctl stop sim-server # stop
sudo journalctl -u sim-server -f # tail logsAGPL v3 — see LICENSE.