Skip to main content

ti-runtime

Neutral Taichi runtime for MechDSL (PlanJune14, PJ-0).

This package is the seam + primitive layer of the "Seams & Bodies" architecture:

MechDSL owns the seams + primitives (this package); algo2code generates the bodies (solvers, preconditioners, constitutive updates, time integrators) from LaTeX, injected into these seams.

It contains only stable infrastructure — nothing algorithmic is hardcoded here:

Module Contents
vector_ops @ti.kernel vector primitives: copy / axpy / xpay / scal / zero / dot / norm2
tensor_ti Tier-1 @ti.func helpers: det3 / inv3 / F→C→E→J / Voigt / deviatoric / von_mises
seams injection plumbing: Operator, PreconditionerBase/Identity/Diagonal, Solver, LinearSolveContext
fields ti.init + field-allocation boilerplate
hex8 Hex8 shape functions, natural-coord gradients, 2×2×2 Gauss quadrature (test harness / element operators)

Provenance & invariants

  • One-time harvest (PlanJune14 D-B) — adapted from NumerixWeave (libs/tisolvers, libs/ticonstit, apps/tifem); no ongoing sync.
  • Portable output (D-D) — generated artifacts depend on ti_runtime, never on mechdsl, so they can later feed NumerixWeave / MOOSE / MFEM.
  • Conventions follow MechDSL dev/design_docs/07-CONVENTIONS.md: Voigt order [xx, yy, zz, xy, xz, yz], tensorial (unscaled shears), metric diag(1,1,1,2,2,2).

Operator / solver contract

A matrix-free operator is an in-place callable apply(out, x) -> None computing out = A @ x over Taichi fields. Inject it and run a (generated) solver against it:

ctx = LinearSolveContext()
ctx.set_operator(my_tangent_matvec)        # out = K(u) @ x, matrix-free @ti.kernel
ctx.set_preconditioner(DiagonalPreconditioner(diag))
# a generated PCG body calls ctx.apply_A / ctx.apply_preconditioner + vector_ops

Metadata

Release files for ti-runtime 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ti-runtime 0.2.2
File Size Uploaded Provenance Actions
ti_runtime-0.2.2.tar.gz 12.6 kB With provenance Details for ti_runtime-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ti-runtime 0.2.2
File Interpreter ABI Platform Actions
ti_runtime-0.2.2-py3-none-any.whl Python 3 none any Details for ti_runtime-0.2.2-py3-none-any.whl

Total release size: 24.5 kB

Release files / ti_runtime-0.2.2.tar.gz

Download URL ti_runtime-0.2.2.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a1edb1ab36bbe0c52edbe05d92522330069713d6bd4d7ac91a4896e464c39b36
BLAKE2b-256 checksum
How to use checksums
d740292e176a0559b74521cde2afd1036b20bfccb975cb9075a1949f4a7703c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / ti_runtime-0.2.2-py3-none-any.whl

Download URL ti_runtime-0.2.2-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e70f36825d501f27f6610fd19182cd27c36b6024ea06b4b4b3e1d986417f9f52
BLAKE2b-256 checksum
How to use checksums
3bbdb38f6e08a3f8c330e5a8886559e0dbca1c6b6c4a96527e0131e417ed171a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for ti-runtime 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ti_runtime-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page