Skip to main content

2D Electromagnetic Simulator for GPR Scenarios

Project description

2D electromagnetic simulator

2D Electromagnetic Simulator for GPR Scenarios. This simulator allows for varying the relative permittivity and conductivity of the subsurface. Additionally, cylindrical objects can be added, defined by a coordinate (x, y) indicating the center of the cylinder, as well as their relative permittivity and conductivity. The simulation requires defining the location of the transmission and reception antennas, as well as the frequency of the Ricker pulse. Below is an example image showing all the parameters necessary to configure the GPR scenario.

GPR scenario

The default spatial discretization in this simulator is 0.01 meters for the "x" and "y" coordinates. The positions of the antennas, cylindrical objects, and the height of the subsurface are specified in terms of points. These points are calculated as follows: if the transmission antenna is to be positioned at 0.10 meters on the "x" axis and 0.5 meters on the "y" axis, this corresponds to 10 points and 50 points, respectively. This is obtained by dividing 0.10 by 0.01, resulting in 10, and 0.5 by 0.01, resulting in 50.

Table of Contents

Glossary

  • $Dm$ = model_size_y
  • $Ws$ = model_size_x
  • $Ds$ = subsurface_height
  • $Rx_{x}$ = RX_antenna_position_x
  • $Rx_{y}$ = RX_antenna_position_y
  • $Tx_{x}$ = TX_antenna_position_x
  • $Tx_{y}$ = TX_antenna_position_y
  • $steps$ = steps_antenna
  • $\varepsilon_{rs}$ = permittivity_r (subsurface)
  • $\varepsilon_{rc}$ = permittivity_r (cylinder)
  • $\sigma_{s}$ = conductivity (subsurface)
  • $\sigma_{c}$ = conductivity (cylinder)
  • $r_{c}$ = radius (cylinder)

Installation

Instructions on how to install the project. For example:

pip install em_simulation

Code Example

For instance, the following code can be executed in Google Colab. Simply copy and paste it into a new Colab notebook.

import create_gpr_image as create_gpr
import visualization as vis

#--------------------------------------------------------------------------------
# 1) definition of parameters for the simulation
dicc_model ={
      'name_simulation':'test_1.npy',
      'model_size_x' : 100 ,
      'model_size_y': 60,
      'TX_antenna_position_x':10,
      'TX_antenna_position_y':50,
      'RX_antenna_position_x':14,
      'RX_antenna_position_y':50,
}

dicc_simulation = {
      'steps_antenna': 60,
      'time_window': 420,
      'frecuency': 1.6e9,

}


characteristics_subsurface= { 
'permittivity_r': 5,
'conductivity': 0.005, #mS/m
'subsurface_height': 50
}

characteristics_cylinder= { 'x_position': 50,
'y_position': 35,
'conductivity': 5.81e7, #cu
'permittivity_r': 1,
'radius': 3
}

#--------------------------------------------------------------------------------
# 2) Perform simulation:
ez = create_gpr.run_image(dicc_model,dicc_simulation,characteristics_subsurface,characteristics_cylinder )
#--------------------------------------------------------------------------------
# 3) show result:
vis.graph_ez(ez) 

Create the environment

Create a local environment using Anaconda from an environment.yml file.

conda env create -f environment.yml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

em_simulation-0.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

em_simulation-0.4-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file em_simulation-0.4.tar.gz.

File metadata

  • Download URL: em_simulation-0.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for em_simulation-0.4.tar.gz
Algorithm Hash digest
SHA256 7d4db6fc70e500612aff120964eb985f25312f02bd4c9f27a3231af94e2a33d5
MD5 088a098b6aefb370f1ac997de7e1ea28
BLAKE2b-256 3750cf3cb5a021f643ecc56571f85ffc5ba268241527bbab73fdbbf268a317c0

See more details on using hashes here.

File details

Details for the file em_simulation-0.4-py3-none-any.whl.

File metadata

  • Download URL: em_simulation-0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for em_simulation-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ed51b376680e8c88e8c42300df3d6988d9c5aff2a1ade0aa59e8c9fb9886da58
MD5 3ca6f802db5a1816528189dfe9433dce
BLAKE2b-256 c927b5230b700de7d64dca7773bd6db04c52eb5e1201eb7b9a0b87d329d21bfb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page