Added example of creating snapshots with Python in an input file.

这个提交包含在:
Craig Warren
2015-11-19 12:59:57 +00:00
父节点 e9609fa31f
当前提交 86c86d4867

查看文件

@@ -36,7 +36,19 @@ The ``#geometry_view:`` command produces either ImageData (.vti) for a per-cell
Snapshot files
==============
The ``#snapshot:`` command produces an ImageData (.vti) snapshot file for each time instance requested. The following are steps to get started with viewing snapshot files in Paraview:
The ``#snapshot:`` command produces an ImageData (.vti) snapshot file for each time instance requested.
.. tip::
You can take advantage of Python scripting to easily create a series of snapshots. For example, to create 30 snapshots starting at time 0.1ns until 3ns in intervals of 0.1ns, insert the following into your input file.
.. code-block:: none
#python:
for i in range(1, 31):
print('#snapshot: x1 y1 z1 x2 y2 z2 dx dy dz {} snapshot{}'.format((i/10)*1e-9, i))
#end_python:
The following are steps to get started with viewing snapshot files in Paraview:
#. **Open the file** either from the File menu or toolbar. Paraview should recognise the time series based on the file name and load in all the files.
#. Click the **Apply** button in the Properties panel. You should see an outline of the snapshot volume.