FreeFem / FreeFem-doc

FreeFEM user documentation
https://doc.freefem.org
Other
131 stars 43 forks source link

FreeFem + Paraview #24

Closed annabellecollin closed 4 years ago

annabellecollin commented 4 years ago

I use the version v4.5 of FreeFem++. When I run this small part of code: ** BEGIN ** load "medit" load "msh3" load "iovtk" mesh3 Th = cube(10, 10, 10); savemesh(Th,"test.mesh"); mesh3 Th2; Th2 = readmesh3("test.mesh"); savevtk("test.vtk",Th); savevtk("test2.vtk",Th2); ** END ** Both files test.vtk and test2.vtk can not be opened by Paraview (version 5.8.0). It works with 2D mesh (and with surface mesh) but not with 3D mesh. Thank you very much for your help.

prj- commented 4 years ago

This repository is for the documentation of FreeFEM, please ask your general questions over at https://github.com/FreeFem/FreeFem-sources. You can fix your code using the .vtu extension, i.e.:

savevtk("test.vtu",Th);
savevtk("test2.vtu",Th2);
annabellecollin commented 4 years ago

Ok sorry for the mistake. Thanks! It works.