add head_array() methods for unstructured computation of heads#139
Conversation
dbrakenhoff
commented
Jun 18, 2026
- steady and transient models
- make headgrid use head_array under the hood.
- steady and transient models - make headgrid use head_array under the hood.
|
test fail fixed in #138 |
…_map) - remove storeinputs to allow pickling - add velocity_array methods - refactor head_array and velocity_array to use multiprocessing in parallel branch. - only support tqdm progressbars or nothing - parallel is bool or int, where int is interpreted as number of processes - align docstrings - add pickleable helper funcs
|
@mbakker7 this is ready for review now |
|
This looks nice. I tried the |
mbakker7
left a comment
There was a problem hiding this comment.
Just ran a more substantial example (the parallel_example from #140). Generating a grid is 3 times faster with parallel=True, so great job! Good note that there is hardly any time lost by computing the grid at 10 different times rather than just 1 time.
So nice job!
|
Yea, i expect the speedup to be more significant for larger models (more elements) and finer grids, up to a certain point of course. I think 3x speedup on 4 main cores seems reasonable. On my PC using the maximum number of threads ( |