Closed PavelBlend closed 3 months ago
Hi @PavelBlend,
the lbm.write_mesh_to_vtk(...);
function is there to export meshes previously loaded from .stl
files, with correct translation/scaling as they were placed in the simulation box, and with unit conversion.
This does not work for exporting the mesh of the free surface - there is currently no function implemented to generate the free surface mesh from the lbm.phi
isofield on the CPU side. For the embedded rendering, the free surface mesh is generated on-the-fly in GPU registers and directly rendered to the bitmap, without ever storing it in GPU memory.
You can however export the lbm.phi
isofield, with lbm.phi.write_device_to_vtk();
, and render the isosurface from it in ParaView.
In your code snipped above, you just added an empty Mesh
with 1 triangle and (rotation) center at 0, 0, 0
, without setting the 3 vertex positions of this triangle, and tried exporting that.
Kind regards, Moritz
How can I export a mesh to vtk format? I modified your example, but it didn't work. At the end I added a call to write_mesh_to_vtk.