Skip to content

simd-ai/runner

Repository files navigation

runner

OpenFOAM execution service for simd-ai/agent. Receives a case ZIP over HTTP, runs the solver, streams residuals + post-processed VTK back as SSE.

Run

uvicorn app.main:app --host 0.0.0.0 --port 9000

The service listens on port 9000. Point the agent at it by setting SIMULATION_SERVER_URL=http://<this-host>:9000 in the agent's .env.

Run as a systemd service

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.

First-time install

sudo cp sim-server.service /etc/systemd/system/sim-server.service
sudo systemctl daemon-reload
sudo systemctl enable sim-server
sudo systemctl start sim-server

Redeploy after pulling new changes

git 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-pager

Operate

sudo 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 logs

License

AGPL v3 — see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors