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

Download files

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

Source Distribution

ti_runtime-0.2.1.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

ti_runtime-0.2.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file ti_runtime-0.2.1.tar.gz.

File metadata

  • Download URL: ti_runtime-0.2.1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ti_runtime-0.2.1.tar.gz
Algorithm Hash digest
SHA256 12d4658137235f4c983f00cb2ef0065b33bed208cf0dabe368b8b6a1039a7673
MD5 c5010403462c12a4314c9d9798657688
BLAKE2b-256 2c3299fae246a00f6ff5dae748b8ead153c06a2680e53c4d651c6d6c9a6aa9e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ti_runtime-0.2.1.tar.gz:

Publisher: pypi-publish.yml on CEmM2/MechDSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ti_runtime-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ti_runtime-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ti_runtime-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fc2350458d6d628368accada40f83449faebd27cc6ea4e262630b79f8f7ffad
MD5 3018241f68ca5066d69561a0030cd674
BLAKE2b-256 74f560c1d48aabee5d852f00d1283015654934b6b95e3e2c8f7012964720a3d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ti_runtime-0.2.1-py3-none-any.whl:

Publisher: pypi-publish.yml on CEmM2/MechDSL

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 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