Changes between Version 2 and Version 3 of cypress/Example VTK-python
- Timestamp:
- 08/18/25 17:42:14 (2 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
cypress/Example VTK-python
v2 v3 43 43 vel = np.array([float(u), float(v), float(w)]) 44 44 scalArray.SetValue(offset,float(p)) 45 velArray.SetTuple Value(offset,vel)45 velArray.SetTuple(offset,vel) 46 46 47 47 sGrid.SetPoints(nodes) … … 51 51 # 52 52 writer = vtk.vtkXMLStructuredGridWriter() 53 writer.SetInput (sGrid)53 writer.SetInputData(sGrid) 54 54 55 55 writer.SetFileName("officeFlow.vts")