CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

How to save a volume binary mask to su2 file?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2022, 09:52
Default How to save a volume binary mask to su2 file?
  #1
Member
 
zhangqiang
Join Date: Nov 2022
Posts: 43
Rep Power: 4
zhang-qiang is on a distinguished road
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~~~
zhang-qiang is offline   Reply With Quote

Old   December 6, 2022, 17:27
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 676
Rep Power: 21
bigfootedrockmidget is on a distinguished road
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?
bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
visualization


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:26.