-
I was trying to generate palabos input file (.dat file with 0,1 & 2) from stl file. It is a sphere in cube 3d model as I intend to study flow through pack of sphere in palabos. I could generate series of bmp images from stl file using vedo (by binarize() and followed by slicing). Is there a similar option available in porespy? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I could do that by converting the series of bmp file to a binary tif file using fiji first, and then read into porespy using imageio.volread('binary.tif') followed by generating dat file by |
Beta Was this translation helpful? Give feedback.
-
If you just want spheres, what about using either As for our Lastly, conversion to binary is easy, you're over thinking it. Just do: |
Beta Was this translation helpful? Give feedback.
If you just want spheres, what about using either
rsa
,pseudo_gravity_packing
orpseudo_electrostatic_packing
? Then you'll have 'voxel' images directly?As for our
to_palabos
function, I must admit that none of use have used it in several years, so although it passes our unit tests, the Palabos package may want something different by now.Lastly, conversion to binary is easy, you're over thinking it. Just do:
im = bmp > 0
, and you'll have an image ofTrue
andFalse
.