From 993a7c20385cc3b5e65a6430a30dc6e5a04af3ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rnar=20Grip=20Fj=C3=A6r?= Date: Mon, 14 Aug 2017 10:24:12 +0200 Subject: [PATCH] #1760 Add markdown formatted documentation for new Octave interface commands --- .../NNCOctaveInterfaceSpecification.txt | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 OctavePlugin/NNCOctaveInterfaceSpecification.txt diff --git a/OctavePlugin/NNCOctaveInterfaceSpecification.txt b/OctavePlugin/NNCOctaveInterfaceSpecification.txt new file mode 100644 index 0000000000..4a2d71eeb4 --- /dev/null +++ b/OctavePlugin/NNCOctaveInterfaceSpecification.txt @@ -0,0 +1,62 @@ + +#### Matrix[numNNCConnections][2] riGetNNCConnections([CaseId]) + +This function returns a two dimensional matrix containing grid and IJK information about each NNC connection. +Each row contains a from and to cell for the connection. +The cells are specified in a structure defined as: + + CellInfo = { + GridIndex = int # Index of the grid the cell resides in. + # Main grid has index 0. + I, J, K = int # 1-based index address of the cell in the grid. + } + +#### Matrix[numSelectedCells][5] riGetSelectedCells([CaseId]) + +This function returns a two dimensional matrix containing the cell info for each selected cell in the case with `CaseId`. +The columns contain the following information: + + [CaseId, GridIdx, I, J, K] + CaseId # The ID of the case the cell resides in. + GridIdx # The index of the grid the cell resides in. + # Main grid has index 0 + I, J, K # 1-based index of the cell in the grid. + + +If the CaseId is not defined, ResInsight's Current Case is used. + +#### Vector[PropertyInfo] riGetNNCPropertyNames([CaseId]) + +This function returns the name and type of all NNC properties in the case as a vector of structures. + +The structure is defined as: + + PropertyInfo { + PropName = string # Name of the property as received from + # the analysis tool + PropType = string # The type of the property: "StaticNative", + # "DynamicNative", "Generated" + } + +If the CaseId is not defined, ResInsight's Current Case is used. + +#### Matrix[numConnections][numTimestepsRequested] riGetDynamicNNCValues([CaseId], PropertyName, [RequestedTimeSteps]) + +This function returns a two dimensional matrix: [Num Connections][Num Time Steps Requested] containing the value of the requested property from the case with CaseId. The order of connections is the same as the order from `riGetNNCConnectio + +If the CaseId is not defined, ResInsight's Current Case is used. +The RequestedTimeSteps must contain a list of indices to the requested time steps. If not defined, all the timesteps are returned. + +#### Vector[numConnections] riGetStaticNNCValues([CaseId], PropertyName) + +This function returns a vector of values for the requested static property for each NNC connection. The order of connections is the same as the order from `riGetNNCConnections`. + +If the CaseId is not defined, ResInsight's Current Case is used. + +#### riSetNNCProperty(Matrix[numNNCConnections][numTimeSteps], [CaseId], PropertyName, [TimeStepIndices]) + +Interprets the supplied matrix as a property set defined for the NNC connections in the case, and puts the data into ResInsight as a "Generated" property with the name "PropertyName". +The "TimeStepIndices" argument is used to "label" all the steps present in the supplied data matrix and must thus be complete. +The time step data will then be put into ResInsight at the time steps requested. + +If the CaseId is not defined, ResInsight's Current Case is used.