Hpc Fenics
Build, review, and debug FEniCS or DOLFINx PDE scripts for finite-element workflows. Use when translating PDEs into UFL, selecting function spaces, applying...
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 12 · 0 current installs · 0 all-time installs
by@fzj1214
MIT-0
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
The name/description match the included reference docs and example templates for FEniCS/DOLFINx workflows; nothing required by the skill (no env vars, no unusual binaries) is unrelated to the stated HPC FEM purpose.
Instruction Scope
SKILL.md directs the agent to read internal reference files and use bundled templates; instructions do not request reading arbitrary system files, credentials, or sending data to external endpoints. The guidance is narrowly scoped to PDE formulation, solver patterns, and cluster execution.
Install Mechanism
No install spec is provided (instruction-only), so nothing is downloaded or installed by the skill itself. The included example scripts assume the user environment has dolfinx/mpi4py/petsc4py available — a runtime dependency but not an install action by the skill.
Credentials
The skill requests no environment variables or credentials. It references common cluster SLURM environment variables in the example job script (expected for cluster use) and relies on Python packages (dolfinx, mpi4py, petsc4py) being present — these are runtime dependencies, not secrets.
Persistence & Privilege
always is false and the skill does not request persistent privileges or modify other skills or system-wide settings. It is user-invocable and uses normal autonomous invocation defaults, which is expected.
Assessment
This skill appears coherent and focused on FEniCS/DOLFINx help. Before using: (1) review the provided Python and SLURM templates (do not run them unreviewed on production systems), (2) ensure your environment has the required libraries (dolfinx, mpi4py, petsc4py) and MPI/PETSc stack, and (3) when submitting job scripts to a cluster, confirm paths and module/container setup so you don't accidentally run with missing dependencies or write outputs to unintended storage. If you need higher assurance, run the examples in a disposable container or development partition first.Like a lobster shell, security has layers — review code before you run it.
Current versionv0.1.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
HPC FEniCS
Treat FEniCS as a family with two main stacks: classic FEniCS and DOLFINx.
Start
- Read
references/runtime-selection.mdfirst. - Read
references/dolfinx-boundary-workflow.mdwhen targeting DOLFINx boundary conditions. - Read
references/ufl-and-solver-patterns.mdwhen translating PDEs, choosing spaces, or building forms. - Read
references/pde-template-cookbook.mdwhen mapping common PDE classes to known formulation patterns. - Read
references/time-dependent-and-nonlinear-patterns.mdwhen building transient or nonlinear solvers. - Read
references/implementation-skeletons.mdwhen you need a concrete script shape for classic FEniCS or DOLFINx. - Read
references/petsc-solver-playbook.mdwhen choosing linear, nonlinear, or block solver settings. - Read
references/mixed-problems-and-output.mdwhen working with mixed spaces, XDMF, or post-processing. - Read
references/cluster-execution-playbook.mdwhen staging a FEniCS or DOLFINx script for scheduler-backed cluster execution. - Read
references/boundary-io-and-errors.mdwhen repairing runtime failures or resolving IO issues.
Work sequence
- Choose one stack and stay consistent:
- classic FEniCS:
fenicsordolfin - modern stack:
dolfinx
- classic FEniCS:
- Translate the PDE into the correct weak form before writing code.
- Match unknown type and space:
- scalar field -> scalar space
- vector field -> vector space
- mixed formulation -> mixed space with explicit subspace handling
- For linear problems, use
TrialFunctionandTestFunction. - For nonlinear problems, use a
Functionfor the unknown and solve a residual form. - Write outputs in a format the expected post-processor can open, usually XDMF for mesh-coupled fields.
Guardrails
- Do not mix classic FEniCS imports with DOLFINx APIs in one script.
- Do not use
TrialFunctionfor a nonlinear unknown. - Do not guess a boundary condition if the PDE is under-constrained; say what is missing.
- Do not ignore shape and rank mismatches in UFL expressions.
Additional References
Load these on demand:
references/gmsh-meshtags-and-refinement.mdfor imported meshes, physical groups, markers, and refinement transferreferences/io-visualization-and-writers.mdfor XDMF, VTK, VTX, and visualization-safe outputreferences/parallel-and-mpi-caveats.mdfor ownership, boundary marking, and parallel consistencyreferences/space-boundary-output-matrix.mdfor function-space, boundary-condition, and writer-selection matricesreferences/cluster-execution-playbook.mdfor MPI launch, environment pinning, and cluster-side IO planning
Reusable Templates
Use assets/templates/ when a concrete script scaffold is needed, especially:
poisson_dolfinx.pytransient_diffusion_dolfinx.pyfenics-dolfinx-slurm.sh
Outputs
Report:
- chosen stack and version family if known
- PDE form and space selection
- boundary conditions applied
- expected output files
- the exact failure class if the script is being repaired
Files
19 totalSelect a file
Select a file to preview.
Comments
Loading comments…
