Skip to content
Back to skills

Helmholtz Pinn Problem

ASecurity

Construct deterministic reduced Helmholtz PINN benchmark data with analytic solution, boundary samples, collocation samples, forcing, and relative L2 scoring.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill helmholtz_pinn_problem --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Helmholtz Pinn Problem?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Helmholtz Pinn Problem
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-helmholtz-pinn-problem/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-helmholtz-pinn-problem)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: helmholtz_pinn_problem
description: Construct deterministic reduced Helmholtz PINN benchmark data with analytic solution, boundary samples, collocation samples, forcing, and relative L2 scoring.
---

# Helmholtz PINN Problem

Use this skill when a recovery experiment needs a small but mechanism-faithful 2D Helmholtz problem for physics-informed neural network training. Do not use it for generic regression tasks that lack a PDE residual and boundary/data-fit conflict.

## Inputs

- Domain bounds, usually `[-1, 1] x [-1, 1]`.
- Interior, boundary, and evaluation sample counts.
- Analytic parameters `a1`, `a2`, and Helmholtz coefficient `k`.
- A deterministic random seed.

## Outputs

- Interior collocation points.
- Boundary points and exact boundary values.
- Evaluation points and exact solution values.
- A forcing callback for `u_xx + u_yy + k^2 u = q`.
- Relative-L2 scoring helper.

## Workflow

1. Define an analytic solution such as `sin(a1*pi*x) * sin(a2*pi*y)`.
2. Derive the Helmholtz forcing from second derivatives of that solution.
3. Sample collocation points inside the square and boundary points on all sides.
4. Evaluate exact values on the boundary and evaluation grid.
5. Use relative L2 to compare predictions with exact values.

## Validation

Run `python scripts/helmholtz_problem.py --self-test` or validate the skill tree with tests enabled.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.