你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Added example of creating snapshots with Python in an input file.
这个提交包含在:
@@ -36,7 +36,19 @@ The ``#geometry_view:`` command produces either ImageData (.vti) for a per-cell
|
|||||||
Snapshot files
|
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.
|
#. **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.
|
#. Click the **Apply** button in the Properties panel. You should see an outline of the snapshot volume.
|
||||||
|
在新工单中引用
屏蔽一个用户