Skip to content

Adding svSlicer #9

@chlookaburra

Description

@chlookaburra

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:

  1. set(CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang") does not work with Homebrew installation
  2. cmake --install . gives a Permission denied error
  3. Did not try this on HPC cluster yet, so there remain mysterious issues (or maybe not).

Code issue:

  1. 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:

  1. Replace the path to “/opt/homebrew/opt/llvm/bin/clang” for those using the Homebrew installation
  2. sudo make install . will allow permission to install
  3. If issues arise, create a Docker (or does the preexisting one for svMultiPhysics work? someone should test this.)

Code issue:

  1. These arrays are now called 'Velocity' and 'Pressure'. Also, 'WSS' is now part of svMultiPhysics. These should be fixed in the main.cpp file.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions