実数¶
定義方法¶
1<Item name="g" caption="Gravity [m/s2]">
2 <Definition valueType="real" default="9.8" />
3</Item>
条件の表示例¶
読み込み処理の記述方法¶
計算条件・格子生成条件¶
FORTRAN¶
1integer:: ier
2double precision:: g
3
4call cg_iRIC_Read_Real(fid, "g", g, ier)
C/C++¶
1int ier;
2double g;
3
4ier = cg_iRIC_Read_Real(fid, "g", &g)
Python¶
1g = cg_iRIC_Read_Real(fid, "g")
境界条件¶
FORTRAN¶
1integer:: ier
2double precision:: g
3
4call cg_iRIC_Read_BC_Real(fid, "inflow", 1, "g", g, ier)
C/C++¶
1int ier;
2double g;
3
4ier = cg_iRIC_Read_BC_Real(fid, "inflow", 1, "g", &g)
Python¶
1g = cg_iRIC_Read_BC_Real(fid, "inflow", 1, "g")