-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Use Case
svSlicer (https://github.com/StanfordCBCL/svSlicer) is a repository that takes in 3D results (.vtu file), projects them onto the specified centerline (.vtp file), and averages the results along the points on the centerline to return a .vtp file. This .vtp file can then be postprocessed using vtk in your favorite python script. The whole repository only has one C++ file called main.cpp
I suggest that we add this C++ file to svMultiPhysics. This repository will be useful for comparing 3D model results projected on a centerline with 0D model results, as the lab transitions to more automated methods of BC tuning.
Problem
Currently, svSlicer has only been tested on svSolver's 3D results. I started testing the code using svMultiPhysics. I ran into several issues on my Macbook Pro with M2 Max.
Installation issues:
set(CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang")does not work with Homebrew installationcmake --install .gives a Permission denied error- Did not try this on HPC cluster yet, so there remain mysterious issues (or maybe not).
Code issue:
- There are no arrays called 'velocity' and 'pressure', so svSlicer will automatically delete those arrays when creating the .vtp file.
Solution
I have solutions to some of these issues. Others remain to be tested by folks.
Installation issues:
- Replace the path to
“/opt/homebrew/opt/llvm/bin/clang”for those using the Homebrew installation sudo make install .will allow permission to install- If issues arise, create a Docker (or does the preexisting one for svMultiPhysics work? someone should test this.)
Code issue:
- These arrays are now called 'Velocity' and 'Pressure'. Also, 'WSS' is now part of svMultiPhysics. These should be fixed in the
main.cppfile.
Alternatives considered
It would be great to discuss!
Also, would it be more useful for this feature to be part of the .xml file or as a standalone option (e.g., running it as "svslicer" alone)?
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct and Contributing Guidelines