Agent skill · AI & Agents

matlab-solve-pde

End-to-end finite element analysis in MATLAB PDE Toolbox — geometry creation, model setup, solve, and post-processing in one skill. Use when building geometry from primitives or file import, setting up femodel with BCs/loads/materials, solving thermal/structural/EM problems, and extracting or visualizing results. Covers fegeometry, multicuboid, multicylinder, multisphere, decsg, boolean ops, mesh generation, femodel, all AnalysisTypes (thermalSteady, thermalTransient, structuralStatic, structuralTransient, structuralModal, structuralFrequency, electrostatic, magnetostatic, dcConduction, harmon

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-solve-pde --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 13
SKILL.md size: 25 KB
Bundled scripts: none
Version: 1.0
Declared author: MathWorks
Path: skills-catalog/math-and-optimization/matlab-solve-pde/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Instructs the agent to perform an end-to-end finite element workflow for MATLAB PDE Toolbox using the femodel approach: create geometry from primitives or files, build a femodel with specified AnalysisType, apply materials, boundary conditions, and loads, generate a mesh, solve (with optional time steps), and post-process results.

How it works

The skill outlines a step-by-step workflow:

  1. Geometry: build geometry via multicuboid, multicylinder, multisphere, decsg, or file import; wrap with fegeometry; supports boolean operations and mesh data inputs.
  2. Model: create a femodel with a chosen AnalysisType and Geometry; assign MaterialProperties, BCs, loads, and initial conditions.
  3. Mesh: generateMesh(model) with optional refinement controls (Hmax, Hmin, HFace, HEdge, HVertex); supports linear vs quadratic mesh decisions depending on analysis type.
  4. Solve: result = solve(model) or result = solve(model, tlist) for transient analyses.
  5. Post-process: extract fields, interpolate, compute derived quantities, and visualize results.

The skill also documents how to:

  • Use materialProperties with catalog names or explicit properties, including orthotropic definitions.
  • Apply boundary conditions and loads via faceBC, edgeBC, vertexBC, faceLoad, edgeLoad, cellLoad, and vertexLoad with specific property syntax.
  • Handle nonconstant (function) parameters for materials, BCs, and loads with correct signatures and NaN behavior.
  • Reuse a single model for multiple analyses by updating AnalysisType rather than creating a new model.

When to use it

Use when building geometry from primitives (multicuboid, multicylinder, multisphere), STL/STEP imports, or 2-D decsg; when setting up femodel with BCs/loads/materials; when solving thermal, structural, or electromagnetic problems (steady, transient, modal, frequency, conduction); and when post-processing FE results.

What it can touch

  • Commands and functions exactly as shown: fegeometry, multicuboid, multicylinder, multisphere, decsg, union, subtract, intersect, mergeCells, deleteCell, translate, rotate, extrude, generateMesh, femodel, materialProperties, cellLoad, faceLoad, edgeLoad, vertexLoad, faceBC, edgeBC, vertexBC, solve, and the various AnalysisTypes like thermalSteady, structuralStatic, electrostatic, etc.
  • File and object names appear exactly as in the skill’s examples (e.g., fegeometry, multicuboid, generateMesh, model, gm).

Caveats

  • The workflow uses the modern femodel approach (R2025a+); legacy createpde(N) workflow is not covered here.
  • Unit handling is user-responsible since PDE Toolbox is unit-less; dimensions and properties must be consistent.
  • Some analyses require switching to a linear mesh for Nedelec elements (magnetostatic/electric harmonic) and may necessitate regenerating the mesh.
  • Structural analyses are linear-elastic; no plasticity or hyperelastic models are described.
From the SKILL.md

# PDE Toolbox — Full FEA Workflow End-to-end finite element analysis: geometry → model setup → solve → post-process. Uses the modern `femodel` workflow (R2025a+). ## When to Use - Building geometry from primitives (`multicuboid`, `multicylinder`, `multisphere`), STL/STEP import, or 2-D `decsg` - Setting up `femodel` with boundary conditions, loads, materials, and initial conditions - Solving thermal, structural, or electromagnetic problems (steady, transient, modal, frequency, conduction) - Post-processing FE results: interpolation, derived quantities, visualization ## When Not to Use - General-equation PDE (`createpde(N)`) — that legacy workflow is not covered here - System-level simulation (Simulink/Simscape) — use product-specific skills - Mesh-only tasks with no PDE solve (e.g., surface meshing for visualization) ## Workflow Overview 1. **Geometry** — Create with primitives, `decsg`, file import, or boolean ops → wrap in `fegeometry` 2. **Model** — `femodel(AnalysisType=..., Geometry=gm)` → material, BCs, loads, ICs 3. **Mesh** — `generateMesh(model)` (default first, refine if needed) 4. **Solve** — `result = solve(model)` or `solve(model, tlist)` 5. **Post-process** — Extract

What's inside
Steps it walks through
  1. When to Use
  2. When Not to Use
  3. Workflow Overview
  4. Phase 1: Geometry
  5. fegeometry — The Hub
  6. 3-D Primitives
  7. Boolean Operations
  8. 2-D Geometry with decsg
  9. Entity Identification
  10. Transforms
  11. Extrude
  12. Mesh Generation
  13. Phase 2: Model Setup
  14. Create Model
Ships with 12 files
  • manifest.yaml
  • references/bc-load-reference.md
  • references/boolean-and-cell-ops.md
  • references/damping-reference.md
  • references/decsg-and-2d-geometry.md
  • references/electromagnetic-setup.md
  • references/em-postprocessing.md
  • references/modal-and-reduced-order.md
  • references/nonconstant-parameters.md
  • references/primitives-and-import.md
  • references/time-dependent-loads.md
  • references/visualization-reference.md
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-solve-pde skill do?

End-to-end finite element analysis in MATLAB PDE Toolbox — geometry creation, model setup, solve, and post-processing in one skill. Use when building geometry from primitives or file import, setting up femodel with BCs/loads/materials, solving thermal/structural/EM problems, and extracting or visualizing results. Covers fegeometry, multicuboid, multicylinder, multisphere, decsg, boolean ops, mesh generation, femodel, all AnalysisTypes (thermalSteady, thermalTransient, structuralStatic, structuralTransient, structuralModal, structuralFrequency, electrostatic, magnetostatic, dcConduction, harmon

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-solve-pde --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going