[SPH] add AnalysisSPH module with method to compute barycenter#1116
[SPH] add AnalysisSPH module with method to compute barycenter#1116tdavidcl merged 5 commits intoShamrock-code:mainfrom
Conversation
|
Hi! |
|
Hi! |
|
Ok ! Then I recommend renaming this to ComputeBarycenter, and then if we have a clearer idea for a broad analysis module we can rename it afterward. It doesn't really matter in my opinion that the binding file is crowded, since the only times people look into it it is to ctrl+f inside, + it is weird to do a new file for just 1 function. If you have time and really find pySPHModel obnoxiously long you can try to split it cleverly. Nice project :) |
tdavidcl
left a comment
There was a problem hiding this comment.
Very cool to see this one. I really like the shape of the module, i just have a few comments/tweaks.
|
Done! |
Workflow reportworkflow report corresponding to commit 2a0f950 Pre-commit check reportPre-commit check: ✅ Test pipeline can run. Clang-tidy diff reportNo relevant changes found. You should now go back to your normal life and enjoy a hopefully sunny day while waiting for the review. Doxygen diff with
|
For example to compute the barycenter in the python script:
AnalysisSPH.hppcontains the definition ofget_barycenter()pyAnalyseSPH.cppfor the pybind stuffEDIT:
AnalysisBarycenter.hppcontains the definition ofget_barycenter()The pybind stuff has been added to
pySPHModel.cpp