Skip to main content

AI-native physics simulation OS with TAPS-first physics IR, solver planning, and cloud runner tooling.

Project description

PhysicsOS

PhysicsOS is an AI-native physics simulation scaffold built around a TAPS-first workflow:

  • compile physics problems into typed weak-form / solver IR;
  • route executable IR blocks to local TAPS kernels;
  • prepare audited fallback bundles for FEniCSx, MFEM, PETSc, or cloud runners;
  • expose a CLI for PhysicsOS Cloud / foamvm device-login and job submission.

The project is currently alpha-stage research infrastructure. Local TAPS kernels are intentionally lightweight and deterministic; full-solver execution is prepared through manifests and approval gates rather than silently running external software.

Install

From a local checkout:

pip install -e .

The default install includes the DeepAgents runtime, LangGraph, and the OpenAI-compatible model adapter, so physicsos can start the natural-language agent loop immediately after model credentials are configured.

With Gmsh / meshio geometry tooling:

pip install -e ".[geometry]"

For package build and test tooling:

pip install -e ".[dev]"

CLI

physicsos
physicsos paths
physicsos auth login
physicsos account
physicsos runner submit path/to/manifest.json
physicsos runner status JOB_ID
physicsos runner logs JOB_ID
physicsos runner artifacts JOB_ID

Running physicsos with no arguments starts the interactive CLI shell. Plain text input is sent to the DeepAgents-powered PhysicsOS orchestrator as a natural-language chat turn. Local control commands are prefixed with /, for example /paths, /login, and /exit. The shell records user inputs, assistant outputs, and errors to a session file plus the global history file. Device-login tokens are stored under the user config directory, not in the repository.

To enable model calls, configure an OpenAI-compatible model:

$env:PHYSICSOS_OPENAI_API_KEY="..."
$env:PHYSICSOS_OPENAI_BASE_URL="https://api.tu-zi.com/v1"
$env:PHYSICSOS_OPENAI_MODEL="gpt-5.4"

Local Data

PhysicsOS uses PHYSICSOS_HOME when set. Otherwise, pip-installed usage stores runtime state under:

~/.physicsos/

In a source checkout, runtime artifacts stay under the repository so tests and development remain reproducible.

Default paths:

  • Cloud auth config: ~/.physicsos/config.toml
  • Interactive sessions: ~/.physicsos/sessions/session-*.jsonl for pip installs, or ./sessions/session-*.jsonl in a source checkout
  • Command history: ~/.physicsos/history.jsonl for pip installs, or ./history.jsonl in a source checkout
  • Solver/session artifacts: ~/.physicsos/scratch/... for pip installs, or ./scratch/... in a source checkout
  • Case memory: ~/.physicsos/data/case_memory.jsonl for pip installs, or ./data/case_memory.jsonl in a source checkout
  • Knowledge base: ~/.physicsos/data/knowledge/physicsos_knowledge.sqlite for pip installs, or ./data/knowledge/physicsos_knowledge.sqlite in a source checkout

Set PHYSICSOS_HOME=/path/to/physicsos-home to relocate these files. Run physicsos paths to print the exact paths used by the current environment.

Development

python -B -m pytest -q
python -m build
python -m twine check dist/*

Notes

  • ARCHITECTURE.md is the main design document.
  • taps.md describes the TAPS-first solver strategy.
  • vm.md describes PhysicsOS Cloud / foamvm integration.
  • Heavy model weights, generated scratch artifacts, local secrets, and knowledge databases are excluded from package distribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physicsos-0.1.1.tar.gz (144.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

physicsos-0.1.1-py3-none-any.whl (126.3 kB view details)

Uploaded Python 3

File details

Details for the file physicsos-0.1.1.tar.gz.

File metadata

  • Download URL: physicsos-0.1.1.tar.gz
  • Upload date:
  • Size: 144.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for physicsos-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0ba265691f67c1e64a4c5a6736cc93c2761ee6302d64932c86c72a709b5e6785
MD5 2ae1a9019030dab0c2cf15173bda4ad2
BLAKE2b-256 db72455279834c70e064cb18dfe155fc4fff9872a06b4ebb72139bb9ed1507a0

See more details on using hashes here.

File details

Details for the file physicsos-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: physicsos-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 126.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for physicsos-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75e1c8cbecb54501ba306a14c5f2c7a87867fe779351810b0bad94a1e957ff86
MD5 64b09f58396f628e1a440953f05cb4fd
BLAKE2b-256 886b735481c862dcc5af59bedd8254b112ef4d9c32300d8966d96043bd9d9991

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page