Skip to content

Summer clean up - #157

Merged
malihass merged 29 commits into
mainfrom
summercleanup
Jul 28, 2026
Merged

Summer clean up#157
malihass merged 29 commits into
mainfrom
summercleanup

Conversation

@malihass

@malihass malihass commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Remove spurious bugs I have noticed recently

  • Calibration min max were missing
  • f strings lacked the f prefix
  • logger message were failing
  • rogue name additions
  • conditional average was very verbose
  • ofio repeated a lot of code
  • too many places where we scale with 1e-3
  • Filtering uniform field was bogus because we end up doing a np.argwhere on scalar
  • Breakup post_quantities
  • Breakup ofio
  • remove duplicated functions
  • Avoid duplicated logic when writing file

malihass added 29 commits July 27, 2026 15:52
…coded readInletArea comment parsing by doing a lines[4]
@malihass
malihass merged commit ac55f2e into main Jul 28, 2026
14 checks passed
@malihass
malihass deleted the summercleanup branch July 28, 2026 20:19
github-actions Bot pushed a commit that referenced this pull request Jul 28, 2026
* arguments were missing

* missing f string

* missing another f string

* passing optional file name so that we can have a useful log

* rogue name edit

* missing logger, but we want Value error anyway

* use np.bincount and fix the conditioning

* add unit test

* dedupe openfoam field header scan and fix error handling

* avoid scaling multiple times from g/mol to kg/mol

* make sure get ind gas and get ind liq work even with uniform fields

* remove the star imports

* add a weighted averaged function to avoid bugs in the averaging

* breakup post quantities

* split up ofio

* wrong docstrings, I had copy pasted it from cell_volumes

* write_this_block was repeated, we moved it to mesh_tools. Also added type hints and documentation

* uniformize (for now) the OF v

* inlet-area parsing through a robust shared reader. Before, I had hardcoded readInletArea comment parsing by doing a lines[4]

* loop instead of repeating code

* avoid unintended expression replacement when calling eval(

* add a write_face function to make write patches less verbose

* add docstrings and dedupe indexed-var writes

* handle non matching coarsening and number of blocks

* make sure multiring template works

* split superficial velocity into pv and numpy branches

* unused imports

* remove calibration tut

* new cleaned up bird version
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