Skip to main content
Seasoned ⭐️⭐️
September 3, 2026
Question

Can we have an array of variables as input in routines?

  • September 3, 2026
  • 2 replies
  • 30 views

Hi,

We have some use-cases where we want an array of variables (inputs) to be passed as SET (not just one value). If I’ve understood it correctly, the routine inputs (SET) only supports one-value inputs (e.g. one temperature or pressure value).

This is an example of the fields for flash calculations in WhitsonPVT. We would like to be able to do similar calculations consisting of arrays of temperature and pressures when running flash calculations through routines. Is it possible to add this feature? 

 

 

2 replies

navin.r
Practitioner ⭐️⭐️⭐️
Practitioner ⭐️⭐️⭐️
September 3, 2026

Array-type inputs are already supported in Cognite simulator routines, so this capability is available today. You can define a DOUBLE_ARRAY input for your temperatures and another for your pressures, and pass them into a Set step  making it well-suited for flash calculations like those in WhitsonPVT and each input/output array currently supports up to 200 elements

MartheAuthor
Seasoned ⭐️⭐️
September 4, 2026

Thank you for the answer, and it is great that this feature is already there! 

I am probably doing something wrong, but is it possible to have it in the dropdown in the UI, or is it only accessible when setting up a routine with the python SDK? I have not found a way to see it so it can be selected in the UI.