cg_iRIC_Read_Grid2d_CellArea¶
Calculates and returns the area of a cell in the grid.
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_CellArea(grid_handle, cellId, area, ier)
Format (C/C++)¶
ier = cg_iRIC_Read_Grid2d_CellArea(grid_handle, cellId, area)
Format (Python)¶
area = cg_iRIC_Read_Grid2d_CellArea(grid_handle, 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 |
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 |
area¶
Item |
Value |
---|---|
Name |
area |
Input/Output |
Output |
Description |
Area |
Data type (FORTRAN) |
double precision |
Data type (C/C++) |
double* |
Data type (Python) |
float |
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) |