Output Immersed Boundary load and state data#1302
Output Immersed Boundary load and state data#1302mrvandenboom wants to merge 13 commits intoMFlowCode:masterfrom
Conversation
organize the code. Adds new case parameter ib_force_wrt to toggle output.
This reverts commit 647d4c0. By reverting this commit, it returns gitignore to the MFC master version.
Merge MFC changes into ibdata-output
Claude Code ReviewHead SHA: 0c8d00c Files changed: 12
Summary:
Findings1. Hard-coded Fortran I/O unit —Lines ~+267, +1160, +1947 (new The simulation-side routines use the literal unit number ! In module m_data_output (module-level)
integer :: ib_state_unit
! In s_open_ib_state_file
open(newunit=ib_state_unit, file=trim(file_loc), form='unformatted', access='stream', status='replace')
! In s_write_ib_state_file / s_close_ib_state_file
write(ib_state_unit) ...
close(ib_state_unit)2. Contradictory
|
Keep ib_state_wrt addition, apply ruff formatting from master. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Claude Code ReviewHead SHA: f3e1b45 Files changed: 12
Summary:
Findings1. Hard-coded Fortran unit number — line ~268Hard-coding unit 92 risks silent collision with any other Store 2. Contradictory
|
Description
This adds binary output of IB load and state data during the simulation run, and conversion to a CSV file in post processing. Including the parameter ib_state_wrt="T" will activate the output routines. Output files can be found under the "/D" folder.
Fixes #(issue)
Type of change
Testing
Ran lint, format, test -a on a MacBookPro (10 core) and on (4) Tuo GPUs.
Checklist
See the developer guide for full coding standards.
GPU changes (expand if you modified
src/simulation/)Tests ran considerably faster on MacBook CPUs than on Tuolumne GPUs.
AI code reviews
Reviews are not triggered automatically. To request a review, comment on the PR:
@coderabbitai review— incremental review (new changes only)/review— Qodo review/improve— Qodo code suggestions