Hello Everyone,
I would like to thanks Dr. Craig Warren and Dr. Antonis Giannopoulos for gprMax software it saves lot of time and cost for data collection.
I am a data scientist and have good understanding of python, I converted below mine simulation code into
my_model.in file for visualization as given below.
#python:
from gprMax.input_cmd_funcs import *
command('title', 'Simulation with a mine object')
# Define simulation parameters
z_dim = 0.002
resolution = 0.002
tsim = 5e-9
B_scan = False
# Set up the domain and grid resolution
domain = domain(x=1.000, y=0.250, z=0.450)
dx = dx_dy_dz(resolution, resolution, z_dim)
# Set the simulation time window
time_window(tsim)
# Define the half-space material
material(permittivity=3.5, conductivity=0.01, permeability=1.0, magconductivity=0, name='bakelite')
material(permittivity=6.0, conductivity=0.01, permeability=1.0, magconductivity=0, name='rubber')
material(permittivity=3.0, conductivity=0.00001, permeability=2.0, magconductivity=0.01, name='dry_sand')
material(permittivity=2.86, conductivity=0.00048, permeability=1.0, magconductivity=9.75, name='TNT')
# Define the waveform
identifier = waveform('ricker', amplitude=1, frequency=1.5e9, identifier='my_ricker')
if B_scan:
x_ant = 8e-2
else:
x_ant = domain.x/2 - 1e-3 # in the middle of the x-axis
tx = hertzian_dipole('x',
0.100, 0.110, 0.360 , # minus 4 cm in y-direction
identifier)
rx(0.100, 0.140, 0.360) # 2 cm away in x-direction from tx
if B_scan:
src_steps(dx=0.006)
rx_steps(dx=0.006)
b0, b1 = box(0, 0, 0,
1.000, 0.250, 0.200, # same as domain, minus 4 cm in y-direction
'dry_sand')
#cylinder: 0.500 0.125 0.147 0.500 0.125 0.097 0.002 pec
cylinder(0.500, 0.125, 0.150,
0.500, 0.125, 0.147,
0.056, material='rubber')
cylinder(0.500, 0.125, 0.147,
0.500, 0.125, 0.094,
0.056, material='bakelite')
cylinder(0.500, 0.125, 0.147,
0.500, 0.125, 0.097,
0.053, material='TNT')
cylinder(0.500, 0.125, 0.147,
0.500, 0.125, 0.097,
0.002, material='pec')
# Define outputs, geometry view, and snapshots
geometry_view(0, 0, 0, domain.x, domain.y, z_dim, dx.x, dx.y, dx.z, 'my_mine', 'n')
N = 32
for i in range(1, N+1):
snapshot(0, 0, 0, domain.x, domain.y, z_dim, dx.x, dx.y, dx.z, i*(tsim/N), 'snapshot' + str(i))
#end_python:
And i generated .VTI file using commands
python -m gprMax --geometry-only user_models/my_model.in
Please help me to visualize Landmine . How actually it looks ? Thanks In advance