|
[Sponsors] |
How to save a volume binary mask to su2 file? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
zhangqiang
Join Date: Nov 2022
Posts: 43
Rep Power: 3 ![]() |
I want to implement a CFD model for a 3D blood vessel. Now, I have the segmentation of the blood vessel, which is a volume binary mask. I wonder how can I obtain the corresponding su2 file using this volume binary mask?
Any suggestion is appreciated~~~ |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 596
Rep Power: 17 ![]() |
You said previously that you are working in python. I think the best way forward is to write a simple python function to save your data in su2 format, the mesh file is pretty simple:
https://su2code.github.io/docs/Mesh-File/ As you can see, it is basically a collection of points, followed by how the points are connected to form the 3D elements (connectivity information). Is the mesh supposed to consist of 3D hexahedral (cube) elements? |
|
![]() |
![]() |
![]() |
Tags |
visualization |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 21:53 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 11:32 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 01:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |