Getting started with Iota Python Library and Iota IPython Terminal
Last updated
Was this helpful?
Last updated
Was this helpful?
This section provides an introduction on how to start using the Iota Python Library from the Iota IPython Terminal. The Iota iPython Terminal is installed during the installation process of Iota and is available at the Start menu of your OS inside the "Iota Suite" folder (see Figure 1).
Figure 1 - Start menu entry on Windows where Iota IPython Terminal is highlighted
The Iota iPython Termnial is a command shell that allows the users to perform computational operations in an interactive way and provides some useful features including:
Comprehensive object introspection
Shell syntax
Tab completion
Commands history
For More detailed information about iPython command shell, users can visit the .
Executing the Iota IPython Terminal open an IPython terminal like the one shown in Figure 2. The IPython terminal is automatically started on the Iota Suite installation directory (e.g. "C:\Program Files\iota_suite").
Figure 2 - Iota IPython terminal
Once the Iota IPython terminal is open, users need to import the Iota Python Library. To do so, users need to execute the following command on the terminal:
This will load the Iota Python Library so that the users can have to the whole content on the library via the object iota
(see the for more detailed information about the content of the library).
Users can start a session using the function that give access to the database and allows you load existing projects, create new ones and other actions as explained in :
where my_Iota_username
needs to be replaced by to your registered username in Iota and my_home_folder
by your home directory on your operative sysem (e.g. C:/Users/Stephen
).
Once the session has been started, you can ask for the list of projects in your database:
that will return a list containing the project including their manes and a brief summary of the scenario and assets contain in the project:
Note that include_grahs=True
sets the generation and importing into the scenario of the reaction force and torque graphs of each geometry contained in the EDEM simulation to be imported.
Once an can has been started, users can create new projects in their database using the method :
Users can load existing projects by their names using the method of the object:
In this example, the object is stored in the variable my_project
.
Users can create new scenario using the method of the object:
Users can load a scenario using the method of the object:
Users can import a dataset into the scenario using the method for datasets in PADEM and PACG format.
In case of EDEM 2017+ format, users can import the EDEM simulation by using the method :
Users can run the coarse-graining analysis of a scenario using the method of the object:
In this example, coarse-graining would be run using the existing coarse-graining settings of scenario that the user may have set via the Graphical User Interface. For more information on how to run coarse-graining with custom settings using the Iota Python Library, please see and in the section of the Iota Python Reference Library.