Skip to main content

Python client for the Inductiva API

Project description

Python package

linkedin_header

Large scale simulations made simple

Inductiva API provides dozens of open-source physical simulation packages from your laptop. Users can start simulating right away, with no hardware setup issues and no software configuration headaches. Additionally, we provide a transparent way to scale your simulations to the next-level with one-line of code.

One can run simulations in two ways:

  • High-level Simulation: We provide pre-built scenarios that define a physical model (e.g., the dam break scenario in fluid dynamics). Users are allowed to define some parameters of the scenarios, choose the method of simulation with a few parameters and accelerate their simulations with the best hardware available for them.

Example of how to run the dam break scenario:

from inductiva import fluids

scenario = fluids.scenarios.DamBreak(dimensions=(1., 0.3, 0.3))

output = scenario.simulate()
video = output.render()
  • Low-level Simulation: Users familiar with the simulators can submit their previously prepared simulation configuration files. In this way, users can immediatelly take advantage of performant hardware to speed up their simulations, without having to change any of their existing simulation scripts. Moreover, users may want to execute more than just one simulation and via API they can do it in a couple of lines of code.

Example of how to run a low-level simulation:

from inductiva import fluids

simulator = fluids.simulators.DualSPHysics()

output_dir = simulator.run(input_dir="FlowCylinder",
                           sim_config_filename="CaseFlowCylinder_Re200_Def.xml",
                           output_dir="Flow",
                           device="gpu")

Find more examples of simulations at the tutorials section.

Our goal is to provide researchers and engineers with an easy and fast way to scale their simulations and explore various designs.

Simulators

The simulators we provide are all open-source and have their own dedicated documentation.

Currently, we have available the following simulators:

If you would like other simulators to be added, contact us at simulations@inductiva.ai.

Installation

It is super simple to start using the API if you are already familiar with Python package management. One just needs to do

pip install inductiva

and your are good to go! You are ready to start exploring our tutorial notebooks.

Notice that, in a local computer you just need to do this once. When opening the tutorials in Google Colab, you may need to re-install this between notebooks.

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

inductiva-0.0.12.tar.gz (78.8 kB view hashes)

Uploaded Source

Built Distribution

inductiva-0.0.12-py3-none-any.whl (117.5 kB view hashes)

Uploaded Python 3

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