2.8 KiB
2.8 KiB
name, description
| name | description |
|---|---|
| fesa-formulation-spec | Use when drafting FESA FEM formulation specifications, strong or weak forms, shape functions, element equations, numerical integration, Jacobian rules, and output recovery contracts. |
FESA Formulation Spec
Use this skill to turn approved requirements and research evidence into an implementable math-level FEM contract.
Inputs
Read these first:
AGENTS.mddocs/AGENT_RULES.mddocs/formulations/README.mddocs/requirements/<feature-id>.mddocs/research/<feature-id>-research.md
Workflow
- Confirm scope, assumptions, primary variables, DOFs, sign convention, units, and coordinate system.
- Write the Strong Form and boundary conditions.
- Write the Weak or Variational Form and natural boundary terms.
- Define Discretization: interpolation, shape functions, partition of unity, Kronecker delta checks, and nodal layout.
- Define Kinematics: strain-displacement relation, B matrix or kinematic operator, strain measure, and deformation assumptions.
- Define Constitutive Contract without creating C++ APIs.
- Define Element Equations: residual or internal force, external force, stiffness or tangent, mass or damping when applicable, and dimensions.
- Define Mapping and Numerical Integration: reference coordinates, isoparametric mapping, Jacobian, derivative transform, determinant checks, Gauss points, and weights.
- Define Output Recovery for displacement, reaction, element force, strain, stress, and nodal extrapolation.
- List Numerical Risks and downstream tests.
Output Contract
Produce or revise docs/formulations/<feature-id>-formulation.md with:
- Scope and Assumptions
- Primary Variables and DOFs
- Strong Form
- Weak or Variational Form
- Discretization
- Kinematics
- Constitutive Contract
- Element Equations
- Mapping and Numerical Integration
- Output Recovery
- Algorithm Pseudocode
- Numerical Risks
- Open Issues and Downstream Handoff
Boundaries
- Do not implement C++ code.
- Do not design C++ APIs.
- Do not implement parsers.
- Do not run Abaqus, Nastran, or any reference solver.
- Do not generate reference HDF5 artifacts or reference CSVs.
- Do not approve release readiness.
Quality Gate
- Strong form, weak form, discretization, kinematics, constitutive contract, and element equations are distinct.
- Shape functions include partition of unity and Kronecker delta checks when applicable.
- Jacobian, determinant validity, derivative transform, integration rule, and output location are explicit.
- Missing research or requirements become open issues, not assumptions.
Handoff
Send the formulation to Numerical Review Agent first. After review, pass implementation-relevant pseudocode and acceptance quantities to Implementation Planning Agent, I/O needs to I/O Definition Agent, and benchmarkable checks to Reference Model Agent.