CGNSファイル名 など

CGNSファイル名と、CGNSファイル内の計算結果は組み合わせて使用します。

CGNSファイル名の入力欄は、 valueType に cgns_filename を指定することで作成できます。

CGNSファイル内の計算結果は、 valueType に result_gridNodeReal などを指定し、 cgnsFile に CGNSファイル名の入力欄に指定した name を指定することで作成できます。

リスト 53 CGNSファイル名とCGNSファイル内の計算結果の条件の定義例
1
2
3
4
5
6
<Item name="input_file" caption="CGNS file for input">
  <Definition valueType="cgns_filename" />
</Item>
<Item name="result_to_read" caption="Calculation result to read">
  <Definition valueType="result_gridNodeReal" cgnsFile="input_file" />
</Item>
../_images/widget_example_cgns.png

図 58 CGNSファイル名とCGNSファイル内の計算結果の条件の表示例

リスト 54 CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (計算条件・格子生成条件)
1
2
3
4
5
integer:: ier
character(200):: cgnsName, resultName

call cg_iric_read_string_f("input_file", cgnsName, ier)
call cg_iric_read_string_f("result_to_read", resultName, ier)
リスト 55 CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (境界条件)
1
2
3
4
5
integer:: ier
character(200):: cgnsName, resultName

call cg_iric_read_bc_string_f("inflow", 1, "input_file", cgnsName, ier)
call cg_iric_read_bc_string_f("inflow", 1, "result_to_read", resultName, ier)