Turn days of simulation babysitting into minutes of automated, parallel computing.
Before diving into tutorials and benchmarks, let's ensure that your Inductiva Python package is properly set up. To confirm everything is working as expected, simply run a quick gprMax simulation — it only takes a few seconds!
example.py on your Desktop (or in your preferred directory)."""gprMax example."""
import inductiva
# Allocate cloud machine on Google Cloud Platform
cloud_machine = inductiva.resources.MachineGroup( \
provider="GCP",
machine_type="c2d-highcpu-4")
input_dir = inductiva.utils.download_from_url(
"https://storage.googleapis.com/inductiva-api-demo-files/"
"gprmax-input-example.zip",
unzip=True)
# Initialize the Simulator
gprmax = inductiva.simulators.GprMax(version="3.1.7")
# List of commands to run
commands = [
"python -m gprMax antenna_like_MALA_1200_fs.in",
]
# Run simulation
task = gprmax.run(\
input_dir=input_dir,
commands=commands,
on=cloud_machine)
task.wait()
cloud_machine.terminate()
task.download_outputs()
task.print_summary()
cd ~/Desktop
python example.py
Note: On some systems, you might need to use
python3instead ofpython.
All the necessary simulation artifacts and configuration files will be automatically downloaded to your computer. The gprMax simulation will then be sent to a cloud machine for execution.
After the simulation completes, a task summary will be displayed in your terminal, as shown below.
Task status: Success
Timeline:
Waiting for Input at 12/11, 14:39:27 0.816 s
In Queue at 12/11, 14:39:28 57.399 s
Preparing to Compute at 12/11, 14:40:26 4.071 s
In Progress at 12/11, 14:40:30 164.437 s
└> 164.254 s python -m gprMax antenna_like_MALA_1200_fs.in
Finalizing at 12/11, 14:43:14 0.559 s
Success at 12/11, 14:43:15
Data:
Size of zipped output: 29.70 KB
Size of unzipped output: 185.09 KB
Number of output files: 5
Total estimated cost (US$): 0.0037 US$
Estimated computation cost (US$): 0.0037 US$
Task orchestration fee (US$): 0 US$
Note: A per-run orchestration fee (0.010 US$) applies to tasks run from 01 Dec 2025, in addition to the computation costs.
Learn more about costs at: https://inductiva.ai/guides/how-it-works/basics/how-much-does-it-cost
If the task status shows Success, congratulations! You've successfully run an gprMax simulation.
This simple example tested your installation on a small machine with just 4 virtual CPUs. Inductiva offers far more powerful options to supercharge your simulations.
If you encounter any issues or need further assistance, don't hesitate to Contact Us. We're here to help!