Updated names of some user_libs

这个提交包含在:
Craig Warren
2022-01-07 15:17:45 +00:00
父节点 d61fe653c2
当前提交 526cca4c3f
共有 26 个文件被更改,包括 23 次插入23 次删除

查看文件

@@ -1 +1 @@
.. include:: ../../user_libs/antenna_patterns/docs/README.rst .. include:: ../../user_libs/AntennaPatterns/docs/README.rst

查看文件

@@ -4,7 +4,7 @@
#time_window: 8E-9 #time_window: 8E-9
#python: #python:
from user_libs.antennas import antenna_like_GSSI_1500 from user_libs.GPRAntennaModels import antenna_like_GSSI_1500
antenna_like_GSSI_1500(0.125, 0.094, 0.100) antenna_like_GSSI_1500(0.125, 0.094, 0.100)
#end_python: #end_python:

查看文件

@@ -4,7 +4,7 @@
#time_window: 6e-9 #time_window: 6e-9
#python: #python:
from user_libs.antennas import antenna_like_MALA_1200 from user_libs.GPRAntennaModels import antenna_like_MALA_1200
antenna_like_MALA_1200(0.132, 0.095, 0.100) antenna_like_MALA_1200(0.132, 0.095, 0.100)
#end_python: #end_python:

查看文件

@@ -6,7 +6,7 @@
from pathlib import Path from pathlib import Path
import sys import sys
import gprMax import gprMax
from user_libs.antennas.GSSI import antenna_like_GSSI_400 from user_libs.GPRAntennaModels.GSSI import antenna_like_GSSI_400
import numpy as np import numpy as np

查看文件

@@ -4,7 +4,7 @@
#time_window: 8E-9 #time_window: 8E-9
#python: #python:
from user_libs.antennas import antenna_like_GSSI_1500 from user_libs.GPRAntennaModels import antenna_like_GSSI_1500
antenna_like_GSSI_1500(0.125, 0.094, 0.100) antenna_like_GSSI_1500(0.125, 0.094, 0.100)
#end_python: #end_python:

查看文件

@@ -4,7 +4,7 @@
#time_window: 6e-9 #time_window: 6e-9
#python: #python:
from user_libs.antennas import antenna_like_MALA_1200 from user_libs.GPRAntennaModels import antenna_like_MALA_1200
antenna_like_MALA_1200(0.132, 0.095, 0.100) antenna_like_MALA_1200(0.132, 0.095, 0.100)
#end_python: #end_python:

查看文件

@@ -1,7 +1,7 @@
User libraries is a sub-package where useful Python modules contributed by users are stored. User libraries is a sub-package where useful Python modules contributed by users are stored.
**************** ****************
Antenna patterns Antenna Patterns
**************** ****************
Information Information
@@ -40,8 +40,8 @@ How to use the package
* Firstly you should familiarise yourself with the example model input file. Edit the input file as desired and run one of the simulations for either E-plane or H-plane patterns. * Firstly you should familiarise yourself with the example model input file. Edit the input file as desired and run one of the simulations for either E-plane or H-plane patterns.
* Whilst the simulation is running edit the 'user configurable parameters' sections of the ``initial_save.py`` and ``plot_fields.py`` modules to match the setup of the simulation. * Whilst the simulation is running edit the 'user configurable parameters' sections of the ``initial_save.py`` and ``plot_fields.py`` modules to match the setup of the simulation.
* Once the simulation has completed, run the ``initial_save.py`` module on the output file, e.g. for the E-plane ``python -m user_libs.antenna_patterns.initial_save user_models/antenna_like_GSSI_1500_patterns_E_Er5.h5``. This will produce a Numpy file containing the field pattern data. * Once the simulation has completed, run the ``initial_save.py`` module on the output file, e.g. for the E-plane ``python -m user_libs.AntennaPatterns.initial_save user_models/antenna_like_GSSI_1500_patterns_E_Er5.h5``. This will produce a Numpy file containing the field pattern data.
* Plot the field pattern data by running the ``plot_fields.py`` module on the Numpy file, e.g. for the E-plane ``python -m user_libs.antenna_patterns.plot_fields user_models/antenna_like_GSSI_1500_patterns_E_Er5.npy`` * Plot the field pattern data by running the ``plot_fields.py`` module on the Numpy file, e.g. for the E-plane ``python -m user_libs.AntennaPatterns.plot_fields user_models/antenna_like_GSSI_1500_patterns_E_Er5.npy``
.. tip:: .. tip::

查看文件

@@ -19,7 +19,7 @@ logger = logging.getLogger(__name__)
# Parse command line arguments # Parse command line arguments
parser = argparse.ArgumentParser(description='Calculate and store (in a Numpy file) field patterns from a simulation with receivers positioned in circles around an antenna.', usage='cd gprMax; python -m user_libs.antenna_patterns.initial_save outputfile') parser = argparse.ArgumentParser(description='Calculate and store (in a Numpy file) field patterns from a simulation with receivers positioned in circles around an antenna.', usage='cd gprMax; python -m user_libs.AntennaPatterns.initial_save outputfile')
parser.add_argument('outputfile', help='name of gprMax output file including path') parser.add_argument('outputfile', help='name of gprMax output file including path')
args = parser.parse_args() args = parser.parse_args()
outputfile = args.outputfile outputfile = args.outputfile

查看文件

@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
# Parse command line arguments # Parse command line arguments
parser = argparse.ArgumentParser(description='Plot field patterns from a simulation with receivers positioned in circles around an antenna. This module should be used after the field pattern data has been processed and stored using the initial_save.py module.', usage='cd gprMax; python -m user_libs.antenna_patterns.plot_fields numpyfile') parser = argparse.ArgumentParser(description='Plot field patterns from a simulation with receivers positioned in circles around an antenna. This module should be used after the field pattern data has been processed and stored using the initial_save.py module.', usage='cd gprMax; python -m user_libs.AntennaPatterns.plot_fields numpyfile')
parser.add_argument('numpyfile', help='name of numpy file including path') parser.add_argument('numpyfile', help='name of numpy file including path')
# parser.add_argument('hertzian', help='name of numpy file including path') # parser.add_argument('hertzian', help='name of numpy file including path')
args = parser.parse_args() args = parser.parse_args()

查看文件

@@ -303,7 +303,7 @@ def antenna_like_GSSI_1500(x, y, z, resolution=0.001, **kwargs):
elif optstate == 'GiannakisPaper': elif optstate == 'GiannakisPaper':
# Optimised custom pulse # Optimised custom pulse
exc1 = gprMax.ExcitationFile(filepath='user_libs/antennas/GSSI1p5optpulse.txt', exc1 = gprMax.ExcitationFile(filepath='user_libs/GPRAntennaModels/GSSI1p5optpulse.txt',
kind='linear', fill_value='extrapolate') kind='linear', fill_value='extrapolate')
vs1 = gprMax.VoltageSource(polarisation='y', p1=(tx[0], tx[1], tx[2]), vs1 = gprMax.VoltageSource(polarisation='y', p1=(tx[0], tx[1], tx[2]),
resistance=sourceresistance, waveform_id='GSSI1p5optpulse') resistance=sourceresistance, waveform_id='GSSI1p5optpulse')

查看文件

@@ -50,7 +50,7 @@ To include an antenna model similar to a GSSI 1.5 GHz antenna at a location 0.12
.. code-block:: none .. code-block:: none
#python: #python:
from user_libs.antennas.GSSI import antenna_like_GSSI_1500 from user_libs.GPRAntennaModels.GSSI import antenna_like_GSSI_1500
antenna_like_GSSI_1500(0.125, 0.094, 0.100, resolution=0.002) antenna_like_GSSI_1500(0.125, 0.094, 0.100, resolution=0.002)
#end_python: #end_python:

查看文件

之前

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

之后

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

查看文件

之前

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

之后

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

查看文件

之前

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

之后

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

查看文件

@@ -71,7 +71,7 @@ The input file for inserting the PMN landmine, with the lower left corner 10mm f
#domain: 0.136 0.176 0.070 #domain: 0.136 0.176 0.070
#dx_dy_dz: 0.001 0.001 0.001 #dx_dy_dz: 0.001 0.001 0.001
#time_window: 5e-9 #time_window: 5e-9
#geometry_objects_read: 0.010 0.010 0.010 ../user_libs/landmines/PMN_1x1x1.h5 ../user_libs/landmines/PMN_materials.txt #geometry_objects_read: 0.010 0.010 0.010 ../user_libs/Landmines/PMN_1x1x1.h5 ../user_libs/Landmines/PMN_materials.txt
#geometry_view: 0 0 0 0.136 0.176 0.070 0.001 0.001 0.001 landmine_PMN_fs n #geometry_view: 0 0 0 0.136 0.176 0.070 0.001 0.001 0.001 landmine_PMN_fs n
For further information on the ``#geometry_objects_read`` see the section on object contruction commands in the :ref:`Input commands section <commands>`. For further information on the ``#geometry_objects_read`` see the section on object contruction commands in the :ref:`Input commands section <commands>`.

查看文件

@@ -1,7 +1,7 @@
User libraries is a sub-package where useful Python modules contributed by users are stored. User libraries is a sub-package where useful Python modules contributed by users are stored.
********** **********
stltovoxel STLtoVoxel
********** **********
Information Information
@@ -20,7 +20,7 @@ This package was created as part of the `Google Summer of Code <https://summerof
Package contents Package contents
================ ================
* ``stltovoxel.py`` is the main script which should be executed to convert a STL file to a voxelised mesh which is saved as a geometry file in HDF5 format suitable for directly importing into gprMax. * ``STLtoVoxel.py`` is the main script which should be executed to convert a STL file to a voxelised mesh which is saved as a geometry file in HDF5 format suitable for directly importing into gprMax.
* ``examples`` is a folder containing example STL files as well as gprMax input files that can be used to import the resulting HDF5 geometry files. * ``examples`` is a folder containing example STL files as well as gprMax input files that can be used to import the resulting HDF5 geometry files.
* ``convert.py``, ``perimeter.py``, ``slice.py`` are modules adapted from the `stl-to-voxel <https://github.com/cpederkoff/stl-to-voxel>`_ Python library by Christian Pederkoff. * ``convert.py``, ``perimeter.py``, ``slice.py`` are modules adapted from the `stl-to-voxel <https://github.com/cpederkoff/stl-to-voxel>`_ Python library by Christian Pederkoff.
* ``license.md`` is the license for the `stl-to-voxel <https://github.com/cpederkoff/stl-to-voxel>`_ Python library by Christian Pederkoff. * ``license.md`` is the license for the `stl-to-voxel <https://github.com/cpederkoff/stl-to-voxel>`_ Python library by Christian Pederkoff.
@@ -43,7 +43,7 @@ To create a voxelised mesh (HDF5 geometry file) from the ubiquitous `Stanford bu
.. code-block:: none .. code-block:: none
python -m user_libs.stltovoxel.stltovoxel user_libs/stltovoxel/examples/stl/Stanford_Bunny.stl -matindex 2 -dxdydz 0.001 0.001 0.001 python -m user_libs.STLtoVoxel.stltovoxel user_libs/STLtoVoxel/examples/stl/Stanford_Bunny.stl -matindex 2 -dxdydz 0.001 0.001 0.001
Since the number of voxels are 108 x 88 108 and the spatial discretisation chosen is 1mm, the physical dimensions of the Stanford bunny when imported into gprMax will be 0.108 x 0.088 x 0.108mm. Since the number of voxels are 108 x 88 108 and the spatial discretisation chosen is 1mm, the physical dimensions of the Stanford bunny when imported into gprMax will be 0.108 x 0.088 x 0.108mm.

查看文件

@@ -12,7 +12,7 @@ logging.basicConfig(format='%(message)s', level=logging.INFO)
if __name__ == "__main__": if __name__ == "__main__":
# Parse command line arguments # Parse command line arguments
parser = argparse.ArgumentParser(description='Allows the user to convert a STL files to voxelized mesh.', usage='cd gprMax; python -m user_libs.stltovoxel.stltovoxel stlfilename matindex dx_dy_dz') parser = argparse.ArgumentParser(description='Allows the user to convert a STL files to voxelized mesh.', usage='cd gprMax; python -m user_libs.STLtoVoxel.stltovoxel stlfilename matindex dx_dy_dz')
parser.add_argument('stlfilename', help='name of STL file to convert including path') parser.add_argument('stlfilename', help='name of STL file to convert including path')
parser.add_argument('-matindex', type=int, required=True, parser.add_argument('-matindex', type=int, required=True,
help='index of material to extract from STL file') help='index of material to extract from STL file')

查看文件

@@ -4,7 +4,7 @@
#time_window: 6e-9 #time_window: 6e-9
#python: #python:
from user_libs.antennas.GSSI import antenna_like_GSSI_1500 from user_libs.GPRAntennaModels.GSSI import antenna_like_GSSI_1500
gssi_objects = antenna_like_GSSI_1500(0.125, 0.094, 0.100, resolution=0.001) gssi_objects = antenna_like_GSSI_1500(0.125, 0.094, 0.100, resolution=0.001)
for obj in gssi_objects: for obj in gssi_objects:
print(obj) print(obj)

查看文件

@@ -1,7 +1,7 @@
from pathlib import Path from pathlib import Path
import gprMax import gprMax
from user_libs.antennas.GSSI import antenna_like_GSSI_1500 from user_libs.GPRAntennaModels.GSSI import antenna_like_GSSI_1500
# File path for output # File path for output
fn = Path(__file__) fn = Path(__file__)

查看文件

@@ -1,7 +1,7 @@
from pathlib import Path from pathlib import Path
import gprMax import gprMax
from user_libs.antennas.GSSI import antenna_like_GSSI_400 from user_libs.GPRAntennaModels.GSSI import antenna_like_GSSI_400
# File path for output # File path for output
fn = Path(__file__) fn = Path(__file__)

查看文件

@@ -1,7 +1,7 @@
from pathlib import Path from pathlib import Path
import gprMax import gprMax
from user_libs.antennas.MALA import antenna_like_MALA_1200 from user_libs.GPRAntennaModels.MALA import antenna_like_MALA_1200
# File path for output # File path for output
fn = Path(__file__) fn = Path(__file__)

查看文件

@@ -6,7 +6,7 @@
from pathlib import Path from pathlib import Path
import gprMax import gprMax
from user_libs.antennas.GSSI import antenna_like_GSSI_400 from user_libs.GPRAntennaModels.GSSI import antenna_like_GSSI_400
import numpy as np import numpy as np