Folder name

Definition

List 47 Example of a folder name type condition definition
1<Item name="flowdatafolder" caption="Flow data folder">
2  <Definition valueType="foldername" />
3</Item>

Example of widget

../_images/widget_example_folder.png

Figure 52 Widget example of a folder name type condition

Example code to read data

Calculation condition, Grid generating condition

FORTRAN

List 48 Code example to load a folder name type condition (for calculation conditions and grid generating conditions) FORTRAN
1integer:: ier
2character(200):: flowdatafolder
3
4call cg_iRIC_Read_String(fid, "flowdatafolder", flowdatafolder, ier)

C/C++

List 49 Code example to load a folder name type condition (for calculation conditions and grid generating conditions) C/C++
1int ier
2char flowdatafolder[200];
3
4ier = cg_iRIC_Read_String(fid, "flowdatafolder", flowdatafolder)

Python

List 50 Code example to load a folder name type condition (for calculation conditions and grid generating conditions) Python
1flowdatafolder = cg_iRIC_Read_String(fid, "flowdatafolder")

Boundary condition

FORTRAN

List 51 Code example to load a folder name type condition (for boundary conditions) FORTRAN
1integer:: ier
2character(200):: flowdatafolder
3
4call cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafolder", flowdatafolder, ier)

C/C++

List 52 Code example to load a folder name type condition (for boundary conditions) C/C++
1int ier
2char flowdatafolder[200];
3
4ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafolder", flowdatafolder)

Python

List 53 Code example to load a folder name type condition (for boundary conditions) Python
1flowdatafolder = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafolder")