Conversion module for old input files should now do 2D and 3D models.

这个提交包含在:
Craig Warren
2016-03-24 18:08:41 +00:00
父节点 f33fa5c554
当前提交 aaa81df17e
共有 2 个文件被更改,包括 2 次插入2 次删除

查看文件

@@ -20,7 +20,7 @@ No, but it can be beneficial to know a little Python. We have made it easier to
Yes, MATLAB has built-in functions to read HDF5 files (http://uk.mathworks.com/help/matlab/high-level-functions.html).
**But converting my input file from the old version of gprMax will be really painful**
Hopefully not! We have provided a Python module to help you convert input files of 3D models from the old version of gprMax to use syntax introduced in version 3. Please note this module does not currently convert old 2D model input files.
Hopefully not! We have provided a Python module to help you convert input files from the old version of gprMax to use syntax introduced in version 3.
**How do I choose a spatial resolution for my simulation?**
Spatial resolution should be chosen to mitigate numerical dispersion and to adequately resolve geometry in your simulation. :ref:`A 2D example of modelling a metal cylinder in a dielectric <example-2D-Ascan>` provides guidance on how to determine spatial resolution.

查看文件

@@ -81,7 +81,7 @@ There are commands from previous versions of gprMax that are planned for this ve
Migrating old input files
-------------------------
gprMax includes a Python module (in the ``tools`` package) to help you migrate old input files, written for previous versions of gprMax, to the syntax of the new commands. The module has been written for 3D models and will not (currently) work with old input files of 2D models. The module will do its best to convert the old file and write a new one, however, you should still carefully check the new file to make sure it is what you intended! Usage (from the top-level gprMax directory) is: ``python -m tools.inputfile_old2new my_old_inputfile.in``.
gprMax includes a Python module (in the ``tools`` package) to help you migrate old input files, written for previous versions of gprMax, to the syntax of the new commands. The module will do its best to convert the old file and write a new one, however, you should still carefully check the new file to make sure it is what you intended! Usage (from the top-level gprMax directory) is: ``python -m tools.inputfile_old2new my_old_inputfile.in``.
Key features