executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
deep_ritz_variational_energy_lossCompute Deep Ritz variational energy losses with gradient energy and boundary penalties.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill to turn sampled PDE points and a differentiable trial function into a Ritz objective. It is appropriate for Poisson-type energy minimization and can be extended to Rayleigh quotient eigenvalue objectives.
u(x; theta).f(x).beta.mean(0.5 * |grad u|^2 - f * u).beta * mean((u_boundary - g_boundary)^2).Run:
python tests/test_energy_loss.py
Automatic differentiation requires PyTorch or another autograd runtime. Standard-library helpers provide exact-solution functions and numeric diagnostics but cannot replace full gradient-energy training.