The Fusion Twin Platform (https://fusiontwin.io) is a cloud-based platform for running highly customizable tokamak simulations, uploading and visualizing fusion data, collaborating and sharing with others, and more. To run realistic simulations, the Fusion Twin Platform uses digital replicas of tokamaks such as DIII-D, ISTTOK, SMART, and NSF NTT.
More digital replicas are coming soon.
We are working on comprehensive documentation for the public API. Until then, please refer to the examples above or contact us for help.
- Register or Log In
Create a free account at fusiontwin.io/auth/register, or log in to your existing account. - Get Your API Key & Workspace ID
After logging in, go to your workspace menu and select “API keys”. - Choose an Example
Review the provided examples. Choose one to customize and run. - Paste API Credentials
Copy your API key and workspace ID, then paste them into therun.py
script of the selected example. - Run the Script
Run the script to verify it works. Customize the JSON files and scripts until you are satisfied with the results.
💾 Optional: To save simulation results (HDF5 + metadata) back to the Fusion Twin Platform, set
save = True
inrun.py
.
These examples demonstrate how to interact with the Fusion Twin Public API:
ISTTOK-simplistic-single-step/
A simplistic example of a single-step ISTTOK tokamak simulation. This example receives the currents for coils as input.DIII-D-advanced-multi-step/
An advanced example of a multi-step DIII-D tokamak simulation. This example receives currents, parameters for ECH and ICH devices, as well as stepwise profiles and average values for different parameters.- Inside the
matlab-simulink/
folder, there is an example of API usage from MATLAB/Simulink.
- Inside the
SMART-simplistic-controller/
A simplistic example of a multi-step SMART simulation with an external controller. This example receives the currents for coils as input.
The following API methods are available:
dicts/simulation_suites/
- get a list of available simulation suitesworkspaces/{workspace_id}/simulations/init
- initialize a simulationworkspaces/{workspace_id}/simulations/step/{simulation_id}/
- run a simulation stepworkspaces/{workspace_id}/simulations/abort/{simulation_id}/
- abort a simulation
The following public digital replicas are available:
- DIII-D, TWIN_KEY = 'd3d2024'
- ISTTOK, TWIN_KEY = 'isttok2024'
- SMART, TWIN_KEY = 'smart2024'
- NSF NTT, TWIN_KEY = 'nsfntt2024'
- HBT-EP, TWIN_KEY = 'hbtep'
- Pegasus-III, TWIN_KEY = 'pegasus'
Need assistance? We’re here to help.
📧 Contact us: [email protected]
Stay connected with the latest updates and developments:
👉 Follow us on LinkedIn
👉 Read our tech blog
👉 Watch our video