Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fem: Export post-processing data to VTK - fixes #5816 #12987

Merged
merged 1 commit into from Mar 22, 2024

Conversation

marioalexis84
Copy link
Member

It works using the Export... item in the menu bar and from Python using the writeVTK method of post-processing objects.
File extension is automatically detected from data type.

@FEA-eng

@github-actions github-actions bot added the WB FEM Related to the FEM Workbench label Mar 16, 2024
@marioalexis84 marioalexis84 changed the title Fem: Export post processing data to VTK - fixes #5816 Fem: Export post-processing data to VTK - fixes #5816 Mar 16, 2024
@FEA-eng
Copy link
Contributor

FEA-eng commented Mar 16, 2024

Nice, it's working but the extension becomes *.vtk.vtu for some reason.

@marioalexis84
Copy link
Member Author

the extension becomes *.vtk.vtu for some reason

Fixed.

There is a limitation in the export dialog. Currently, it's not possible to automatically select the appropriate filename extension, so the default extension is vtu. In any case, it is subsequently modified internally by the export function.
For example, if you try to save a file as result.vtu but the extension should be .vtp, this is changed internally so the file is saved as result.vtp.
The recommendation is to write the name without an extension and let the system add the appropriate one.

@luzpaz luzpaz linked an issue Mar 17, 2024 that may be closed by this pull request
@FEA-eng
Copy link
Contributor

FEA-eng commented Mar 17, 2024

Now the extension is correct, thanks.

@marioalexis84
Copy link
Member Author

@chennes this PR is ready.

@chennes chennes merged commit cbdef02 into FreeCAD:main Mar 22, 2024
9 checks passed
@FEA-eng FEA-eng mentioned this pull request Mar 26, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WB FEM Related to the FEM Workbench
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEM, export vtk pipeline to vtk file format directly
3 participants