Python client for the Inductiva API
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for inductiva-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8ad71fe71a9bed16861451cab7ddbbcbab368e4e0d29869e40e19f5775509e |
|
MD5 | 07604364fb15a743db93def94d0331eb |
|
BLAKE2b-256 | e931e921001844e03f30d94ea443f6b0d331d7e1d670216d9cf101ffd2f635c1 |