cg_iRIC_Read_Grid2d_InterpolateWithCell¶
Returns the information to interpolate the value at the specified coordinates, with the values defined at grid nodes.
The value of g_handle that should be passed to this function, can be obtained by calling cg_iRIC_Read_Grid2d_Open or cg_iRIC_Read_Sol_Grid2d_Open.
Format (FORTRAN)¶
call cg_iRIC_Read_Grid2d_InterpolateWithCell(grid_handle, x, y, cellId, nodeids_arr, weights_arr, ier)
Format (C/C++)¶
ier = cg_iRIC_Read_Grid2d_InterpolateWithCell(grid_handle, x, y, cellId, nodeids_arr, weights_arr)
Format (Python)¶
nodeids_arr, weights_arr = cg_iRIC_Read_Grid2d_InterpolateWithCell(grid_handle, x, y, cellId)
Arguments and returned value¶
grid_handle¶
Item |
Value |
---|---|
Name |
grid_handle |
Input/Output |
Input |
Description |
The handle of the grid |
Data type (FORTRAN) |
integer |
Data type (C/C++) |
int |
Data type (Python) |
int |
x¶
Item |
Value |
---|---|
Name |
x |
Input/Output |
Input |
Description |
X coordinate value |
Data type (FORTRAN) |
double precision |
Data type (C/C++) |
double |
Data type (Python) |
float |
y¶
Item |
Value |
---|---|
Name |
y |
Input/Output |
Input |
Description |
Y coordinate value |
Data type (FORTRAN) |
double precision |
Data type (C/C++) |
double |
Data type (Python) |
float |
cellId¶
Item |
Value |
---|---|
Name |
cellId |
Input/Output |
Input |
Description |
Cell ID (Start from 1) |
Data type (FORTRAN) |
integer |
Data type (C/C++) |
int |
Data type (Python) |
int |
nodeids_arr¶
Item |
Value |
---|---|
Name |
nodeids_arr |
Input/Output |
Output |
Description |
The array of IDs of grid nodes constituting the cell (start from 1) |
Data type (FORTRAN) |
integer, dimension(:) |
Data type (C/C++) |
int* |
Data type (Python) |
numpy.array |
weights_arr¶
Item |
Value |
---|---|
Name |
weights_arr |
Input/Output |
Output |
Description |
The array of weight values to interpolate the value at the coordinates from the those defined at cell vertices |
Data type (FORTRAN) |
double precision, dimension(:) |
Data type (C/C++) |
double* |
Data type (Python) |
numpy.array |
ier¶
Item |
Value |
---|---|
Name |
ier |
Input/Output |
Output |
Description |
Error code. 0 means success, other values mean error. |
Data type (FORTRAN) |
integer |
Data type (C/C++) |
int |
Data type (Python) |
(Not defined) |