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.1

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.1
File Size Uploaded
ti_runtime-0.2.1.tar.gz 12.6 kB Details

Built distribution (wheel)

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

Total release size: 24.4 kB

Release files / ti_runtime-0.2.1.tar.gz

Download URL ti_runtime-0.2.1.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
12d4658137235f4c983f00cb2ef0065b33bed208cf0dabe368b8b6a1039a7673
BLAKE2b-256 checksum
How to use checksums
2c3299fae246a00f6ff5dae748b8ead153c06a2680e53c4d651c6d6c9a6aa9e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 31, 2026.

Transparency log

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

Download URL ti_runtime-0.2.1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fc2350458d6d628368accada40f83449faebd27cc6ea4e262630b79f8f7ffad
BLAKE2b-256 checksum
How to use checksums
74f560c1d48aabee5d852f00d1283015654934b6b95e3e2c8f7012964720a3d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 31, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

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