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.6.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.6-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rdt_kernel-1.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 d30eb1c09cdf2bf478dffe4dce4d9a3ce8da29f6dbc1ca8b641ca5e3fb59444d
MD5 3d83f5cbd896006ca5894a077724fefd
BLAKE2b-256 3f697399def5df1005672effba62e7ddc7c041543ec9052fae349800b269304a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rdt_kernel-1.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 841f34b81c42a57115b93bec713e1f0698a1e184fdbed262ae3f61daeb6054a1
MD5 4660975dbd4d8622f5e03ad06f895107
BLAKE2b-256 ec6fb01639e78f69d0551dd344dc36b601216bc9a8478388ca4068f6b2e02ef7

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