mtaku3/openscience/pinn-training
- community
Checking that the SKILL.md file is still in the repository.
Train Physics-Informed Neural Networks (PINNs) using DeepXDE. Solve forward and inverse PDE problems by embedding physics equations into the neural network loss function. Supports 1D/2D/3D, time-dependent, and parametric PDEs.
Install
npx vskill@latest install mtaku3/openscience/pinn-trainingSKILL.md
The same SKILL.md was published earlier as fadrienne/apps/pinn-training.
PINN Training (DeepXDE)
Overview
Solve PDEs using Physics-Informed Neural Networks. A neural network approximates the solution u(x,t), trained by minimizing the PDE residual + boundary/initial condition losses. Works for forward problems (solve PDE) and inverse problems (discover parameters from data).
When to Use
- Complex geometries where meshing is difficult
- Inverse problems (discovering PDE parameters from data)
- Noisy or sparse data with known governing equations
- Multi-physics problems with coupled PDEs
- When you need a differentiable surrogate of the PDE solution
Do NOT Use When
- Simple 1D/2D problems on regular grids (use finite differences — faster)
- You need guaranteed error bounds (PINNs don't provide rigorous bounds)
- Very high accuracy is needed (< 1e-6 relative error is hard for PINNs)
Installation
Core Workflows
1. Forward Problem: 1D Heat Equation
$$\frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2}$$
2. Inverse Problem: Discover Diffusion Coefficient
3. 2D Poisson Equation
Training Strategy
| Phase | Optimizer | Epochs | Learning Rate | Purpose | |
|---|---|---|---|---|---|
| 1 | Adam | 10,000-30,000 | 1e-3 | Get near the minimum | |
| 2 | L-BFGS | until convergence | auto | Fine-tune to high accuracy |
Network Architecture Guide
| PDE Complexity | Architecture | Activation | |
|---|---|---|---|
| Simple 1D/2D | [2] + [32]*3 + [1] | tanh | |
| Moderate 2D | [2] + [64]*4 + [1] | tanh | |
| Complex / 3D | [3] + [128]*5 + [1] | tanh or sin | |
| Time-dependent | [2] + [64]*4 + [1] with causal training | tanh |
Common Pitfalls
| Pitfall | Fix | |
|---|---|---|
| Loss doesn't decrease | Reduce learning rate, increase network size | |
| BC/IC loss much larger than PDE loss | Use loss weights: model.compile(..., loss_weights=[1, 100, 100]) | |
| Solution is flat/constant | Check PDE implementation (sign errors common) | |
| Training unstable | Use tanh activation (not ReLU), reduce LR | |
| Inverse problem doesn't converge | Need more observation data, better initial guess | |
| Slow training | Use GPU: export DDE_BACKEND=pytorch + CUDA |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbackend/cli/skills/physics/pinn-training/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mtaku3/openscience/pinn-training)