Code: Select all
doc = FreeCAD.open(FreeCAD.ConfigGet("AppHomePath") + 'data/examples/FemCalculixCantilever3D.FCStd')
doc.Box_Mesh.FemMesh.write("C:/Users/Public/mesh.vtk")
import Fem
Fem.writeResult( "C:/Users/Public/result_and_resultmesh.vtk", doc.CalculiX_static_results)
with the gui it works a follows ...
- open 3D FEM cantilever
- select the mesh object "Box_Mesh" --> export to "FEM mesh formats" --> mesh.vtk --> exports the mesh into a vtk mesh
- if you select the result_mesh and do the same than the result mesh will be exported only, no results
- select the result object "CalculiX_static_results" --> export to "FEM result VTK" --> result_and_resultmesh.vtk --> exports the result_mesh and the results into a vtk file
bernd