Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# umcfGui roadmap

**Stage:** M0 — foundation. *Last updated: 2026-11-24.*
**Stage:** M0 — foundation. *Last updated: 2026-11-26.*

| Area | State |
|---|---|
Expand Down Expand Up @@ -124,3 +124,4 @@ Ranked work list: [`docs/gaps.md`](docs/gaps.md).
- 2026-11-24 — M0.98 a background mesh kept between regions (gaps row 6, 4 of 4 parts; the row is closed): a region's mesh can start with `background <region>` instead of `blockMesh` (`model::workflow::RootStep::Background`), as the `windAroundBuildings` tutorials mesh the vegetation from the air's background. `Allprepare` keeps what that region's `blockMesh` made in `constant/polyMesh.background.<region>`, marked as its own (`.umcfgui-kept`; one there without the mark stops it, nothing removed), copies it into `constant/polyMesh` for each region meshed from it and removes it after the last (`Allclean` removes a marked one); a region it can't be kept from (not listed before it, not built by steps of its own starting with `blockMesh`) is refused by `workflow.scripts` and named by the case check (`workflow.blocks`), with blocks of its own its mesh doesn't read. The script reader takes the kept copy back where the mesh it was kept from is moved to its region with `mv` (the generated scripts; any `constant/polyMesh.*` directory, as the tutorials' `polyMesh.bckp`), and lists a copy no region is meshed from or one removed before it is used. The case check (`workflow.snappy`) also checks a region's inside point against the blocks as they are now. `mesh.snappy` takes `background` (a region, or `null` for its own `blockMesh` again) and checks the inside point and the surfaces against that region's blocks; the *Snappy mesh* card has *Background from*, offering the regions it can start from, and previews and checks their blocks.
- 2026-11-24 — M0.99 a script's words bounded (review of M0.98): a word longer than 64 KiB once expanded is cut there and marked unresolved (a long literal was kept whole), and a script's reading stops after 64 MiB of expanded words (`script::MAX_EXPANDED`, each word charged 64 bytes more, as it is expanded), so neither a command of many long words nor a loop repeating long or empty ones builds steps without end; the prefixes before a command (`time`, `nohup`, …) are taken off at once.
- 2026-11-24 — M0.100 each region's `changeDictionaryDict` from the description (gaps row 4, 1 of 6 parts): `workflow.dictionaries` (*Write the dictionaries*, a form) writes it for every region whose steps run `changeDictionary`, from the patches' roles and partners (`model::coupling`): a wall with a partner `mappedWall`, an open side `mapped` (`mappedPatch` in OpenFOAM-8), the vegetation's canopy the air's cells (`mappedInternal`; OpenFOAM-8 `mappedWall` with `sampleMode nearestCell`), OpenFOAM-12's `neighbourRegion`/`neighbourPatch` or OpenFOAM-8's `sampleRegion`/`samplePatch`, a fluid's and a solid's patches paired by `method nearest`; generated with a checksum, one edited by hand written over only with `replace`. Refused for a partner without a role, and for a name that isn't a plain OpenFOAM word or a region's that can't be a directory on every system. The case check `workflow.change-dictionary` says a missing, stale or differing one, by the keys each version reads, and a sample mode or method the version hasn't. `workflow.import` gives a vegetation patch mapped to its twin whose role isn't told the role `coupled` (a `mappedWall`) or `sky` (`mapped`, `mappedPatch`). The 15 dictionaries of the three 3×3 cases (OpenFOAM-8 and -12) are generated as the cases' own map them; on the street canyon with vegetation `Allprepare` makes the same meshes (OpenFOAM-8 byte for byte, OpenFOAM-12 with `method nearest` added) and `Allrun` the same fields.
- 2026-11-26 — M0.101 the `createPatchDict`s from the description (gaps row 4, 2 of 6 parts): a patch's `from` in `system/umcfWorkflow` names the patches `createPatch` makes it of (`( defaultFaces )`; a quoted source is a pattern when it holds a regular expression's characters, `( "region1_to_.*" )`, else the name it holds, `"defaultFaces"` as `defaultFaces`), and its `type` the type over the one its role gives (the street canyons' plain `buildings` wall). `workflow.dictionaries` writes `system/<region>/createPatchDict` for a region whose steps run `createPatch`, and `system/createPatchDict` for the regions meshed with it in `constant/polyMesh` (which must make the same patches, in the same order: any two may take the same faces, through a pattern or a patch group), each patch typed by its own type, else `wall` for a wall's role, the canopy and every solid's patch, else `patch`, in the order the region lists them (`createPatch` gives a face two patches take to the last; the import keeps the dictionary's); `pointSync false;` for OpenFOAM-8. `workflow.import` reads `from` and `type` from the case's `createPatchDict`s (a source as written: quoted, a pattern or the name it holds), `workflow.dictionaries` leaves a case's own that holds what the description can't as it is, noted, even with `replace`, `workflow.patch` (*Describe a patch*: *Made of*, *Type*) edits them, and the case check `workflow.create-patch` says a dictionary missing, stale or making the patches otherwise (`model::create_patch`). The 16 `createPatchDict`s of the four 3×3 cases are generated as the cases' own make them; on the street canyon with vegetation `Allprepare` with the generated ones makes the same meshes, byte for byte, in OpenFOAM-8 and -12.
10 changes: 7 additions & 3 deletions crates/engine/src/cmd/mesh_snappy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,13 @@ fn snappy(s: &mut Session, p: &Value) -> Result<Outcome, Error> {
for (name, role) in &roles {
match with.patches.iter_mut().find(|q| q.name == *name) {
Some(q) => q.role = *role,
None => {
with.patches.push(umcf_model::description::PatchDesc { name: name.clone(), role: *role, partner: None })
}
None => with.patches.push(umcf_model::description::PatchDesc {
name: name.clone(),
role: *role,
partner: None,
from: Vec::new(),
kind: None,
}),
}
}
let type_of = blocks::type_lookup(&with);
Expand Down
Loading
Loading