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

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

  • September 3, 2026
  • 1 reply
  • 13 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? 

 

 

1 reply

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