Skip to main content

Physics-inspired nonlinear PDE kernel (recursive diffusion).

Project description

RDT Kernel

RDT Kernel is a physics-inspired numerical simulator implementing a nonlinear partial differential equation (PDE) for a scalar field L(x, y, t). It combines a logarithmic damping term with a Laplacian diffusion term, forming a compact PyTorch-based solver for recursive field dynamics, entropy stabilization, and nonlinear diffusion behavior.

This implementation uses PyTorch tensor operations, automatically runs on CPU or GPU (and TPU if available), and can function as a standalone simulator or a physics-based component within other systems.

Mathematical Model

The kernel evolves the field according to: ∂L/∂t = -α·ln(L) + D·∇²L

where:

  • L(x, y, t): scalar field
  • α: nonlinear damping coefficient
  • D: diffusion constant
  • ∇²L: discrete Laplacian

The equation models a nonlinear parabolic PDE coupling the field’s magnitude to its potential energy, creating self-stabilizing diffusion and entropy-bounded evolution.

Core Functions

  • get_device(): Detects CPU, GPU, or TPU
  • rdt_kernel(): Computes ∂L/∂t
  • step(): Advances one Euler step with clamping
  • run_demo(): Runs a full test simulation with timing and mean-field output

Installation

From PyPI: pip install rdt-kernel

From source: git clone https://github.com/RRG314/rdt-kernel.git cd rdt-kernel pip install .

Example

from rdt_kernel import run_demo run_demo(n=128, steps=100, alpha=0.5, D=0.1, dx=1.0, dt=0.01)

Example output: Running 100 steps on GPU... Done in 0.029s, mean=1.003536

Applications

  • Nonlinear entropy and diffusion modeling
  • Energy field evolution in dissipative media
  • Recursive geometric and entropic systems
  • Physics-inspired machine learning research

Author

Developed by Steven Reid (Independent Researcher) Repository: https://github.com/RRG314/rdt-kernel

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

rdt_kernel-1.0.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

rdt_kernel-1.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file rdt_kernel-1.0.3.tar.gz.

File metadata

  • Download URL: rdt_kernel-1.0.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rdt_kernel-1.0.3.tar.gz
Algorithm Hash digest
SHA256 19c48234c0d50b46ae007d89b96ef501327fa784b32dba5deb6a488fc06e9ecf
MD5 4863cfbe5e76217f7a989bae46a8a144
BLAKE2b-256 7b2417a63d6dc385f079ec890da90cab9bfc00d98d8d1515cd85359649f8cf77

See more details on using hashes here.

File details

Details for the file rdt_kernel-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: rdt_kernel-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rdt_kernel-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ddff77e36fe5e6f09c0aab7059305d1e8a1f6857501745af1dc4fa0b603a439d
MD5 c7cf0f82d6ea8affe6d5ce0be6fd9be8
BLAKE2b-256 c101c8a88cbb8e38f5dba00ee5bf24b483914b9d6e7d352e223010288eb887a1

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