pytorch-physics

Community

Learn physics with PINNs, Neural ODEs, and force fields.

Authorxjtulyc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you model and learn physical systems governed by differential equations, turning scarce or noisy observations into solutions constrained by physics.

Core Features & Use Cases

  • Physics-Informed Neural Networks (PINNs): Enforce PDE residuals and boundary/initial conditions using automatic differentiation in PyTorch.
  • Neural ODEs: Learn continuous-time dynamics from irregular time-series data and forecast future states.
  • Data-Driven Force-Field Learning: Learn potential energy and derive conservative forces (e.g., energy conservation via F = -∇E).
  • Use Case: Infer unknown PDE coefficients from noisy measurements (e.g., identify α in a diffusion/heat equation) and validate against known analytical or baseline solutions.

Quick Start

Use the pytorch-physics skill to train a PINN to solve a heat equation and compare the learned solution against the analytical ground truth using PyTorch autograd.

Dependency Matrix

Required Modules

torch>=2.0deepxde>=1.9torchdiffeq>=0.2numpy>=1.24matplotlib>=3.7

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pytorch-physics
Download link: https://github.com/xjtulyc/awesome-rosetta-skills/archive/main.zip#pytorch-physics

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.