fix mesh/volume/vtk command
Warning
GPU support for this command has not been tested and may not work as expected.Syntax
fix ID group-ID mesh/volume/vtk file filename keyword value ...
ID, is documented in fix command.
mesh/volume/vtk = style name of this fix command
file = obligatory keyword filename = path to vtk/vtu-mesh file zero or more keyword/value pairs may be appended
keyword = scale or move or rotate
scale value = factor factor = factor to scale the mesh in x-, y-, and z-direction (double value) move values = mx my mz mx my mz = move the mesh by this extent in x-, y-, and z-direction (length units) rotate values = axis ax ay az angle ang axis = obligatory keyword ax, ay, az = axis vector for rotation (length units) angle = obligatory keyword ang = rotation angle (degrees)
Examples
fix cad1 all mesh/volume/vtk file mesh.vtk
fix cad2 all mesh/volume/vtk file unstructured_mesh.vtu
Description
This fix allows to import an unstructured or polygonal mesh from vtk (legacy) or vtu (modern, unstructured grid) files with the name filename.
In general, you can apply scaling, offset and rotation to the imported mesh via keywords scale, move, rotate. Operations are applied in the order as they are specified. The rotation via rotate is performed around the rotation axis that goes through the origin (0,0,0) and in the direction of axis.
Restart, fix_modify, output, run start/stop
This fix writes no data to restart files.
None of the fix_modify options are relevant to this fix.
No global scalar or vector or per-atom quantities are stored by this fix for access by various output commands. No parameter of this fix can be used with the start/stop keywords of the run command.
Restrictions
This feature requires VTK version >= 6.2.