Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
8.5 KiB
Contributing to FieldCraft
FieldCraft is one open-source modeler for structures, heat and fluids, written in pure Rust: open a parametric SolidCraft part, mesh it (tet or all-hex), define the analysis, solve it with our own implicit, explicit, thermal or lattice Boltzmann solvers, and look at verified results — from the desktop app, the command line, or an AI agent over MCP.
Help is welcome, whether that's a one-line fix, a verification benchmark, a file format or owning a whole solver. This page covers how to build it, the few rules that aren't negotiable, where help is needed most, and how to claim work. The rules every change follows, by a person or an agent, are in AGENTS.md.
Get it running (about 10 minutes on a fast machine)
You need stable Rust 1.95 or newer.
git clone https://github.com/tangency-labs/fieldcraft && cd fieldcraft
cargo run --release -p fieldcraft -- --sample cantilever # the desktop app on a sample model
cargo run -p fieldcraft-cli -- commands # every command and its parameters
cargo test -p fieldcraft-solver # the tests of one crate
cargo xtask oracle --quick # the verification cases (docs/oracle.md)
develop is the trunk and main holds released code. The layers and crates are in
docs/architecture.md; every user-visible capability is a command in
crates/engine/src/cmd/ (docs/features.md lists them).
Where help is wanted most
See the help wanted and
good first issue labels, and
the area: labels for your field. In order of how much they would help users:
- Reproducible meshes (#115). The same part must give the same tet mesh on every platform and every run, as the solvers already do.
- All-hex meshing of thin and curved parts (#85). The octree mesher over-refines thin walls; concave transition templates and an up-front depth are next. Hex meshing is the centre of gravity of the project.
- Getting results in and out: ParaView export (#90), Gmsh import (#91), Abaqus deck reading (#98), CSV and STL (#92, #93).
- Verification benchmarks (#97, #106). An engineer with a published benchmark can add it as an oracle case without touching solver code.
- Nonlinear elements and materials: incompatible modes at finite strain (#82), kinematic hardening (#81), and the material library (#99).
- The app: typed command forms (#112), XY and path plots (#94, #95).
Bigger areas on the roadmap — contact, dynamics, composites, coupled fields, wave propagation, turbulence — are open to anyone who wants to own one: start a thread in Discussions.
Before you start: claim an issue
Every change starts from an issue, and only the maintainer merges.
- Pick an open issue labelled help wanted or good first issue that is not labelled claimed. If what you want to do has no issue, open one first and wait for a reply.
- Comment
/claimon it. The bot assigns it to you, labels it claimed and replies; then it is yours. It refuses an issue someone else holds (naming them and when their claim lapses), an issue an open pull request already covers, and an issue without help wanted or good first issue: on those, say what you would like to do and the maintainer replies. Work on unassigned issues may not be accepted. - Open a draft pull request early, linked with
Closes #N. A pull request that references an open-for-contributors issue nobody holds (Closes #Nin the body,(#N)in the title) claims it the same way; if someone holds it already, or an older open pull request references it, the bot says so on your pull request instead. - An issue with no visible progress for 14 days goes back to the pool: a daily sweep frees a claim
with no linked pull request 14 days after it was made, and one with a pull request after 14
days without pushes.
/unclaimreleases it early (you or a maintainer).
Issues labelled in progress are being worked on by the core team; please don't start on them. The bot never lets them be claimed, and never frees an issue a maintainer holds.
Labels and triage
The triage bot labels every new issue and pull request (.github/workflows/triage.yml). It only
adds labels; correct them freely and it won't put them back.
- Pull requests get
area:*from the paths they change:crates/mesh→area:mesh,crates/lbm*→area:cfd,crates/solver,crates/fem,crates/explicit→area:solver,crates/ui-eguiandapps/→area:ui,crates/io,crates/decks→area:io,docs/and top-level*.md→area:docs,.github/,xtask/,packaging/,scripts/,tools/→area:infra. - Issues get
bugorenhancementfrom the form they were filed with (or a crash or "Feature request" title), and anarea:*from words in the title or the command an in-app report names. Until it has a priority, an issue carriesneeds-triage; adding apriority:label removes it. - Maintainers comment
/triage area:mesh high Sto sort an issue or pull request: any existing label (case, and-or_for a space, don't matter:in-progress),highforpriority: high,S/M/Lfor a size (which replaces the old one),-labelremoves one. Any/triagewith a change clearsneeds-triage. - Short bug reports without steps to reproduce get
needs-infoand one comment asking for the steps (and the version, when it's missing). The reporter's reply, or an edit that adds the steps, removes the label; an issue that stays inneeds-infofor 14 days is closed, and can be reopened any time. Feature requests, reports filed from the app (Help › Report a Bug…), and maintainers' issues are never asked. needs-triageis the queue: open issues with it.
Reporting a problem or an idea
Use the templates under New issue. Show it: for anything you can see — the view, a mesh, a
panel, a plot — add a screenshot or a short screen recording (drag it into the issue) and mark
the problem on it. For a mesh, a section (fieldcraft-cli snapshot … --section) shows what the
outside hides. A picture is often the fastest way for someone else to see what you see.
Making the change
- Branch from
develop(the trunk;mainholds released code only) and open the pull request againstdevelop. Keep it to one topic. - Before pushing:
cargo fmt --all, andcargo clippy -p <crate> --all-targets -- -D warningsandcargo test -p <crate>for the crates you touched. CI runs the full gate on your pull request once the maintainer approves the run. - User-visible behaviour is a command (
crates/engine/src/cmd/) with tests, including hostile parameters. - Meshing and solver algorithms cite the paper they come from in the module docs.
- A change you can see (the view, meshes, panels, results, icons) shows a picture before and after in the pull request.
- Never contribute code, text or data from GPL-family projects or commercial CAE products (see docs/adr/0001-libraries.md).
By contributing you agree your work is licensed under MIT OR Apache-2.0.
develop and main are protected: changes land on develop only through pull requests that the
maintainer has reviewed,
as rebase merges (keep each commit building and passing its tests). Be kind: see the
code of conduct.