File name (for reading)

List 29 Example of a file name type (for reading) condition definition
1
2
3
<Item name="flowdatafile" caption="Flow data file">
  <Definition valueType="filename" default="flow.dat" />
</Item>
../_images/widget_example_filename_load.png

Figure 50 Widget example of a file name (for reading) type condition

List 30 Code example to load a file name (for reading) type condition (for calculation conditions and grid generating conditions)
1
2
3
4
integer:: ier
character(200):: flowdatafile

call cg_iric_read_string_f("flowdatafile", flowdatafile, ier)
List 31 Code example to load a file name (for reading) type condition (for boundary conditions)
1
2
3
4
integer:: ier
character(200):: flowdatafile

call cg_iric_read_bc_string_f("inflow", 1, "flowdatafile", flowdatafile, ier)