From 188731062f71c9f0673c1107b0f826978c9e5926 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Tue, 29 Mar 2016 16:13:25 +0100 Subject: [PATCH] Restructuring some of the docs. --- docs/source/geometry_snapshots.rst | 66 ---------------- docs/source/images/antenna_like_GSSI_1500.png | Bin 0 -> 22697 bytes docs/source/index.rst | 3 +- docs/source/input.rst | 6 +- docs/source/output.rst | 72 ++++++++++++++++-- docs/source/user_libraries.rst | 34 +++++++++ 6 files changed, 105 insertions(+), 76 deletions(-) delete mode 100644 docs/source/geometry_snapshots.rst create mode 100644 docs/source/images/antenna_like_GSSI_1500.png create mode 100644 docs/source/user_libraries.rst diff --git a/docs/source/geometry_snapshots.rst b/docs/source/geometry_snapshots.rst deleted file mode 100644 index e0aa4d5e..00000000 --- a/docs/source/geometry_snapshots.rst +++ /dev/null @@ -1,66 +0,0 @@ -*************************** -Geometry and Snapshot files -*************************** - -The geometry and snapshot files use the open source Visualization ToolKit (VTK) (http://www.vtk.org) format which can be viewed in many free readers, such as Paraview (http://www.paraview.org). Paraview is an open-source, multi-platform data analysis and visualization application. It is available for Linux, Mac OS X, and Windows. - -Geometry files -============== - -The ``#geometry_view:`` command produces either ImageData (.vti) for a per-cell geometry view, or PolygonalData (.vtp) for a per-cell-edge geometry view. The per-cell geometry views also show the location of the PML regions and any sources and receivers in the model. The following are steps to get started with viewing geometry files in Paraview: - -.. _pv_toolbar: - -.. figure:: images/paraview_toolbar.png - - Paraview toolbar showing ``gprMax_info`` macro button. - -#. **Open the file** either from the File menu or toolbar. -#. Click the **Apply** button in the Properties panel. You should see an outline of the volume of the geometry view. -#. Install the ``gprMax_info.py`` Python script, that comes with the gprMax source code (in the ``tools/Paraview macros`` directory), as a macro in Paraview. This script makes it quick and easy to view the different materials in a geometry file. To add the script as a macro in Paraview choose the file from the Macros->Add new macro menu. It will then appear as a shortcut button in the toolbar as shown in :numref:`pv_toolbar`. You only need to do this once, the macro will be kept in Paraview for future use. -#. Click the ``gprMax_info`` shortcut button. All the materials in the model should appear in the Pipeline Browser as Threshold items as shown in :numref:`pv_pipeline`. - -.. _pv_pipeline: - -.. figure:: images/paraview_pipeline.png - :width: 350 px - - Paraview Pipeline Browser showing list of materials in an example model. - -.. tip:: - * You can turn on and off the visibility of materials using the eye icon in the Pipeline Browser. You can select multiple materials using the Shift key, and by shift-clicking the eye icon, turn the visibility of multiple materials on and off. - - * You can set the Color and Opacity of materials from the Properties panel. - - -Snapshot files -============== - -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, use the following code snippet in your input file. Replace ``xs, ys, zs, xf, yf, zf, dx, dy, dz`` accordingly. - - .. code-block:: none - - #python: - from gprMax.input_cmd_funcs import * - for i in range(1, 31): - snapshot(xs, ys, zs, xf, yf, zf, dx, dy, dz, (i/10)*1e-9, 'snapshot' + str(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. -#. Use the **Coloring** drop down menu to select either **E-field** or **H-field**, and the further drop down menu to select either **Magnitude**, **x**, **y** or **z** component. -#. From the **Representation** drop down menu select **Surface**. -#. You can step through or play as an animation the time steps using the **time controls** in the toolbar. - -.. tip:: - - * Turn on the Animation View (View->Animation View menu) to control the speed and start/stop points of the animation. - - * Use the Color Map Editor to adjust the Color Scaling. - - diff --git a/docs/source/images/antenna_like_GSSI_1500.png b/docs/source/images/antenna_like_GSSI_1500.png new file mode 100644 index 0000000000000000000000000000000000000000..92bcf1ad2d9eef61b8a5144ab86f28b1efb575ef GIT binary patch literal 22697 zcmeHvc|6o>`~S3ev^YIcM6^7Wt&k;TYomohL!?9skt9p@t&Wtnj(we^49XTolqI38 z)wED{8ASGN80LH5_h&@voO(LXdHufM=lA?$WrB~uH#57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wkG0+ECc-coNLsh@S3V!EGpjE>`cvPu3s?czddk!wo^ij!t zTdW}u0|ckFk^@%WINVe`. File structure -============== +-------------- The output file has the following HDF5 attributes at the root (``/``): @@ -97,9 +99,67 @@ Within each individual ``tl`` group are the following datasets: * ``Itotal`` is an array containing the time history (for the model time window) of the values of the total (field) current in the transmission line. -Viewing output -============== +Snapshots +--------- + +Snapshot files use the open source Visualization ToolKit (VTK) (http://www.vtk.org) format which can be viewed in many free readers, such as Paraview (http://www.paraview.org). Paraview is an open-source, multi-platform data analysis and visualization application. It is available for Linux, Mac OS X, and Windows. The ``#snapshot:`` command produces an ImageData (.vti) snapshot file containing electric and magnetic field data and current data 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, use the following code snippet in your input file. Replace ``xs, ys, zs, xf, yf, zf, dx, dy, dz`` accordingly. + + .. code-block:: none + + #python: + from gprMax.input_cmd_funcs import * + for i in range(1, 31): + snapshot(xs, ys, zs, xf, yf, zf, dx, dy, dz, (i/10)*1e-9, 'snapshot' + str(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. +#. Use the **Coloring** drop down menu to select either **E-field** or **H-field**, and the further drop down menu to select either **Magnitude**, **x**, **y** or **z** component. +#. From the **Representation** drop down menu select **Surface**. +#. You can step through or play as an animation the time steps using the **time controls** in the toolbar. + +.. tip:: + + * Turn on the Animation View (View->Animation View menu) to control the speed and start/stop points of the animation. + + * Use the Color Map Editor to adjust the Color Scaling. + + +Geometry output +=============== + +Geometry files use the open source Visualization ToolKit (VTK) (http://www.vtk.org) format which can be viewed in many free readers, such as Paraview (http://www.paraview.org). Paraview is an open-source, multi-platform data analysis and visualization application. It is available for Linux, Mac OS X, and Windows. + +The ``#geometry_view:`` command produces either ImageData (.vti) for a per-cell geometry view, or PolygonalData (.vtp) for a per-cell-edge geometry view. The per-cell geometry views also show the location of the PML regions and any sources and receivers in the model. The following are steps to get started with viewing geometry files in Paraview: + +.. _pv_toolbar: + +.. figure:: images/paraview_toolbar.png + + Paraview toolbar showing ``gprMax_info`` macro button. + +#. **Open the file** either from the File menu or toolbar. +#. Click the **Apply** button in the Properties panel. You should see an outline of the volume of the geometry view. +#. Install the ``gprMax_info.py`` Python script, that comes with the gprMax source code (in the ``tools/Paraview macros`` directory), as a macro in Paraview. This script makes it quick and easy to view the different materials in a geometry file. To add the script as a macro in Paraview choose the file from the Macros->Add new macro menu. It will then appear as a shortcut button in the toolbar as shown in :numref:`pv_toolbar`. You only need to do this once, the macro will be kept in Paraview for future use. +#. Click the ``gprMax_info`` shortcut button. All the materials in the model should appear in the Pipeline Browser as Threshold items as shown in :numref:`pv_pipeline`. + +.. _pv_pipeline: + +.. figure:: images/paraview_pipeline.png + :width: 350 px + + Paraview Pipeline Browser showing list of materials in an example model. + +.. tip:: + * You can turn on and off the visibility of materials using the eye icon in the Pipeline Browser. You can select multiple materials using the Shift key, and by shift-clicking the eye icon, turn the visibility of multiple materials on and off. + + * You can set the Color and Opacity of materials from the Properties panel. + -There are a number of free tools available to read HDF5 files. Also MATLAB has high- and low-level functions for reading and writing HDF5 files, i.e. ``h5info`` and ``h5disp`` are useful for returning information and displaying the contents of HDF5 files respectively. gprMax includes some Python modules (in the ``tools`` package) to help you view output data. These are documented in the :ref:`tools section `. diff --git a/docs/source/user_libraries.rst b/docs/source/user_libraries.rst new file mode 100644 index 00000000..2765863b --- /dev/null +++ b/docs/source/user_libraries.rst @@ -0,0 +1,34 @@ +.. _user-libs: + +************* +User libaries +************* + +The user libraries sub-package is where useful modules contributed by users are stored. + +antennas.py +=========== + +This library currently features models of antennas similar to: + +* a Geophysical Survey Systems, Inc. (GSSI) 1.5 GHz (Model 5100) antenna (http://www.geophysical.com) +* a MALA Geoscience 1.2 GHz antenna (http://www.malags.com/) + +These antenna models can be accessed from within a block of Python code in your simulation. For example, to use Python to include an antenna model similar to a GSSI 1.5 GHz antenna at a location 0.125m, 0.094m, 0.100m (x,y,z) using a 1mm spatial resolution: + +.. code-block:: none + + #python: + from user_libs.antennas import antenna_like_GSSI_1500 + antenna_like_GSSI_1500(0.125, 0.094, 0.100, 0.001) + #end_python: + +.. figure:: images/antenna_like_MALA_1200.png + :width: 600 px + + FDTD geometry mesh showing an antenna model similar to a MALA 1.2GHz antenna (skid removed for illustrative purposes). + +.. figure:: images/antenna_like_GSSI_1500.png + :width: 600 px + + FDTD geometry mesh showing an antenna model similar to a GSSI 1.5GHz antenna (skid removed for illustrative purposes).