Inductiva runs the simulations, so you can run the science.
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 FreeFEM simulation — it only takes a few seconds!
example.py on your Desktop (or in your preferred directory)."""FreeFEM example"""
import inductiva
# Instantiate machine group
cloud_machine = inductiva.resources.MachineGroup( \
provider="GCP",
machine_type="c2d-highcpu-4")
# Set simulation input directory
input_dir = inductiva.utils.download_from_url(
"https://storage.googleapis.com/inductiva-api-demo-files/"
"freefem-input-example.zip",
unzip=True)
# Initialize the Simulator
freefem = inductiva.simulators.FreeFEM( \
version="4.15")
# Run simulation with config files in the input directory
task = freefem.run( \
input_dir=input_dir,
commands=[
"FreeFem++ -nw mycode.edp"],
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 FreeFEM 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 23/09, 15:09:41 0.853 s
In Queue at 23/09, 15:09:41 47.547 s
Preparing to Compute at 23/09, 15:10:29 3.876 s
In Progress at 23/09, 15:10:33 1.235 s
└> 1.076 s FreeFem++ -nw mycode.edp
Finalizing at 23/09, 15:10:34 0.527 s
Success at 23/09, 15:10:35
Data:
Size of zipped output: 755.46 KB
Size of unzipped output: 2.18 MB
Number of output files: 3
Total estimated cost (US$): 0.010048 US$
Estimated computation cost (US$): 0.000048 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 FreeFEM 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!