Merge remote-tracking branch 'origin/master'

这个提交包含在:
Craig Warren
2015-11-13 15:10:32 +00:00
当前提交 456bb9b51f
共有 37 个文件被更改,包括 75 次插入75 次删除

查看文件

@@ -15,7 +15,7 @@ A Gaussian waveform.
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/gaussian.pdf
.. figure:: images/gaussian.png
Example of the ``gaussian`` waveform - time domain and power spectrum.
@@ -29,7 +29,7 @@ First derivative of a Gaussian waveform.
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/gaussiandot.pdf
.. figure:: images/gaussiandot.png
Example of the ``gaussiandot`` waveform - time domain and power spectrum.
@@ -43,7 +43,7 @@ Normalised first derivative of a Gaussian waveform.
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/gaussiandotnorm.pdf
.. figure:: images/gaussiandotnorm.png
Example of the ``gaussiandotnorm`` waveform - time domain and power spectrum.
@@ -57,7 +57,7 @@ Second derivative of a Gaussian waveform.
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/gaussiandotdot.pdf
.. figure:: images/gaussiandotdot.png
Example of the ``gaussiandotdot`` waveform - time domain and power spectrum.
@@ -71,7 +71,7 @@ Normalised second derivative of a Gaussian waveform.
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/gaussiandotdotnorm.pdf
.. figure:: images/gaussiandotdotnorm.png
Example of the ``gaussiandotdotnorm`` waveform - time domain and power spectrum.
@@ -85,7 +85,7 @@ Third derivative of a Gaussian waveform.
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/gaussiandotdotdot.pdf
.. figure:: images/gaussiandotdotdot.png
Example of the ``gaussiandotdotdot`` waveform - time domain and power spectrum.
@@ -99,7 +99,7 @@ A Ricker (or Mexican Hat) waveform which is the negative, normalised second deri
where :math:`I` is the current, :math:`\zeta = 2\pi^2f^2`, :math:`\chi=\frac{1}{f}` and :math:`f` is the frequency.
.. figure:: images/ricker.pdf
.. figure:: images/ricker.png
Example of the ``ricker`` waveform - time domain and power spectrum.
@@ -123,7 +123,7 @@ and
:math:`I` is the current, :math:`t` is time and :math:`f` is the frequency.
.. figure:: images/sine.pdf
.. figure:: images/sine.png
Example of the ``sine`` waveform - time domain and power spectrum.
@@ -147,7 +147,7 @@ and
where :math:`I` is the current, :math:`R_c` is set to :math:`0.25`, :math:`t` is time and :math:`f` is the frequency.
.. figure:: images/contsine.pdf
.. figure:: images/contsine.png
Example of the ``contsine`` waveform - time domain and power spectrum.

查看文件

@@ -72,7 +72,7 @@ author = 'Craig Warren and Antonis Giannopoulos'
# The short X.Y version.
# Read version number from gprMax/gprMax.py
#version = re.search('^__version__\s*=\s*\'(.*)\'', open('../../gprMax/gprMax.py').read(), re.M).group(1)
version = '3.0.0b5'
version = '3.0.0b7'
# The full version, including alpha/beta/rc tags.
release = version + '(Bowmore)'

查看文件

@@ -19,7 +19,7 @@ The geometry of the scenario is straightforward and is shown in :numref:`cylinde
.. _cylinder_half_space_geo:
.. figure:: images/cylinder_half_space_geo.pdf
.. figure:: images/cylinder_half_space_geo.png
:width: 600 px
Geometry of a 2D model of a metal cylinder buried in a dielectric half-space.
@@ -52,19 +52,19 @@ Calculate a spatial resolution and domain size
In the :ref:`guidance` section it was stated that a good *rule-of-thumb* was that the spatial resolution should be one tenth of the smallest wavelength present in the model. To determine the smallest wavelength, the highest frequency present in the model is required. This is not the centre frequency of the Ricker waveform! By examining the spectrum of the Ricker waveform it is evident much higher frequencies are present, 2-3 times as high as the centre frequency. So the highest frequency present in the model is likely to be around 4 GHz. The wavelength at 4 GHz in the half-space would be:
.. math:: \lambda = \frac{c}{f \sqrt{\epsilon_r}} = \frac{299792458}{4\times 10^9 \sqrt{6}} = 30.6~\textrm{mm}
.. math:: \lambda = \frac{c}{f \sqrt{\epsilon_r}} = \frac{299792458}{4\times 10^9 \sqrt{6}} \approx 31~\textrm{mm}
This would give a minimum spatial resolution of 3 mm. However, the diameter of the cylinder is 20 mm so would be resolved to 7 cells. Therefore a better choice would be 2 mm which resolves the diameter of the rebar to 10 cells, but since the model is only 2D (and therefore the size of the domain will not be large), a spatial resolution of 1 mm will be used.
This would give a minimum spatial resolution of 3 mm. However, the diameter of the cylinder is 20 mm so would be resolved to 7 cells. Therefore a better choice would be 2 mm which resolves the diameter of the rebar to 10 cells.
.. code-block:: none
#dx_dy_dz: 0.001 0.001 0.001
#dx_dy_dz: 0.002 0.002 0.002
The domain size should be enough to enclose the volume of interest, plus allow 10 cells (if using the default value) for the PML absorbing boundary conditions and approximately another 10 cells of between the PML and any objects of interest. In this case the plan is to take a B-scan of the scenario (in the next example) so the domain should be large enough to do that. Although this is a 2D model one cell must be specified in the infinite direction (in this case the z direction) of the domain.
.. code-block:: none
#domain: 0.240 0.190 0.001
#domain: 0.240 0.190 0.002
Since this is a 2D model the PML should be switched off for the two faces of the domain in the infinite direction (in this case the z direction). This is achieved using the command:
@@ -77,13 +77,13 @@ Choose a time window
It is desired to see the reflection from the cylinder, therefore the time window must be long enough to allow the electromagnetic waves to propagate from the source through the half-space to the cylinder and be reflected back to the receiver, i.e.
.. math:: \frac{0.180}{\frac{c}{\sqrt{6}}} = 1.47~\textrm{ns}
.. math:: t = \frac{0.180}{\frac{c}{\sqrt{6}}} \approx 1.5~\textrm{ns}
This is the minimum time required, but to allow for the entire pulse wavelet to be reflected back to the receiver an initial time window of 4 ns will be tested.
This is the minimum time required, but the pulse wavelet has a width of 1.2 ns, to allow for the entire pulse wavelet to be reflected back to the receiver an initial time window of 3 ns will be tested.
.. code-block:: none
#time_window: 4e-9
#time_window: 3e-9
gprMax will calculate the time step required for the model using the CFL condition in 3D. However, since this is a 2D model the time step can be relaxed to the CFL condition in 2D. This is achieved using the command:
@@ -98,8 +98,8 @@ Now physical objects can created for the half-space and the cylinder. First the
.. code-block:: none
#box: 0 0 0 0.240 0.170 0.001 half_space
#cylinder: 0.120 0.080 0 0.120 0.080 0.001 0.010 pec
#box: 0 0 0 0.240 0.170 0.002 half_space
#cylinder: 0.120 0.080 0 0.120 0.080 0.002 0.010 pec
Run the model
-------------
@@ -117,13 +117,13 @@ You should have produced an output file ``cylinder_Ascan_2D.out``. You can view
.. code-block:: none
python -m tools.plot_hdf5_Ascan cylinder_Ascan_2D.out
python -m tools.plot_Ascan_hdf5 cylinder_Ascan_2D.out
:numref:`cylinder_Ascan_results` shows the time history of the electric and magnetic field components at the receiver location. The :math:`E_z` field component can be converted to voltage which represents the A-scan (trace). The initial part of the signal (<1.5 ns) represents the direct wave from transmitter to receiver. Then comes the reflected wavelet from the metal cylinder.
.. _cylinder_Ascan_results:
.. figure:: images/cylinder_Ascan.pdf
.. figure:: images/cylinder_Ascan.png
Field outputs from a model of a metal cylinder buried in a dielectric half-space.
@@ -141,21 +141,21 @@ This example using the same geometry as the previous example but this time a B-s
The differences between this input file and the one from the A-scan are the x coordinates of the source and receiver (lines 11 adnd 12), and the commands needed to move the source and receiver (lines 13 and 14). The source and receiver are offset by 40mm from each other as before. They are now shifted to the starting position for the scan. The ``#src_steps`` command is used to tell gprMax to move every source in the model by specified steps each time the model is run. Similarly, the ``#rx_steps`` command is used to tell gprMax to move every receiver in the model by specified steps each time the model is run. Note, the same functionality could be achieved by using a block of Python code in the input file to move the source and receiver (for further details see the :ref:`Python section <python>`).
To run the model for a B-scan is slightly different than for a single A-scan. You must pass an optional argument to gprMax to specify the number of times the model should be run, which in this case is the number of A-scans (traces) that will comprise the B-scan. For a B-scan over a distance of 160mm with a step of 2mm that is 80 A-scans.
To run the model for a B-scan is slightly different than for a single A-scan. You must pass an optional argument to gprMax to specify the number of times the model should be run, which in this case is the number of A-scans (traces) that will comprise the B-scan. For a B-scan over a distance of 120mm with a step of 2mm that is 60 A-scans.
.. code-block:: none
python -m gprMax cylinder_Bscan_2D.in -n 80
python -m gprMax cylinder_Bscan_2D.in -n 60
Results
-------
You should have produced 80 output files, one for each A-scan, with names ``cylinder_Bscan_2D1.out``, ``cylinder_Bscan_2D2.out`` etc... These can be combined into a single file using the command:
You should have produced 60 output files, one for each A-scan, with names ``cylinder_Bscan_2D1.out``, ``cylinder_Bscan_2D2.out`` etc... These can be combined into a single file using the command:
.. code-block:: none
python -m tools.outputfiles_mergehdf5 cylinder_Bscan_2D 80
python -m tools.outputfiles_mergehdf5 cylinder_Bscan_2D 60
You should see a combined output file ``cylinder_Bscan_2D_all.out``. The tool will ask you if you want to delete the original single A-scan output files or keep them.
@@ -163,13 +163,13 @@ You can now view an image of the B-scan using the command:
.. code-block:: none
python -m tools.plot_hdf5_Bscan cylinder_Bscan_2D_all.out Ez
python -m tools.plot_Bscan_hdf5 cylinder_Bscan_2D_all.out Ez
:numref:`cylinder_Bscan_results` shows the B-scan (image of the Ez field). As expected a hyperbolic response is present from the metal cylinder.
.. _cylinder_Bscan_results:
.. figure:: images/cylinder_Bscan_results.pdf
.. figure:: images/cylinder_Bscan_results.png
B-scan of model of a metal cylinder buried in a dielectric half-space.

查看文件

@@ -29,7 +29,7 @@ Results
.. _antenna_MALA_1200_fs_results:
.. figure:: images/antenna_MALA_1200_fs_results.pdf
.. figure:: images/antenna_MALA_1200_fs_results.png
Field outputs from the receiver bowtie of a model of an antenna similar to a MALA 1.2GHz antenna.
@@ -64,7 +64,7 @@ Results
.. _GSSI_1500_cylinder_Bscan_results:
.. figure:: images/GSSI_1500_cylinder_Bscan_results.pdf
.. figure:: images/GSSI_1500_cylinder_Bscan_results.png
B-scan of model of a metal cylinder buried in a dielectric half-space with a model of an antenna similar to a GSSI 1.5GHz antenna.

查看文件

@@ -27,7 +27,7 @@ temporal :math:`\Delta t` steps play a very significant role -- since the smalle
.. _yeecell:
.. figure:: images/yeecell.pdf
.. figure:: images/yeecell.png
3D FDTD Yee cell
@@ -45,7 +45,7 @@ One of the most challenging issues in modelling *open boundary* problems, such a
.. _abcs:
.. figure:: images/abcs.pdf
.. figure:: images/abcs.png
GPR forward problem showing computational domain bounded by Absorbing Boundary Conditions (ABCs)
@@ -63,7 +63,7 @@ A right-handed Cartesian coordinate system is used with the origin of space coor
.. _coord3d:
.. figure:: images/coord3d.pdf
.. figure:: images/coord3d.png
gprMax coordinate system and conventions.

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 310 KiB

二进制
docs/source/images/abcs.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 76 KiB

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 421 KiB

二进制
docs/source/images/contsine.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 385 KiB

二进制
docs/source/images/coord3d.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 79 KiB

二进制文件未显示。

二进制
docs/source/images/cylinder_Ascan.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 376 KiB

二进制文件未显示。

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 274 KiB

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 69 KiB

二进制
docs/source/images/gaussian.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 252 KiB

二进制
docs/source/images/gaussiandot.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 255 KiB

二进制
docs/source/images/gaussiandotdot.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 260 KiB

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 278 KiB

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 265 KiB

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 273 KiB

二进制
docs/source/images/ricker.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 264 KiB

二进制
docs/source/images/sine.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 266 KiB

二进制
docs/source/images/yeecell.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 82 KiB

查看文件

@@ -1,7 +1,7 @@
#title: A-scan from a metal cylinder buried in a dielectric half-space
#domain: 0.240 0.190 0.001
#dx_dy_dz: 0.001 0.001 0.001
#time_window: 4e-9
#domain: 0.240 0.190 0.002
#dx_dy_dz: 0.002 0.002 0.002
#time_window: 3e-9
#time_step_limit_type: 2D
#pml_cells: 10 10 0 10 10 0
@@ -11,7 +11,7 @@
#hertzian_dipole: z 0.100 0.170 0 my_ricker
#rx: 0.140 0.170 0
#box: 0 0 0 0.240 0.170 0.001 half_space
#cylinder: 0.120 0.080 0 0.120 0.080 0.001 0.010 pec
#box: 0 0 0 0.240 0.170 0.002 half_space
#cylinder: 0.120 0.080 0 0.120 0.080 0.002 0.010 pec
#geometry_view: 0 0 0 0.240 0.190 0.001 0.001 0.001 0.001 cylinder_half_space n
#geometry_view: 0 0 0 0.240 0.190 0.002 0.002 0.002 0.002 cylinder_half_space n

二进制文件未显示。

查看文件

@@ -1,17 +1,17 @@
#title: B-scan from a metal cylinder buried in a dielectric half-space
#domain: 0.240 0.190 0.001
#dx_dy_dz: 0.001 0.001 0.001
#time_window: 4e-9
#domain: 0.240 0.190 0.002
#dx_dy_dz: 0.002 0.002 0.002
#time_window: 3e-9
#time_step_limit_type: 2D
#pml_cells: 10 10 0 10 10 0
#material: 6 0 1 0 half_space
#waveform: ricker 1 1.5e9 my_ricker
#hertzian_dipole: z 0.020 0.170 0 my_ricker
#rx: 0.060 0.170 0
#hertzian_dipole: z 0.040 0.170 0 my_ricker
#rx: 0.080 0.170 0
#src_steps: 0.002 0 0
#rx_steps: 0.002 0 0
#box: 0 0 0 0.240 0.170 0.001 half_space
#cylinder: 0.120 0.080 0 0.120 0.080 0.001 0.010 pec
#box: 0 0 0 0.240 0.170 0.002 half_space
#cylinder: 0.120 0.080 0 0.120 0.080 0.002 0.010 pec

二进制文件未显示。

查看文件

@@ -66,9 +66,9 @@ There are a number of free tools available to read HDF5 files. Also MATLAB has h
A-scans
-------
* Plot A-scans using the Python module ``plot_hdf5_Ascan.py``. The module uses matplotlib to plot the time history for the electric and magnetic field components for all receivers in a model (each receiver gets a separate figure window). Usage (from the top-level gprMax directory) is: ``python -m tools.plot_hdf5_Ascan my_outputfile.out``.
* Plot A-scans using the Python module ``plot_Ascan_hdf5.py``. The module uses matplotlib to plot the time history for the electric and magnetic field components for all receivers in a model (each receiver gets a separate figure window). Usage (from the top-level gprMax directory) is: ``python -m tools.plot_Ascan_hdf5 my_outputfile.out``.
* Plot A-scans using the MATLAB script ``plot_hdf5_Ascan.m``. The script plots the time history for the electric and magnetic field components for all receivers in a model (each receiver gets a separate figure window).
* Plot A-scans using the MATLAB script ``plot_Ascan_hdf5.m``. The script plots the time history for the electric and magnetic field components for all receivers in a model (each receiver gets a separate figure window).
B-scans
-------
@@ -76,6 +76,6 @@ B-scans
gprMax produces a separate output file for each trace (A-scan) in the B-scan.
* Combine the separate output files into one file using the Python module ``outputfiles_mergehdf5.py``. Usage (from the top-level gprMax directory) is: ``python -m tools.outputfiles_mergehdf5 basefilename modelruns``, where ``basefilename`` is the base name file of the output file series, e.g. for ``myoutput1.out``, ``myoutput2.out`` the base file name would be ``myoutput``, and ``modelruns`` is the number of output files to combine.
* Plot an image of the B-scan using the Python module ``plot_hdf5_Bscan.py``. Usage (from the top-level gprMax directory) is: ``python -m tools.plot_hdf5_Bscan my_outputfile.out field``, where ``field`` is the name of field to plot, e.g. ``Ex``, ``Ey`` or ``Ez``.
* Plot an image of the B-scan using the Python module ``plot_Bscan_hdf5.py``. Usage (from the top-level gprMax directory) is: ``python -m tools.plot_Bscan_hdf5 my_outputfile.out field``, where ``field`` is the name of field to plot, e.g. ``Ex``, ``Ey`` or ``Ez``.