Skip to content

Add cellZone selectionMode support for MeanVelocityForce#246

Open
kevinsmia1939 wants to merge 1 commit intojaheyns:masterfrom
kevinsmia1939:meanvelocityforce_cellzone
Open

Add cellZone selectionMode support for MeanVelocityForce#246
kevinsmia1939 wants to merge 1 commit intojaheyns:masterfrom
kevinsmia1939:meanvelocityforce_cellzone

Conversation

@kevinsmia1939
Copy link
Contributor

@kevinsmia1939 kevinsmia1939 commented Mar 20, 2026

This PR add selection mode cellZone support to mean velocity force and is the continuation of #244. Probably the last of what I want to add to this.

The main goal of this PR,
Add support for selecting solid to use as cell zone instead of all for previous PR.
Screenshot_20260320_000713

Support multiple solid as cell zone.
Screenshot_20260320_000851

I avoid changing existing function in CfdCaseWriterFoam.py so exportMeanVelocityForceCellZoneStlSurfaces was introduce even if very similar exportZoneStlSurfaces exist juust to avoid breaking anything.

Add test case for mean velocity force selection mode cell zone and update test case for mean velocity force selection mode all. The test case are just comparing case output to known good value.

Add readme and new screenshot.

Important to note that majority of the code are written with Claude AI. To make sure that this is not slop, I ran several test case as shown below.

Test 1, flow thought tube bundle with periodic boundary. The flow is driven by mean vel force cellzone (rectangle in the center).
Screenshot_20260318_235449
ParaView output
Screenshot_20260318_235421

Multiple solid assign as mean velocity force with cellzone. The flow are force in different directions.
Screenshot_20260320_000851
ParaView result, this is also include in Demos folder.
Screenshot_20260318_205722

All test pass except propeller, which is not related to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant