The simulator routine resource defines instructions on interacting with a simulator model. A simulator routine includes:
Simulator routines can have multiple revisions, enabling users to track changes and evolve the routine over time. Each model can have multiple routines, each performing different objectives such as calculating optimal operation setpoints, forecasting production, benchmarking asset performance, and more.
Create a simulator routine.
required | Array of objects (Items) A list with a single item |
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "externalId": "string",
- "modelExternalId": "string",
- "simulatorIntegrationExternalId": "string",
- "name": "Fluid Sloshing in Tank",
- "description": "string"
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "modelExternalId": "string",
- "simulatorIntegrationExternalId": "string",
- "name": "string",
- "description": "string",
- "createdTime": 0,
- "lastUpdatedTime": 0
}
]
}Retrieves a list of simulator routines that match the given criteria.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "filter": {
- "modelExternalIds": [
- "model_1",
- "model_2"
], - "simulatorIntegrationExternalIds": [
- "simulator_integration_1",
- "simulator_integration_2"
], - "simulatorExternalIds": [
- "PROSPER",
- "PetroSIM"
]
}, - "limit": 1000,
- "cursor": "string",
- "sort": [
- {
- "order": "asc",
- "property": "createdTime"
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "modelExternalId": "string",
- "simulatorIntegrationExternalId": "string",
- "name": "string",
- "description": "string",
- "createdTime": 0,
- "lastUpdatedTime": 0
}
], - "nextCursor": "string"
}Delete a simulator routine. This will also delete all associated simulator resources (e.g. revisions, runs, data).
required | Array of IdRef (object) or ExternalIdRef (object) (Items) A list with a single item |
Successful Response
Forbidden
Internal Server Error
{- "items": [
- {
- "id": 5559452808603919
}
]
}{ }Calculate aggregates for simulator routines, considering the optional filter specification.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "filter": {
- "modelExternalIds": [
- "model_1",
- "model_2"
], - "simulatorIntegrationExternalIds": [
- "simulator_integration_1",
- "simulator_integration_2"
], - "simulatorExternalIds": [
- "PROSPER",
- "PetroSIM"
]
}, - "aggregate": "count"
}{- "items": [
- {
- "count": 0
}
]
}The total size of the request body can be a maximum of 50.00 KB.
When creating a simulator routine revision, be mindful of the following:
The total size of the data sent by a simulator connector cannot exceed 100.00 KB per simulation run.
required | Array of objects (Items) A list with a single item |
Successful Response
Bad Request
Forbidden
Request Entity Too Large
Internal Server Error
{- "items": [
- {
- "externalId": "string",
- "routineExternalId": "fluid_sloshing",
- "configuration": {
- "schedule": {
- "enabled": false
}, - "dataSampling": {
- "enabled": false
}, - "logicalCheck": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "operator": "eq",
- "value": 0
}
], - "steadyStateDetection": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "minSectionSize": 0,
- "varThreshold": 0,
- "slopeThreshold": 0
}
], - "inputs": [ ],
- "outputs": [ ]
}, - "script": [
- {
- "order": 1,
- "description": "string",
- "steps": [
- {
- "order": 1,
- "description": "string",
- "stepType": "Get",
- "arguments": {
- "referenceId": null
}
}
]
}
]
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "fluid_sloshing",
- "simulatorExternalId": "string",
- "routineExternalId": "string",
- "simulatorIntegrationExternalId": "string",
- "modelExternalId": "string",
- "createdByUserId": "string",
- "versionNumber": 0,
- "createdTime": 0,
- "configuration": {
- "schedule": {
- "enabled": false
}, - "dataSampling": {
- "enabled": false
}, - "logicalCheck": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "operator": "eq",
- "value": 0
}
], - "steadyStateDetection": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "minSectionSize": 0,
- "varThreshold": 0,
- "slopeThreshold": 0
}
], - "inputs": [ ],
- "outputs": [ ]
}, - "script": [
- {
- "order": 1,
- "description": "string",
- "steps": [
- {
- "order": 1,
- "description": "string",
- "stepType": "Get",
- "arguments": {
- "referenceId": null
}
}
]
}
]
}
]
}Retrieves a list of simulator routine revisions that match the given criteria.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "filter": {
- "routineExternalIds": [
- "routine_1",
- "routine_2"
], - "allVersions": false,
- "modelExternalIds": [
- "model_1",
- "model_2"
], - "simulatorIntegrationExternalIds": [
- "simulator_integration_1",
- "simulator_integration_2"
], - "simulatorExternalIds": [
- "PROSPER",
- "PetroSIM"
], - "createdTime": {
- "max": 0,
- "min": 0
}
}, - "limit": 10,
- "cursor": "string",
- "sort": [
- {
- "order": "asc",
- "property": "createdTime"
}
], - "includeAllFields": false
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "fluid_sloshing",
- "simulatorExternalId": "string",
- "routineExternalId": "string",
- "simulatorIntegrationExternalId": "string",
- "modelExternalId": "string",
- "createdByUserId": "string",
- "versionNumber": 0,
- "createdTime": 0,
- "configuration": {
- "schedule": {
- "enabled": false
}, - "dataSampling": {
- "enabled": false
}, - "logicalCheck": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "operator": "eq",
- "value": 0
}
], - "steadyStateDetection": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "minSectionSize": 0,
- "varThreshold": 0,
- "slopeThreshold": 0
}
], - "inputs": [ ],
- "outputs": [ ]
}, - "script": [
- {
- "order": 1,
- "description": "string",
- "steps": [
- {
- "order": 1,
- "description": "string",
- "stepType": "Get",
- "arguments": {
- "referenceId": null
}
}
]
}
]
}
], - "nextCursor": "string"
}Retrieve one or more simulator routine revisions by IDs or external IDs.
required | Array of IdRef (object) or ExternalIdRef (object) (Items) [ 1 .. 20 ] items A list of items |
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "id": 5559452808603919
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "fluid_sloshing",
- "simulatorExternalId": "string",
- "routineExternalId": "string",
- "simulatorIntegrationExternalId": "string",
- "modelExternalId": "string",
- "createdByUserId": "string",
- "versionNumber": 0,
- "createdTime": 0,
- "configuration": {
- "schedule": {
- "enabled": false
}, - "dataSampling": {
- "enabled": false
}, - "logicalCheck": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "operator": "eq",
- "value": 0
}
], - "steadyStateDetection": [
- {
- "enabled": true,
- "timeseriesExternalId": "string",
- "aggregate": "average",
- "minSectionSize": 0,
- "varThreshold": 0,
- "slopeThreshold": 0
}
], - "inputs": [ ],
- "outputs": [ ]
}, - "script": [
- {
- "order": 1,
- "description": "string",
- "steps": [
- {
- "order": 1,
- "description": "string",
- "stepType": "Get",
- "arguments": {
- "referenceId": null
}
}
]
}
]
}
]
}