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-*.jsonlfor pip installs, or./sessions/session-*.jsonlin a source checkout - Command history:
~/.physicsos/history.jsonlfor pip installs, or./history.jsonlin a source checkout - Solver/session artifacts:
~/.physicsos/scratch/...for pip installs, or./scratch/...in a source checkout - Case memory:
~/.physicsos/data/case_memory.jsonlfor pip installs, or./data/case_memory.jsonlin a source checkout - Knowledge base:
~/.physicsos/data/knowledge/physicsos_knowledge.sqlitefor pip installs, or./data/knowledge/physicsos_knowledge.sqlitein 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.mdis the main design document.taps.mddescribes the TAPS-first solver strategy.vm.mddescribes PhysicsOS Cloud / foamvm integration.- Heavy model weights, generated scratch artifacts, local secrets, and knowledge databases are excluded from package distribution.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file physicsos-0.1.0.tar.gz.
File metadata
- Download URL: physicsos-0.1.0.tar.gz
- Upload date:
- Size: 144.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc2b51ec1c4cc29c5b8622228acf1d9ad75b68d7c73824e3324eb9e9790399a3
|
|
| MD5 |
06f4c17b57d9884dc7926a272296e946
|
|
| BLAKE2b-256 |
83afca05449886f22822ea116a59fa586b156b24c5a2bd926f96cbb5ec842e5c
|
File details
Details for the file physicsos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: physicsos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 125.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4442e5745bc22ea3625a88a436009a3a60a0ad4276fa4324b8715248551a5b8c
|
|
| MD5 |
2be3d08b250e1acb8cca6aa39a9de4b7
|
|
| BLAKE2b-256 |
adec333ff3d5eab0946dc6f8f9b7dd3997df0e6b3d607e04e22376a54e232e9b
|