Spin up your personal cluster in minutes and boost your productivity 10x.
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 Elmer simulation — it only takes a few seconds!
example.py on your Desktop (or in your preferred directory)."""Elmer example"""
import inductiva
# Instantiate machine group
cloud_machine = inductiva.resources.MachineGroup( \
provider="GCP",
machine_type="c2d-highcpu-4",
spot=True)
# Set simulation input directory
input_dir = inductiva.utils.download_from_url(
"https://storage.googleapis.com/inductiva-api-demo-files/"
"elmer-input-example.zip",
unzip=True)
# Initialize the Simulator
elmer = inductiva.simulators.Elmer( \
version="9.0")
# Run simulation with config files in the input directory
task = elmer.run( \
input_dir=input_dir,
commands=[
"ElmerGrid 1 2 winkel.grd",
"ElmerSolver case.sif -ipar 2 1 1"],
on=cloud_machine)
# Wait for the simulation to finish and download the results
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 Elmer 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 19/09, 11:38:01 0.699 s
In Queue at 19/09, 11:38:02 36.602 s
Preparing to Compute at 19/09, 11:38:39 4.037 s
In Progress at 19/09, 11:38:43 14.373 s
├> 1.073 s ElmerGrid 1 2 winkel.grd
└> 13.081 s ElmerSolver case.sif -ipar 2 1 1
Finalizing at 19/09, 11:38:57 0.534 s
Success at 19/09, 11:38:58
Data:
Size of zipped output: 2.71 MB
Size of unzipped output: 6.25 MB
Number of output files: 11
Total estimated cost (US$): 0.01014 US$
Estimated computation cost (US$): 0.00014 US$
Task orchestration fee (US$): 0.010 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/basics/how-much-does-it-cost
If the task status shows Success, congratulations! You've successfully run a Elmer 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!