Integer (Choice)

Definition

List 61 Example of a integer (choise) type condition definition
1<Item name="flowtype" caption="Flow type">
2  <Definition valueType="integer" default="0">
3    <Enumeration value="0" caption="Static Flow"/>
4    <Enumeration value="1" caption="Dynamic Flow"/>
5  </Definition>
6</Item>

Example of widget

../_images/widget_example_combobox.png

Figure 54 Widget example of a integer (choice) type condition

Example code to read data

Calculation condition, Grid generating condition

FORTRAN

List 62 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions) FORTRAN
1integer:: ier, flowtype
2
3call cg_iRIC_Read_Integer(fid, "flowtype", flowtype, ier)

C/C++

List 63 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions) C/C++
1int ier, flowtype;
2
3ier = cg_iRIC_Read_Integer(fid, "flowtype", &flowtype)

Python

List 64 Code example to load a integer (choise) type condition (for calculation conditions and grid generating conditions) Python
1flowtype = cg_iRIC_Read_Integer(fid, "flowtype")

Boundary condition

FORTRAN

List 65 Code example to load a integer (choise) type condition (for boundary conditions) FORTRAN
1integer:: ier, flowtype
2
3call cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype", flowtype, ier)

C/C++

List 66 Code example to load a integer (choise) type condition (for boundary conditions) C/C++
1int ier, flowtype;
2
3ier = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype", &flowtype)

Python

List 67 Code example to load a integer (choise) type condition (for boundary conditions) Python
1flowtype = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype")