cg_iric_read_bc_indices_f

  • Reads the elements (nodes or cells) where the boundary condition is

Format (FORTRAN)

call cg_iric_bc_indices_f(type, num, indices, ier)

Format (C/C++)

ier = cg_iRIC_Read_BC_Indices(type, num, indices);

Format (Python)

indices = cg_iRIC_Read_BC_Indices(type, num)

Arguments

Table 126 Arguments of cg_iric_read_bc_indices_f

Variable name

Type

I/O

Description

type

character(*)

I

The type name of boundary condition you want to know the indices size

num

integer

O

The boundary condition ID number

ier

integer

O

Error code. 0 means success.

Note

Values returned to indices depends on the position where boundary condition is defined, like shown in Table 127.

Please note that when the boundary condition is defined at nodes or cells, it outputs two values for each element, and when defined at edges, it outputs four values for each element.

Table 127 Relationship between the position where boundary condition is defined and the values of indices

Position where boundary condition is defined

Values of indices

Nodes

I of grid node 1, J of grid node 1
…,
I of grid node N, J of grid node N

Cells

I of grid cell 1, J of grid cell 1
…,
I of grid cell N, J of grid cell N

Edges

I of start position of edge 1, J of start position of edge 1,
I of end position of edge 1, J of end position of edge 1
…,
I of start position of edge N, J of start position of edge N,
I of end position of edge N, J of end position of edge N