|
[Sponsors] |
How to save a volume binary mask to su2 file? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2022, 09:52 |
How to save a volume binary mask to su2 file?
|
#1 |
Member
zhangqiang
Join Date: Nov 2022
Posts: 43
Rep Power: 4 |
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~~~ |
|
December 6, 2022, 17:27 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21 |
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 |
|
|
Similar Threads | ||||
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 22:53 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |