iRIC Software Developer's Manual

このマニュアルについて

このマニュアルでは、以下のユーザに必要な情報を解説します。

  • iRIC 上で動作するソルバーの開発者

  • iRIC 上で動作する格子生成プログラムの開発者

ソルバー開発者の方は、まずは ソルバーの開発手順 を読んで、ソルバー開発の流れについて理解してください。 その後、必要に応じて 定義ファイル (XML) についてiRIClibについてその他の情報 を参照してください。

格子生成プログラム開発者の方は、まずは 格子生成プログラムの開発手順 を読んで格子生成プログラム開発の流れについて理解してください。 その後、必要に応じて 定義ファイル (XML) についてiRIClibについてその他の情報 を参照してください。

ソルバーの開発手順

開発環境の準備

iRIC ソルバの開発環境を準備します。

  • C/C++ で開発するには、Microsoft Visual C/C++ 2019 以降を使用してください。

  • FORTRAN で開発するには、Intel One API を利用してください。Intel One API のインストール方法は以下を参照してください。

    https://qiita.com/Kazutake/items/a069f86d21ca43b6c153

ソルバをビルドする際には、 iriclib をリンクする必要があります。

必要なヘッダファイルとライブラリは、 iRIC GUI に同梱されています。標準的な場所にインストールした場合、 ファイルは以下にあります。

C:\Users\(userid)\iRIC_v4\sdk

概要

ソルバーは、格子、計算条件などに基づいて河川シミュレーションを実行し、計算結果を出力するプログラムです。

iRIC 上で動作するソルバーを開発するには、表 1 に示すようなファイルを作成、配置する必要があります。

表 1 に示したファイルは iRIC インストール先の下の "private\solvers" フォルダの下に 自分が開発するソルバー専用のフォルダを作成し、その下に配置します。

ソルバー関連ファイル一覧

ファイル名

説明

definition.xml

ソルバー定義ファイル。英語で記述する。

solver.exe (例)

ソルバーの実行モジュール。ファイル名はソルバー開発者が任意に選べる。

translation_ja_JP.ts など

ソルバー定義ファイルの辞書ファイル。

README

ソルバーの説明ファイル

LICENSE

ソルバーのライセンス情報ファイル

各ファイルの概要は以下の通りです。

definition.xml

ソルバーに関する以下の情報を定義するファイルです。

  • 基本情報

  • 計算条件

  • 格子属性

iRICはソルバー定義ファイルを読み込むことで、そのソルバーに必要な計算条件、格子を作成するための インターフェースを提供し、そのソルバー用の計算データファイルを生成します。ソルバー定義ファイルは、 すべて英語で記述します。

ソルバー

河川シミュレーションを実行するプログラムです。iRICで作成した計算条件と格子を読みこんで計算を行い、 結果を出力します。

計算条件、格子、結果の入出力には、iRICが生成する計算データファイルを使用します。ただし、 計算データファイルで入出力を行えないデータについては、任意の外部ファイルを入出力に使うこともできます。

FORTRAN, Python, C言語、C++言語のいずれかの言語で開発します。この章では、 FORTRAN で開発する例を説明します。

translation_ja_JP.ts など

ソルバー定義ファイルで用いられている文字列のうち、ダイアログ上などに表示される文字列を翻訳して 表示するための辞書ファイルです。日本語 (translation_ja_JP.ts)、韓国語 (translation_ka_KR.ts) など言語ごとに別ファイルとして作成します。

README

ソルバーに関する説明を記述するテキストファイルです。iRIC で新しいプロジェクトを開始する時にソルバー を選択する画面で、説明欄に表示されます。

LICENSE

ソルバーのライセンスについて記述するテキストファイルです。iRICで 新しいプロジェクトを開始する時に ソルバーを選択する画面で、ライセンス欄に表示されます。

iRIC、ソルバー、関連ファイルの関係を 図 1 に示します。

_images/files_related_to_solver.png

iRIC、ソルバー、関連ファイルの関係図

この章では、この節で説明した各ファイルを作成する手順を順番に説明します。

フォルダの作成

iRIC のインストールフォルダ の下にある "private\solvers" フォルダの下に、開発するソルバーのための専用のフォルダを作成します。 今回は、 "example" というフォルダを作成します。

ソルバー定義ファイルの作成

ソルバー定義ファイルを作成します。

ソルバー定義ファイルは、ソルバーに関する 表 2 に示す情報を定義します。

ソルバー定義ファイルで定義する情報

項目

説明

必須

基本情報

ソルバーの名前、開発者、リリース日など

計算条件

ソルバーの実行に必要な計算条件

格子属性

計算格子の格子点もしくは格子セルに与える属性

境界条件

計算格子の格子点もしくは格子セルに与える境界条件

ソルバー定義ファイルは、マークアップ言語の一種であるXML言語で記述します。 XML言語の基礎については XML の基礎 を参照してください。

この節では、ソルバー定義ファイルを、表 2 に示した順で作成していきます。

基本情報の作成

ソルバーの基本情報を作成します。 リスト 1 に示すような ファイルを作り、 フォルダの作成 で作成した "example" フォルダ の下に "definition.xml" の名前で保存します。

基本情報を記述したソルバー定義ファイルの例
 1<?xml version="1.0" encoding="UTF-8"?>
 2<SolverDefinition
 3  name="samplesolver"
 4  caption="Sample Solver 1.0"
 5  version="1.0"
 6  copyright="Example Company"
 7  release="2012.04.01"
 8  homepage="http://example.com/"
 9  executable="solver.exe"
10  iterationtype="time"
11  gridtype="structured2d"
12>
13  <CalculationCondition>
14  </CalculationCondition>
15  <GridRelatedCondition>
16  </GridRelatedCondition>
17</SolverDefinition>

この時点では、ソルバー定義ファイルの構造は 図 2 に示すようになっています。

_images/solverdef_structure1.png

ソルバー定義ファイルの構造

正しくソルバー定義ファイルが作成できているか確認します。

iRIC を起動します。 図 3 に示すダイアログが表示されますので、「新しいプロジェクト」ボタンを押します。 図 4 に示すダイアログが表示されますので、 ソルバーのリストに "Sample Solver" があるか確認します。あったらそれをクリックし、 右側に先ほど指定した属性が正しく表示されるか確認します。

なお、このダイアログでは、以下の属性については表示されません。

  • name

  • executable

  • iterationtype

  • gridtype

_images/iric_start_dialog.png

iRIC のスタートダイアログ

_images/solver_select_dialog.png

ソルバー選択ダイアログ

なお、ここで記述する name 属性と version 属性については、ソルバーのバージョンアップの際に 気をつける必要があります。バージョンアップの際の注意点については ソルバーのバージョンアップ時の注意点 を参照してください。

計算条件の定義

計算条件を定義します。計算条件は、ソルバー定義ファイルの CalculationCondition 要素で定義します。 基本情報の作成 で作成したソルバー定義ファイルに追記し、 リスト 2 に示すようなファイルにし、保存します。追記した部分を強調して示しました。

計算条件を追記したソルバー定義ファイルの例
 1<?xml version="1.0" encoding="UTF-8"?>
 2<SolverDefinition
 3  name="samplesolver"
 4  caption="Sample Solver"
 5  version="1.0"
 6  copyright="Example Company"
 7  release="2012.04.01"
 8  homepage="http://example.com/"
 9  executable="solver.exe"
10  iterationtype="time"
11  gridtype="structured2d"
12>
13  <CalculationCondition>
14    <Tab name="basic" caption="Basic Settings">
15      <Item name="maxIteretions" caption="Maximum number of Iterations">
16        <Definition valueType="integer" default="10">
17        </Definition>
18      </Item>
19      <Item name="timeStep" caption="Time Step">
20        <Definition valueType="real" default="0.1">
21        </Definition>
22      </Item>
23    </Tab>
24  </CalculationCondition>
25  <GridRelatedCondition>
26  </GridRelatedCondition>
27</SolverDefinition>

この時点では、ソルバー定義ファイルの構造は 図 5 に示すようになっています。

_images/solverdef_structure_with_calccond.png

ソルバー定義ファイルの構造

正しくソルバー定義ファイルが作成できているか確認します。

iRIC を起動します。図 3 に示すダイアログが表示されますので、「新しいプロジェクト」ボタンを押して、ソルバーの リストから "Sample Solver" をクリックし、 "OK" ボタンを押します。 図 6 に示すダイアログが表示されますが、 "OK" ボタンを押して進みます。

_images/iric_warning_dialog_for_no_elevation.png

警告ダイアログ 表示例

プリプロセッサが表示されますので、以下の操作を行います。

メニュー: --> 計算条件(C) --> 設定(S)

すると、 図 7 に示すダイアログが表示されます。 リスト 2 で追記した 内容に従って表示されているのが分かります。

_images/calccond_dialog.png

計算条件設定ダイアログ 表示例

グループを増やして、さらに計算条件を追加します。Basic Settings の Tab要素 のすぐ下に、 "Water Surface Elevation" というグループを追加して保存します。追記した ソルバー定義ファイルの抜粋を、 リスト 3 に示します。追記した部分を強調して示しました。

計算条件を追記したソルバー定義ファイルの例 (抜粋)
 1(前略)
 2    </Tab>
 3    <Tab name="surfaceElevation" caption="Water Surface Elevation">
 4      <Item name="surfaceType" caption="Type">
 5        <Definition valueType="integer" default="0">
 6          <Enumeration caption="Constant" value="0" />
 7          <Enumeration caption="Time Dependent" value="1" />
 8        </Definition>
 9      </Item>
10      <Item name="constantSurface" caption="Constant Value">
11        <Definition valueType="real" default="1">
12          <Condition type="isEqual" target="surfaceType" value="0"/>
13        </Definition>
14      </Item>
15      <Item name="variableSurface" caption="Time Dependent Value">
16        <Definition valueType="functional">
17          <Parameter valueType="real" caption="Time(s)"/>
18          <Value valueType="real" caption="Elevation(m) "/>
19          <Condition type="isEqual" target="surfaceType" value="1"/>
20        </Definition>
21      </Item>
22    </Tab>
23  </CalculationCondition>
24  <GridRelatedCondition>
25  </GridRelatedCondition>
26</SolverDefinition>

この時点では、ソルバー定義ファイルの構造は 図 8 に示すようになっています。

_images/solverdef_structure_with_calccond_additional.png

ソルバー定義ファイルの構造

正しくソルバー定義ファイルが作成できているか確認します。先ほどと同じ手順で ダイアログを表示します。

"Water Surface Elevation" というグループがリストに表示されているのが分かります。 また、 "Constant Value" は、 "Type" で "Constant" を選択している時のみ、 "Time Dependent Value" は、 "Type" で "Time Dependent" を選択している時のみ有効です。

ダイアログの表示例を 図 9 に示します。

_images/calccond_dialog_with_watersurfaceelevation.png

計算条件設定ダイアログ 表示例

計算条件の定義についてまとめると、以下の通りです。

格子属性の定義

格子属性を定義します。格子属性は、ソルバー定義ファイルの GridRelatedCondition 要素で定義します。 計算条件の定義 で作成したソルバー定義ファイルに追記し、 GridRelatedCondition 要素に リスト 4 に示すように追記し、保存します。追記した部分を強調して示しました。

格子属性を追記したソルバー定義ファイルの例 (抜粋)
 1(前略)
 2  </CalculationCondition>
 3  <GridRelatedCondition>
 4    <Item name="Elevation" caption="Elevation">
 5      <Definition position="node" valueType="real" default="max" />
 6    </Item>
 7    <Item name="Obstacle" caption="Obstacle">
 8      <Definition position="cell" valueType="integer" default="0">
 9        <Enumeration value="0" caption="Normal cell" />
10        <Enumeration value="1" caption="Obstacle" />
11      </Definition>
12    </Item>
13    <Item name="Rain" caption="Rain">
14      <Definition position="cell" valueType="real" default="0">
15        <Dimension name="Time" caption="Time" valueType="real" />
16      </Definition>
17    </Item>
18  </GridRelatedCondition>
19</SolverDefinition>

正しくソルバー定義ファイルが作成できているか確認します。

iRIC を起動して、ソルバー "Sample Solver" の新しいプロジェクトを開始します。 すると、 図 10 に示すような画面が 表示されます。さらに、格子を作成したりインポートしたりすると、 図 11 のようになります。

なお、格子の作成やインポートの方法が分からない場合、ユーザマニュアルを参照して下さい。

_images/preprocessor_with_geographicdata.png

プリプロセッサ 表示例

_images/preprocessor_with_gridattributes.png

プリプロセッサ 表示例 (格子生成後)

以下の手順で格子点の属性Elevation を編集すると、 図 12 に 示すダイアログが表示され、実数の値を入力できることが確認できます。

  • オブジェクトブラウザで、 "格子" --> "格子点の属性" -> "Elevation" を選択します。

  • 描画領域で、マウスクリックで格子点を選択します。

  • 右クリックメニューを表示し、 "編集" を選択します。

_images/dialog_to_edit_elevation.png

格子点の属性 "Elevation" の編集ダイアログ

同様に、格子セルの属性 "Obstacle" を編集すると、 図 13 に示す ダイアログが表示され、 リスト 4 で 指定した選択肢から値を選択できることが確認できます。

_images/dialog_to_edit_obstacle.png

格子セルの属性 "Obstacle" の編集ダイアログ

格子属性の定義についてまとめると、以下の通りです。

  • 格子属性は、Item要素で指定します。

  • Item 要素以下の構造は計算条件の Item と基本的には同じですが、 以下の違いがあります。

    • 属性を格子点で定義するか、セルで定義するかを position 属性で指定します。

    • 文字列、関数型、ファイル名、フォルダ名を指定することはできません。

    • 依存関係を指定することはできません。

    • Dimension要素を用いて、次元を定義することができます。

格子属性については、iRIC では特別な名前が定義されており、特定の目的で使用される 属性ではその名前を使用する必要があります。特別な格子属性の名前については 特別な格子属性、計算結果の名前について を参照してください。

境界条件の定義

境界条件を定義します。境界条件は、ソルバー定義ファイルの BoundaryCondition 要素で定義します。 なお、境界条件の定義は必須ではありません。

格子属性の定義 で作成したソルバー定義ファイルに追記し、 BoundaryCondition 要素を リスト 5 に 示すように追記し、保存します。追記した部分を強調して示しました。

境界条件を追記したソルバー定義ファイルの例 (抜粋)
 1(前略)
 2  </GridRelatedCondition>                                                  |
 3  <BoundaryCondition name="inflow" caption="Inflow" position="node">
 4    <Item name="Type" caption="Type">
 5      <Definition valueType="integer" default="0" >
 6        <Enumeration value="0" caption="Constant" />
 7        <Enumeration value="1" caption="Variable" />
 8      </Definition>
 9    </Item>
10    <Item name="ConstantDischarge" caption="Constant Discharge">
11      <Definition valueType="real" default="0">
12        <Condition type="isEqual" target="Type" value="0"/>
13      </Definition>
14    </Item>
15    <Item name="FunctionalDischarge" caption="Variable Discharge">
16      <Definition conditionType="functional">
17        <Parameter valueType="real" caption="Time"/>
18        <Value valueType="real" caption="Discharge(m3/s)"/>
19        <Condition type="isEqual" target="Type" value="1"/>
20      </Definition>
21    </Item>
22  </BoundaryCondition>
23</SolverDefinition>

正しくソルバー定義ファイルが作成できているか確認します。

iRIC を起動して、ソルバー "Sample Solver" の新しいプロジェクトを開始します。 格子を作成したりインポートしたりすると、 図 14 のようになります。なお、格子の作成やインポートの方法が分からない場合、 ユーザマニュアルを参照して下さい。

_images/preprocessor_with_boundarycondition.png

プリプロセッサ 表示例 (格子作成後)

右クリックメニューから「新しい Inflow の追加」を選択すると、 図 15 に示すダイアログが表示され、境界条件を定義することが出来ます。

_images/boundarycondition_edit_dialog.png

境界条件の編集ダイアログ

境界条件を定義した後、格子点を選択して右クリックメニューから「追加」を選択することで 流入口にする格子点を設定できます。設定後の画面表示例を 図 16 に示します。

_images/preprocessor_after_setting_bc.png

境界条件を設定した格子の表示例

境界条件の定義についてまとめると、以下の通りです。

  • 境界条件は、 BoundaryCondition 要素で指定します。

    • Item 要素以下の構造は計算条件の Item と基本的には同じです。計算条件と同様、依存性なども定義できます。

ソルバーの作成

ソルバーを作成します。この例では、ソルバーは FORTRAN 言語で開発します。

iRIC と連携するソルバーを開発するには、ソルバー定義ファイルに従って iRIC が生成する計算データファイルを、計算条件、格子、結果の入出力に 利用する必要があります。

iRIC が生成する計算データファイルは、CGNS ファイルという形式です。 CGNS ファイルの入出力には、iRIClib というライブラリを使用します。

この節では、 ソルバー定義ファイルの作成 で作成したソルバー定義ファイルに従って iRIC が生成する 計算データファイルを読みこむソルバーを開発する流れを説明します。 このソルバーで行われる入出力処理を 表 3 に示します。

ソルバーの入出力の処理の流れ

処理の内容

必須

計算データファイルを開く

計算条件の読み込み

計算格子の読み込み

時刻 (もしくはループ回数) の出力

計算結果の出力

計算データファイルを閉じる

この節では、ソルバーを以下の手順で開発していきます。

  1. 骨組みの作成

  2. 計算データファイルを開く処理、閉じる処理の記述

  3. 計算条件、計算格子の読み込み処理の記述

  4. 時刻、計算結果の出力処理の記述

骨組みの作成

まずは、ソルバーの骨組みを作成します。 リスト 6 に示すソースコードを作成して、 sample.f90 という名前で保存します。この時点では、ソルバーは何もしていません。

このソースコードをコンパイルします。

サンプルソルバー ソースコード
1program SampleProgram
2  use iric
3  implicit none
4
5  write(*,*) "Sample Program"
6  stop
7end program SampleProgram

コンパイルが成功したら、できた実行プログラムを フォルダの作成 で作成したフォルダにコピーし、 名前を 基本情報の作成 で executable 属性に指定した名前 (この例なら "solver.exe") に変更してください。 またこの時、ソルバーの実行に必要な DLLも同じフォルダにコピーしてください。

iRIC からソルバーが正しく起動できるか確認します。

"Example Solver" をソルバーに用いるプロジェクトを新しく開始し、 以下の操作を行って下さい。

メニュー: 計算(C) --> 実行(R)

ソルバーコンソールが起動され、 図 17 に示すように "Sample Program" という文字列が表示されれば、ソルバーを iRIC から正しく起動できています。

_images/solverconsole_only_message.png

ソルバーコンソール表示例

計算データファイルを開く処理、閉じる処理の記述

計算データファイルを開く処理、閉じる処理を記述します。

ソルバーは、処理開始時に計算データファイルを開き、終了時に計算データファイルを 閉じる必要があります。

iRIC は引数として計算データファイルのファイル名を渡すため、 そのファイルを開きます。

Intel Fortran Compiler での引数の取得方法を Fortran プログラムでの引数の読み込み処理 で説明していますので、参考にしてください。

計算データファイルを開く処理と閉じる処理を追記したソースコードを リスト 7 に示します。強調して示したのが追記した部分です。

計算データファイルを開く処理、閉じる処理を追記したソースコード
 1program SampleProgram
 2  use iric
 3  implicit none
 4  integer:: fin, ier
 5  integer:: icount, istatus
 6  character(200)::condFile
 7
 8  write(*,*) "Sample Program"
 9
10  icount = nargs()
11  if ( icount.eq.2 ) then
12    call getarg(1, condFile, istatus)
13  else
14    write(*,*) "Input File not specified."
15    stop
16  endif
17
18  ! 計算データファイルを開く
19  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
20  if (ier /=0) stop "*** Open error of CGNS file ***"
21
22  ! 計算データファイルを閉じる
23  call cg_iric_close(fin, ier)
24  stop
25end program SampleProgram

骨組みの作成 と同様に、ファイルのコンパイルと、 実行プログラムの配置を行います。

骨組みの作成 と同様の手順で、iRIC からソルバーが正しく起動できるか 確認します。エラーメッセージが表示されずに終了すれば成功です。

この節で追加した関数の詳細については、 CGNS ファイルを開く, CGNSファイルを閉じる を参照してください。

計算条件、計算格子、境界条件の読み込み処理の記述

計算条件、計算格子、境界条件の読み込み処理を記述します。

iRIC は、 ソルバー定義ファイルの作成 で作成したソルバー定義ファイルに従って、 計算条件、格子、格子属性、境界条件を計算データファイルに出力しますので、 ソルバー定義ファイルでの記述に対応するように、計算条件、計算格子、境界条件の 読み込み処理を記述します。

計算条件、計算格子の読み込み処理を追記したソースコードを リスト 8 に示します。強調して示したのが追記した部分です。

計算データファイルを開く処理、閉じる処理を追記したソースコード
  1program SampleProgram
  2  use iric
  3  implicit none
  4  integer:: fin, ier
  5  integer:: icount, istatus
  6  character(200)::condFile
  7  integer:: maxiterations
  8  double precision:: timestep
  9  integer:: surfacetype
 10  double precision:: constantsurface
 11  integer:: variable_surface_size
 12  double precision, dimension(:), allocatable:: variable_surface_time
 13  double precision, dimension(:), allocatable:: variable_surface_elevation
 14
 15  integer:: isize, jsize
 16  double precision, dimension(:,:), allocatable:: grid_x, grid_y
 17  double precision, dimension(:,:), allocatable:: elevation
 18  integer, dimension(:,:), allocatable:: obstacle
 19
 20  integer:: inflowid
 21  integer:: inflow_count
 22  integer:: inflow_element_max
 23  integer:: discharge_variable_sizemax
 24  integer, dimension(:), allocatable:: inflow_element_count
 25  integer, dimension(:,:,:), allocatable:: inflow_element
 26  integer, dimension(:), allocatable:: discharge_type
 27  double precision, dimension(:), allocatable:: discharge_constant
 28  integer, dimension(:), allocatable:: discharge_variable_size
 29  double precision, dimension(:,:), allocatable:: discharge_variable_time
 30  double precision, dimension(:,:), allocatable:: discharge_variable_value
 31
 32  write(*,*) "Sample Program"
 33
 34  ! (略)
 35
 36  ! 計算条件の読み込み
 37  call cg_iric_read_integer(fin, "maxIteretions", maxiterations, ier)
 38  call cg_iric_read_real(fin, "timeStep", timestep, ier)
 39  call cg_iric_read_integer(fin, "surfaceType", surfacetype, ier)
 40  call cg_iric_read_real(fin, "constantSurface", constantsurface, ier)
 41
 42  call cg_iric_read_functionalsize(fin, "variableSurface", variable_surface_size, ier)
 43  allocate(variable_surface_time(variable_surface_size))
 44  allocate(variable_surface_elevation(variable_surface_size))
 45  call cg_iric_read_functional(fin, "variableSurface", variable_surface_time, variable_surface_elevation, ier)
 46
 47  ! 格子のサイズを調べる
 48  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
 49
 50  ! 格子を読み込むためのメモリを確保
 51  allocate(grid_x(isize,jsize), grid_y(isize,jsize))
 52  ! 格子を読み込む
 53  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
 54
 55  ! 格子点で定義された属性 のメモリを確保
 56  allocate(elevation(isize, jsize))
 57  allocate(obstacle(isize - 1, jsize - 1))
 58
 59  ! 属性を読み込む
 60  call cg_iric_read_grid_real_node(fin, "Elevation", elevation, ier)
 61  call cg_iric_read_grid_integer_cell(fin, "Obstacle", obstacle, ier)
 62
 63  ! 流入口の数に従って、境界条件を保持するメモリを確保。
 64  allocate(inflow_element_count(inflow_count))
 65  allocate(discharge_type(inflow_count), discharge_constant(inflow_count))
 66  allocate(discharge_variable_size(inflow_count))
 67
 68  ! 流入口に指定された格子点の数と、時間依存の流入量のサイズを調べる
 69  inflow_element_max = 0
 70  do inflowid = 1, inflow_count
 71    ! 流入口に指定された格子点の数
 72    call cg_iric_read_bc_indicessize(fin, 'inflow', inflowid, inflow_element_count(inflowid))
 73    if (inflow_element_max < inflow_element_count(inflowid)) then
 74      inflow_element_max = inflow_element_count(inflowid)
 75    end if
 76    ! 流入口の時間依存の流入量のデータの数
 77    call cg_iric_read_bc_functionalsize(fin, 'inflow', inflowid, 'FunctionalDischarge', discharge_variable_size(inflowid), ier);
 78    if (discharge_variable_sizemax < discharge_variable_size(inflowid)) then
 79      discharge_variable_sizemax = discharge_variable_size(inflowid)
 80    end if
 81  end do
 82
 83  ! 流入口に指定された格子点と、時間依存の流入量を保持するメモリを確保。
 84  allocate(inflow_element(inflow_count, 2, inflow_element_max))
 85  allocate(discharge_variable_time(inflow_count, discharge_variable_sizemax))
 86  allocate(discharge_variable_value(inflow_count, discharge_variable_sizemax))
 87
 88  ! 境界条件の読み込み
 89  do inflowid = 1, inflow_count
 90    ! 流入口に指定された格子点
 91    call cg_iric_read_bc_indices(fin, 'inflow', inflowid, inflow_element(inflowid:inflowid,:,:), ier)
 92    ! 流入量の種類 (0 = 一定、1 = 時間依存)
 93    call cg_iric_read_bc_integer(fin, 'inflow', inflowid, 'Type', discharge_type(inflowid:inflowid), ier)
 94    ! 流入量 (一定)
 95    call cg_iric_read_bc_real(fin, 'inflow', inflowid, 'ConstantDischarge', discharge_constant(inflowid:inflowid), ier)
 96    ! 流入量 (時間依存)
 97    call cg_iric_read_bc_functional(fin, 'inflow', inflowid, 'FunctionalDischarge', discharge_variable_time(inflowid:inflowid,:), discharge_variable_value(inflowid:inflowid,:), ier)
 98  end do
 99
100  ! 計算データファイルを閉じる
101  call cg_iric_close(fin, ier)
102  stop
103end program SampleProgram

計算条件などを読み込む関数に渡す引数が、 計算条件の定義, 格子属性の定義 でソルバー定義ファイルに定義した Item 要素の name 属性と一致していることに注目してください。

なお、ソルバー定義ファイルで定義する計算条件、格子、格子属性と、それを読み込むための iRIClib の関数の対応関係については、 計算条件・境界条件・格子生成条件の項目の定義と読み込み処理の例 を参照してください。

また、計算条件、計算格子、境界条件の読み込みに使う関数の詳細については、 計算条件 (もしくは格子生成条件) の読み込み, 計算格子の読み込み, 境界条件の読み込み を参照してください。

時刻、計算結果の出力処理の記述

時刻、計算結果の出力処理を記述します。

時間依存の方程式を解くソルバーの場合、タイムステップの数だけ時刻、 計算結果の出力を繰り返します。

また、時刻、計算結果の出力のたびにユーザがソルバーの実行を中止していないか確認し、 中止していたら実行を中止します。

なお、ソルバーが出力する計算結果についてはソルバー定義ファイルには記述しませんので、 ソルバー定義ファイルとの対応関係を気にせず記述できます。

時刻、計算結果の出力処理を追記したソースコードを リスト 9 に示します。強調して示したのが追記した部分です。

時刻、計算結果の出力処理を追記したソースコード
 1  ! (略)
 2  integer:: isize, jsize
 3  double precision, dimension(:,:), allocatable:: grid_x, grid_y
 4  double precision, dimension(:,:), allocatable:: elevation
 5  integer, dimension(:,:), allocatable:: obstacle
 6  double precision:: time
 7  integer:: iteration
 8  integer:: canceled
 9  integer:: locked
10  double precision, dimension(:,:), allocatable:: velocity_x, velocity_y
11  double precision, dimension(:,:), allocatable:: depth
12  integer, dimension(:,:), allocatable:: wetflag
13  double precision:: convergence
14
15  ! (略)
16
17  ! 属性を読み込む
18  call cg_iric_read_grid_real_node(fin, "Elevation", elevation, ier)
19  call cg_iric_read_grid_integer_cell(fin, "Obstacle", obstacle, ier)
20
21  allocate(velocity_x(isize,jsize), velocity_y(isize,jsize), depth(isize,jsize), wetflag(isize,jsize))
22  iteration = 0
23  time = 0
24  do
25    time = time + timestep
26    ! (ここで計算を実行。格子の形状も変化)
27
28    call iric_check_cancel(canceled)
29    if (canceled == 1) exit
30    call cg_iric_write_sol_start(fin, ier)
31    call cg_iric_write_sol_time(fin, time, ier)
32    ! 格子を出力
33    call cg_iric_write_sol_grid2d_coords(fin, grid_x, grid_y, ier)
34    ! 計算結果を出力
35    call cg_iric_write_sol_node_real(fin, 'VelocityX', velocity_x, ier)
36    call cg_iric_write_sol_node_real(fin, 'VelocityY', velocity_y, ier)
37    call cg_iric_write_sol_node_real(fin, 'Depth', depth, ier)
38    call cg_iric_write_sol_node_integer(fin, 'Wet', wetflag, ier)
39    call cg_iric_write_sol_baseiterative_real(fin, 'Convergence', convergence, ier)
40    call cg_iric_write_sol_end(fin, ier)
41    iteration = iteration + 1
42    if (iteration > maxiterations) exit
43  end do
44
45  ! 計算データファイルを閉じる
46  call cg_iric_close(fin, ier)
47  stop
48end program SampleProgram

時刻、計算結果の出力に使う関数の詳細については、 時刻 (もしくはループ回数) の出力, 計算結果の出力 を参照してください。 計算実行中に格子形状が変化する場合、 計算格子の出力 (計算開始後の格子) で説明する関数を使用してください。

計算結果については、iRIC では特別な名前が定義されており、 特定の目的で使用される結果ではその名前を使用する必要があります。 特別な計算結果の名前については 計算結果 を参照してください。

ソルバー定義ファイルの辞書ファイルの作成

ソルバー定義ファイルで用いられている文字列のうち、 ダイアログ上などに表示される文字列を翻訳して表示するための 辞書ファイルを作成します。

まず、iRIC から、以下のメニューを起動します。 すると、ソルバー定義ファイルの辞書更新ウィザードが表示されます。 ダイアログの表示例を、 図 18図 20 に示します。

メニュー: オプション(O) --> 辞書ファイルの作成・更新(C)

_images/dict_wizard_intro.png

ソルバー定義ファイルの辞書更新ウィザード 表示例 (1ページ目)

_images/dict_wizard_select_solver.png

ソルバー定義ファイルの辞書更新ウィザード 表示例 (2ページ目)

_images/dict_wizard_confirm.png

ソルバー定義ファイルの辞書更新ウィザード 表示例 (3ページ目)

辞書ファイルは、ソルバー定義ファイルと同じフォルダに作成されます。 作成された辞書ファイルは、翻訳前の英語のみが含まれています。 辞書ファイルはテキストファイルですので、テキストエディタなどで開いて編集します。 辞書ファイルは、文字コードに UTF-8 を指定して保存してください。

辞書ファイルの編集例を、 リスト 10リスト 11 に示します。 例に示したように、translation 要素の中に翻訳後の文字列を追記してください。

表 2?16 ソルバー定義ファイルの辞書ファイルの一部 (編集前)

ソルバー定義ファイルの辞書ファイルの一部 (編集前)
1<message>
2  <source>Basic Settings</source>
3  <translation></translation>
4</message>
ソルバー定義ファイルの辞書ファイルの一部 (編集後)
1<message>
2  <source>Basic Settings</source>
3  <translation>基本設定</translation>
4</message>

なお、辞書ファイルは、Qt に付属する Qt Linguist を利用して編集することもできます。Qt Linguist の画面表示例を 図 2?18 に示します。Qt Linguist は、以下の URL からダウンロードできる Qt に含まれています。

https://www.qt.io/download/

_images/qt_linguist_screenshot.png

Qt Linguist 画面表示例

翻訳が完了したら、iRICを確認したい言語に切り替えてから iRIC を起動し直し、 正しく翻訳されて表示されるか確認します。翻訳完了後のプリプロセッサ、 計算条件設定ダイアログの表示例をそれぞれ 図 22, 図 23 に示します。

_images/translation_example_pre_objbrowser.png

翻訳完了後のプリプロセッサ 表示例

_images/translation_example_pre_calccond.png

翻訳完了後の計算条件設定ダイアログ 表示例

説明ファイルの作成

ソルバーの概要などについて説明するファイルを作成します。

README というファイル名のテキストファイルを、 フォルダの作成 で作成したフォルダの下に作成します。文字コードは UTF-8 にします。

説明ファイルは、以下の例のようなファイル名で言語ごとに用意します。 言語ごとの説明ファイルがない場合、 README が使用されます。

  • 英語: README

  • 日本語: README_ja_JP

"README_" 以降につく文字列は、辞書ファイルの "translation_*****.ts" の "*****" の部分と同じですので、日本語以外の説明ファイルを作る際のファイル名は、 辞書ファイルのファイル名を参考にして決めて下さい。

説明ファイルの内容は、iRIC 上で新規プロジェクトを作成する際のソルバー選択ダイアログで、 説明タブに表示されます。 ファイルを作成したら、iRIC 上で正しく表示されるか確認して下さい。 ダイアログの表示例を、 図 24 に示します。

_images/screenshot_for_readme.png

ソルバー選択ダイアログ 表示例

ライセンス情報ファイルの作成

ソルバーの利用ライセンスについて説明するファイルを作成します。

LICENSE というファイル名のテキストファイルを、 フォルダの作成 で作成したフォルダの下に作成します。文字コードは UTF-8 にします。

ライセンス情報ファイルは、以下の例のようなファイル名で言語ごとに用意します。 言語ごとのライセンスファイルがない場合、 LICENSE が使用されます。

  • 英語: LICENSE

  • 日本語: LICENSE_ja_JP

"LICENSE_" 以降につく文字列は、辞書ファイルの "translation_*****.ts" の "*****" の部分と同じですので、 日本語以外の説明ファイルを作る際のファイル名は、 辞書ファイルのファイル名を参考にして決めて下さい。

ライセンス情報ファイルの内容は、iRIC 上で新規プロジェクトを作成する際の ソルバー選択ダイアログで、ライセンスタブに表示されます。 ファイルを作成したら、iRIC 上で正しく表示されるか確認して下さい。 ダイアログの表示例を、 図 25 に示します。

_images/screenshot_for_license.png

ソルバー選択ダイアログ 表示例

計算結果分析ソルバーの開発手順

概要

iRICでは、既存のCGNSファイルの計算結果を読み込み、分析(・加工)することができます。 分析結果は、新たな CGNS ファイルに書き出すことができます。 計算結果分析ソルバーの開発手順は、通常のソルバー開発手順と同様です ( ソルバーの開発手順 参照)。

ここでは、計算結果分析ソルバーをFORTRANで開発する例を説明します。

2つのCGNSファイルを扱い、計算結果の分析をするソルバーのソースコードの例を リスト 12 に示します。

複数CGNSファイルを扱ったソースコード(抜粋)
 1! (前略)
 2
 3! ファイルオープン、初期化
 4call cg_iric_open(cgnsfile, IRIC_MODE_MODIFY, fin1, ier)
 5
 6! (略)
 7
 8! 計算条件の読み込み等
 9call cg_iric_read_functionalsize(fin1, 'func', param_func_size, ier)
10
11! (略)
12
13!ファイルオープン、初期化(計算結果読み込み用)
14call cg_iric_open(param_inputfile, IRIC_MODE_READ, fin2, ier)
15
16! (略)
17
18! 計算結果の読み込み等
19call cg_iric_read_sol_count(fin2, solcount, ier)
20
21! (略)
22
23! 計算結果の分析等
24
25! (略)
26
27! 分析結果等の出力
28call cg_iric_write_sol_time(fin1, t, ier)
29
30! (略)
31
32! ファイルのクローズ
33call cg_iric_close(fin1, ier)
34call cg_iric_close(fin2, ier)
35
36! (後略)

既存のCGNSの計算結果をもとに、「魚の生息しやすさ」を算出するソルバーのソースコードを リスト 13 に示します。

既存のCGNSファイルを読み込み、分析するソルバーのソースコード
  1program SampleProgram2
  2  use iric
  3  implicit none
  4
  5  integer icount
  6  character(len=300) cgnsfile
  7
  8  integer:: fin1, fin2, ier, istatus
  9
 10  character(len=300) param_inputfile
 11  integer:: param_result
 12  character(len=100) param_resultother
 13  integer:: param_func_size
 14  double precision, dimension(:), allocatable:: param_func_param
 15  double precision, dimension(:), allocatable:: param_func_value
 16  character(len=100) resultname
 17
 18  integer:: isize, jsize
 19  double precision, dimension(:,:), allocatable:: grid_x, grid_y
 20  double precision, dimension(:,:), allocatable:: target_result
 21  double precision, dimension(:,:), allocatable:: analysis_result
 22  double precision:: tmp_target_result
 23  double precision:: tmp_analysis_result
 24
 25  integer:: i, j, f, solid, solcount, iter
 26  double precision:: t
 27
 28  icount = nargs()
 29  if (icount.eq.2) then
 30    call getarg(1, cgnsfile, istatus)
 31  else
 32    write(*,*) "Input File not specified."
 33    stop
 34  end if
 35
 36  ! CGNS ファイルのオープン
 37  call cg_iric_open(cgnsfile, IRIC_MODE_MODIFY, fin1, ier)
 38  if (ier /=0) STOP "*** Open error of CGNS file ***"
 39
 40  ! 計算条件を読み込む
 41  call cg_iric_read_string(fin1, 'inputfile', param_inputfile, ier)
 42  call cg_iric_read_integer(fin1, 'result', param_result, ier)
 43  call cg_iric_read_string(fin1, 'resultother', param_resultother, ier)
 44
 45  call cg_iric_read_functionalsize(fin1, 'func', param_func_size, ier)
 46  allocate(param_func_param(param_func_size), param_func_value(param_func_size))
 47  call cg_iric_read_functional(fin1, 'func', param_func_param, param_func_value, ier)
 48
 49  if (param_result .eq. 0) resultname = 'Depth(m)'
 50  if (param_result .eq. 1) resultname = 'Elevation(m)'
 51  if (param_result .eq. 2) resultname = param_resultother
 52
 53  ! 指定された CGNS ファイルから、格子を読み込む
 54  call cg_iric_open(param_inputfile, IRIC_MODE_READ, fin2, ier)
 55  if (ier /=0) STOP "*** Open error of CGNS file 2 ***"
 56
 57  ! 格子を読み込む
 58  call cg_iric_read_grid2d_str_size(fin2, isize, jsize, ier)
 59  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
 60  call cg_iric_read_grid2d_coords(fin2, grid_x, grid_y, ier)
 61
 62  ! 読み込んだ格子を cgnsfile に出力する
 63  call cg_iric_write_grid2d_coords(fin1, isize, jsize, &
 64    grid_x, grid_y, ier)
 65
 66  ! 計算結果を読み込んで加工するためのメモリを確保
 67  allocate(target_result(isize, jsize), analysis_result(isize, jsize))
 68
 69  ! 計算結果を処理
 70  call cg_iric_read_sol_count(fin2, solcount, ier)
 71
 72  do solid = 1, solcount
 73    ! 計算結果を読み込み
 74    call cg_iric_read_sol_time(fin2, solid, t, ier)
 75    call cg_iric_read_sol_node_real(fin2, solid, resultname, &
 76      target_result, ier)
 77
 78    ! 読み込んだ計算結果をもとに、魚の生息しやすさを算出する。
 79    do i = 1, isize
 80      do j = 1, jsize
 81        tmp_target_result = target_result(i, j)
 82        do f = 1, param_func_size
 83          if ( &
 84            param_func_param(f) .le. tmp_target_result .and. &
 85            param_func_param(f + 1) .gt. tmp_target_result) then
 86            tmp_analysis_result = &
 87              param_func_value(f) + &
 88              (param_func_value(f + 1) - param_func_value(f)) / &
 89              (param_func_param(f + 1) - param_func_param(f)) * &
 90              (tmp_target_result - param_func_param(f))
 91          endif
 92        end do
 93        analysis_result(i, j) = tmp_analysis_result
 94      end do
 95    end do
 96
 97    ! 処理済みの計算結果を出力
 98    call cg_iric_write_sol_time(fin1, t, ier)
 99    call cg_iric_write_sol_node_real(fin1, 'fish_existence', analysis_result, ier)
100  end do
101
102  ! CGNS ファイルのクローズ
103  call cg_iric_close(fin1, ier)
104  call cg_iric_close(fin2, ier)
105  stop
106end program SampleProgram2

格子生成プログラムの開発手順

概要

格子生成プログラムは、格子生成条件に基づいて、格子を生成するプログラムです。 作成したプログラムは、iRIC 上から格子生成アルゴリズムの1つとして 利用できるようになります。

iRIC 上で動作する格子生成プログラムを開発するには、表 4 に示すようなファイルを作成、配置する必要があります。

表 4 に示したファイルは iRIC インストール先の下の "private\gridcreators" フォルダの下に自分が開発する格子生成プログラム専用のフォルダを作成し、その下に配置します。

格子生成プログラム関連ファイル一覧

ファイル名

説明

definition.xml

格子生成プログラム定義ファイル。英語で記述する。

generator.exe (例)

格子生成プログラムの実行モジュール。ファイル名は開発者が任意に選べる。

translation_ja_JP.ts など

格子生成プログラム定義ファイルの辞書ファイル。

README

格子生成プログラムの説明ファイル

各ファイルの概要は以下の通りです。

definition.xml

格子生成プログラムに関する以下の情報を定義するファイルです。

  • 基本情報

  • 格子生成条件

iRIC は格子生成プログラム定義ファイルを読み込むことで、 格子生成条件を作成するためのインターフェースを提供し、 そのプログラム用の格子生成データファイルを生成します。 また、この格子生成プログラムが生成する格子に現在使っているソルバーが対応している時のみ、 この格子生成プログラムを使えるようにします。

格子生成プログラム定義ファイルは、すべて英語で記述します。

格子生成プログラム

格子を生成するプログラムです。iRICで作成した格子生成条件を読みこんで格子を生成し、 生成した格子を出力します。

格子生成条件、格子の入出力には、iRIC が生成する 格子生成データファイルを使用します。

FORTRAN, Python, C言語、C++言語のいずれかの言語で開発します。この章では、 FORTRAN で開発する例を説明します。

translation_ja_JP.ts など

格子生成プログラム定義ファイルで用いられている文字列のうち、 ダイアログ上に表示される文字列を翻訳して表示するための辞書ファイルです。 日本語 (translation_ja_JP.ts)、韓国語 (translation_ka_KR.ts) など言語ごとに別ファイルとして作成します。

README

格子生成プログラムに関する説明を記述するテキストファイルです。 iRICで格子生成アルゴリズムを選択する画面で、説明欄に表示されます。

iRIC、格子生成プログラム、関連ファイルの関係を 図 26 に示します。

_images/files_related_to_gridgenerator.png

iRIC、格子生成プログラム、関連ファイルの関係図

この章では、この節で説明した各ファイルを作成する手順を、順番に説明します。

フォルダの作成

iRIC のインストールフォルダ の下にある "private\gridcreators" フォルダの下に、開発するソルバーのための専用のフォルダを作成します。今回は、"example" というフォルダを作成します。

格子生成プログラム定義ファイルの作成

格子生成プログラム定義ファイルを作成します。

格子生成プログラム定義ファイルは、格子生成プログラムに関する 表 5 に示す情報を定義します。

格子生成プログラム定義ファイルで定義する情報

項目

説明

必須

基本情報

格子生成プログラムの名前、開発者、リリース日など

格子生成条件

格子の生成に必要な格子生成条件

エラーコード

エラー発生時のコードとメッセージの対応表

定義ファイルは、マークアップ言語の一種であるXML言語で記述します。 XML言語の基礎については XML の基礎 を参照してください。

この節では、ソルバー定義ファイルを、表 5 に示した順で作成していきます。

基本情報の作成

ソルバーの基本情報を作成します。 リスト 14 に示すような ファイルを作り、 フォルダの作成 で作成した "example" フォルダ の下に "definition.xml" の名前で保存します。

基本情報を記述した格子生成プログラム定義ファイルの例
 1<?xml version="1.0" encoding="UTF-8"?>
 2<GridGeneratorDefinition
 3  name="samplecreator"
 4  caption="Sample Grid Creator"
 5  version="1.0"
 6  copyright="Example Company"
 7  executable="generator.exe"
 8  gridtype="structured2d"
 9>
10  <GridGeneratingCondition>
11  </GridGeneratingCondition>
12</GridGeneratorDefinition>

この時点では、格子生成プログラム定義ファイルの構造は 図 27 に示すようになっています。

_images/gridgendef_structure1.png

格子生成プログラム定義ファイルの構造

正しく定義ファイルが作成できているか確認します。

iRIC を起動します。 図 28 に示すダイアログが表示されますので、「新しいプロジェクト」ボタンを押します。 図 29 に示すダイアログが表示されますので、 "Nays2D" を選択して "OK" ボタンを押し、 新しいプロジェクトを開始します。

次に、メニューから以下の操作を行い、格子生成アルゴリズムの選択画面を表示します。

メニュー: 格子(C) --> 格子生成アルゴリズムの選択(S)

格子生成アルゴリズムの選択ダイアログの表示例を 図 30 に示します。 ここに、先ほど作成した定義ファイルで指定した "Sample Grid Creator" が表示されていることを確認します。確認できたら、キャンセルボタンを押します。

_images/iric_start_dialog1.png

iRIC のスタートダイアログ

_images/solver_select_dialog1.png

ソルバー選択ダイアログ

_images/gridgen_select_dialog.png

格子生成アルゴリズム選択ダイアログ

格子生成条件の定義

計算条件を定義します。計算条件は、ソルバー定義ファイルの CalculationCondition 要素で定義します。 基本情報の作成 で作成した格子生成プログラム定義ファイルに追記し、 リスト 15 に示すようなファイルにし、保存します。追記した部分を強調して示しました。

格子生成条件を追記した格子生成プログラム定義ファイルの例
 1<?xml version="1.0" encoding="UTF-8"?>
 2<GridGeneratorDefinition
 3  name="samplecreator"
 4  caption="Sample Grid Creator"
 5  version="1.0"
 6  copyright="Example Company"
 7  executable="generator.exe"
 8  gridtype="structured2d"
 9>
10  <GridGeneratingCondition>
11    <Tab name="size" caption="Grid Size">
12      <Item name="imax" caption="IMax">
13        <Definition valueType="integer" default="10" max="10000" min="1" />
14      </Item>
15      <Item name="jmax" caption="JMax">
16        <Definition valueType="integer" default="10" max="10000" min="1" />
17      </Item>
18    </Tab>
19  </GridGeneratingCondition>
20</GridGeneratorDefinition>

この時点では、格子生成プログラム定義ファイルの構造は 図 31 に示すようになっています。

_images/gridgen_structure_with_gridgencond.png

格子生成プログラム定義ファイルの構造

正しく格子生成プログラム定義ファイルが作成できているか確認します。

iRIC を起動し、 基本情報の作成 と同じ手順で 格子生成アルゴリズム選択画面を表示します。 "Sample Grid Creator" を選択し、 "OK" ボタンを押します。

すると、 図 32 に示すダイアログが 表示されます。 リスト 15 で追記した内容に従って、 "Grid Size" というグループが追加されているのが分かります。 確認できたら、 "キャンセル" ボタンを押します。

_images/gridgen_cond_dialog_base.png

格子生成ダイアログ 表示例

グループを増やして、さらに格子生成条件を追加します。 "Grid Size" の Tab要素 のすぐ下に、 "Elevation Output" というグループを 追加して保存します。追記した定義ファイルの抜粋を、 リスト 16 に示します。 追記した部分を強調して示しました。

格子生成条件を追記した格子生成プログラム定義ファイルの例 (抜粋)
 1    (前略)
 2    </Tab>
 3    <Tab name="elevation" caption="Elevation Output">
 4      <Item name="elev_on" caption="Output">
 5        <Definition valueType="integer" default="0">
 6          <Enumeration caption="Enabled" value="1" />
 7          <Enumeration caption="Disabled" value="0" />
 8        </Definition>
 9      </Item>
10      <Item name="elev_value" caption="Value">
11        <Definition valueType="real" default="0">
12          <Condition type="isEqual" target="elev_on" value="1" />
13        </Definition>
14      </Item>
15    </Tab>
16  </GridGeneratingCondition>
17</GridGeneratorDefinition>

この時点では、定義ファイルの構造は 図 33 に示す通りです。

_images/gridgen_structure_with_gridgencond_advanced.png

格子生成プログラム定義ファイルの構造

正しくソルバー定義ファイルが作成できているか確認します。 先ほどと同じ手順でダイアログを表示します。

"Elevation Output" というグループがリストに表示され、 このグループには2つの項目が表示されているのが分かります。 また、 "Value" は、 "Output" で "Enabled" を選択している時のみ有効です。 ダイアログの表示例を 図 34 に示します。

_images/gridgen_cond_dialog_advanced.png

格子生成ダイアログ 表示例

格子生成条件の定義についてまとめると、以下の通りです。

エラーコードの定義

格子生成プログラムで発生するエラーのコードと、対応するメッセージを定義します。 エラーコードは、定義ファイルの ErrorCode 要素で定義します。 格子生成条件の定義 で作成した格子生成プログラム定義ファイル に追記し、 リスト 17 に示すような ファイルにし、保存します。追記した部分を強調して示しました。

エラーコードを追記した格子生成プログラム定義ファイルの例
1(前略)
2      </Item>
3    </Tab>
4  </GridGeneratingCondition>
5  <ErrorCodes>
6    <ErrorCode value="1" caption="IMax * JMax must be smaller than 100,000." />
7  </ErrorCodes>
8</GridGeneratorDefinition>

この時点では、定義ファイルの構造は 図 35 に示すようになっています。 なお、エラーコードの定義は必須ではありません。

_images/gridgendef_structure_with_error.png

格子生成プログラム定義ファイルの構造

エラーコードの定義が正しく行えているかの確認は、 格子生成プログラムを作成してから行います。 エラーコードの定義の確認については エラー処理の記述 で行います。

格子生成プログラムの作成

格子生成プログラムを作成します。この例では、格子生成プログラムは FORTRAN 言語で開発します。

iRIC と連携する格子生成プログラムを開発するには、 格子生成プログラム定義ファイルに従って iRIC が生成する格子生成データファイルを、 格子生成条件、格子の入出力に利用する必要があります。

iRIC が生成する格子生成データファイルは、CGNS ファイルという形式です。CGNS ファイルの入出力には、iRIClib というライブラリを使用します。

この節では、格子生成プログラム定義ファイルの作成 で作成した定義ファイルに従ってiRIC が生成する格子生成データファイルを読みこんで、 格子を生成するプログラムを開発する流れを説明します。

この格子生成プログラムで行われる入出力処理を 表 6 に示します。

格子生成プログラムの入出力の処理の流れ

処理の内容

格子生成データファイルを開く

内部変数の初期化

格子生成条件の読み込み

格子の出力

格子生成データファイルを閉じる

この節では、格子生成プログラムを以下の手順で作成します。

  1. 骨組みの作成

  2. 格子生成データファイルを開く処理、閉じる処理の記述

  3. 格子の出力処理の記述

  4. 格子生成条件の読み込み処理の記述

  5. エラー処理の記述

骨組みの作成

格子生成プログラムの骨組みを作成します。 リスト 18 に示すソースコードを作成して、 "sample.f90" という名前で保存します。この時点では、このプログラムは何もしていません。

このソースコードをコンパイルします。コンパイル方法は、コンパイラによって異なります。 gfortran, Intel Fortran Compiler でのコンパイル方法を Intel Fortran Compiler (Windows) で解説していますので、参考にしてください。

サンプル格子生成プログラム ソースコード
1program SampleProgram
2  use iric
3  implicit none
4end program SampleProgram

コンパイルが成功することを確認してください。

格子生成データファイルを開く処理、閉じる処理の記述

格子生成データファイルを開く処理、閉じる処理を記述します。

格子計算プログラムは、処理開始時に 格子生成データファイルを開き、終了時に閉じる必要があります。iRIC は引数として格子生成データファイルのファイル名を渡すため、 そのファイル名を開きます。

Intel Fortran Compiler での引数の取得方法を Fortran プログラムでの引数の読み込み処理 で説明していますので、参考にしてください。

処理を追記したソースコードを リスト 19 に示します。追記した部分を強調して示します。

計算データファイルを開く処理、閉じる処理を追記したソースコード
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier
 6  integer:: icount, istatus
 7
 8  character(200)::condFile
 9
10  icount = nargs()
11  if ( icount.eq.2 ) then
12    call getarg(1, condFile, istatus)
13  else
14    stop "Input File not specified."
15  endif
16
17  ! 格子生成データファイルを開く
18  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
19  if (ier /=0) stop "*** Open error of CGNS file ***"
20
21  ! 格子生成データファイルを閉じる
22  call cg_iric_close(fin, ier)
23end program SampleProgram

骨組みの作成 と同様に、ファイルのコンパイルを行います。 問題なくコンパイルが成功することを確認してください。

この節で追加した関数の詳細については、CGNS ファイルを開く, CGNSファイルを閉じる を参照してください。

格子の出力処理の記述

格子の出力処理を記述します。

まずは、iRIC との連携が正しく行えることを確認するため、 単純な格子を生成して出力する処理を記述します。

格子を出力する処理を追記したソースコードを リスト 20 に示します。追記した部分を強調して示します。

格子を出力する処理を追記したソースコード
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier
 6  integer:: icount, istatus
 7  integer:: imax, jmax
 8  double precision, dimension(:,:), allocatable::grid_x, grid_y
 9  character(200)::condFile
10
11  icount = nargs()
12  if ( icount.eq.2 ) then
13    call getarg(1, condFile, istatus)
14  else
15    stop "Input File not specified."
16  endif
17
18  ! 格子生成データファイルを開く
19  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
20  if (ier /=0) stop "*** Open error of CGNS file ***"
21
22  imax = 10
23  jmax = 10
24
25  ! 格子生成用のメモリを確保
26  allocate(grid_x(imax,jmax), grid_y(imax,jmax)
27
28  ! 格子を生成
29  do i = 1, imax
30    do j = 1, jmax
31      grid_x(i, j) = i
32      grid_y(i, j) = j
33    end do
34  end do
35
36  ! 格子を出力
37  cg_iric_write_grid2d_coords(fin, imax, jmax, grid_x, grid_y, ier)
38
39  ! 格子生成データファイルを閉じる
40  call cg_iric_close(fin, ier)
41end program SampleProgram

コンパイルしたら、できた実行プログラムを フォルダの作成 で作成したフォルダにコピーし、名前を 基本情報の作成 で executable 属性に指定した名前 (この例なら "generator.exe" ) に変更してください。またこの時、格子生成プログラムの実行に必要な DLLなども同じフォルダにコピーしてください。

この段階で、iRIC から格子生成プログラムが正しく起動できるか確認します。

ソルバーに "Nays2DH" を指定して、新しいプロジェクトを開始し、 基本情報の作成 で行ったのと同じ操作で 格子生成アルゴリズムに "Sample Grid Creator" を選択し、格子生成ダイアログを表示します。表示されるダイアログを 図 36 に示します。

_images/gridgen_cond_dialog_for_testing.png

格子生成条件設定ダイアログ 表示例

"格子生成" ボタンを押します。すると、格子生成プログラムが 10 x 10 の 格子を生成し、それがiRIC 上に読み込まれるのが確認できます。 "格子生成" ボタンを押した後のプリプロセッサの表示画面を 図 37 に示します。

_images/preprocessor_after_gridgen.png

プリプロセッサ表示例

なお、この節で追加した格子出力用の関数の詳細については、 計算格子の出力 を参照してください。ただし、 計算格子の出力 では3次元格子の出力用関数についても 解説していますが、格子生成プログラムで利用できるのは、2次元格子の出力用関数だけです。

格子生成条件の読み込み処理の記述

格子生成条件の読み込み処理を記述します。

iRIC は、 格子生成プログラム定義ファイルの作成 で作成した 定義ファイルに従って格子生成条件を格子生成データファイルに出力しますので、 それに対応するように格子生成条件の読み込み処理を記述します。

格子生成条件の読み込み処理を追記したソースコードを リスト 21 に示します。追記した部分を太字で示します。格子生成条件を読み込む関数に 渡す引数が、 格子生成条件の定義 で定義ファイルに記述したItem 要素の name 属性と一致していることに 注目してください。

コンパイルしたら、 格子の出力処理の記述 の時と同様の手順で格子を生成し、指定した通りの格子生成条件で 格子が生成することを確認してください。

定義ファイルで定義する格子生成条件と、それを読み込むための iRIClib の関数の対応関係については、計算条件・境界条件・格子生成条件の項目の定義と読み込み処理の例 を参照してください。格子生成条件の読み込みに使う関数の詳細については、 計算条件 (もしくは格子生成条件) の読み込み を参照してください。

格子生成条件の読み込み処理を追記したソースコード
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier
 6  integer:: icount, istatus
 7  integer:: imax, jmax
 8  integer:: elev_on
 9  double precision:: elev_value
10  double precision, dimension(:,:), allocatable::grid_x, grid_y
11  double precision, dimension(:,:), elevation
12
13  character(200)::condFile
14
15  icount = nargs()
16  if ( icount.eq.2 ) then
17    call getarg(1, condFile, istatus)
18  else
19    stop "Input File not specified."
20  endif
21
22  ! 格子生成データファイルを開く
23  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
24  if (ier /=0) stop "*** Open error of CGNS file ***"
25
26  ! 格子生成条件の読み込み
27  ! 簡潔に記述するため、エラー処理は行っていない
28  call cg_iric_read_integer(fin, "imax", imax, ier)
29  call cg_iric_read_integer(fin, "jmax", jmax, ier)
30  call cg_iric_read_integer(fin, "elev_on", elev_on, ier)
31  call cg_iric_read_real(fin, "elev_value", elev_value, ier)
32
33  ! 格子生成用のメモリを確保
34  allocate(grid_x(imax,jmax), grid_y(imax,jmax)
35  allocate(elevation(imax,jmax))
36
37  ! 格子を生成
38  do i = 1, isize
39    do j = 1, jsize
40      grid_x(i, j) = i
41      grid_y(i, j) = j
42      elevation(i, j) = elev_value
43    end do
44  end do
45
46  ! 格子を出力
47  cg_iric_write_grid2d_coords(fin, imax, jmax, grid_x, grid_y, ier)
48  if (elev_on == 1) then
49    cg_iric_write_grid_real_node(fin, "Elevation", elevation, ier);
50  end if
51
52  ! 格子生成データファイルを閉じる
53  call cg_iric_close(fin, ier)
54end program SampleProgram

エラー処理の記述

格子生成条件に問題があった場合のエラー処理を記述します。

エラー処理を追記したソースコードを リスト 22 に示します。太字で示したのが追記した部分です。追記した部分により、格子の格子点数が 100000 を超えるような imax, jmax を指定した時は、エラーが発生するようにしました。

コンパイルしたら、 格子の出力処理の記述 の時と同様の手順で格子を生成し、imax x jmax が 100000より大きくなる条件の時には、 図 38 に示すようなダイアログが表示されることを確認してください。例えば、 IMax, JMax にそれぞれ 10000 を指定してみてください。

エラー処理に使う関数の詳細については エラーコードの出力 を参照してください。

エラー処理を追記したソースコード (抜粋)
 1! (前略)
 2
 3  ! 格子生成条件の読み込み
 4  ! 簡潔に記述するため、エラー処理は行っていない
 5  call cg_iric_read_integer(fin, "imax", imax, ier)
 6  call cg_iric_read_integer(fin, "jmax", jmax, ier)
 7  call cg_iric_read_integer(fin, "elev_on", elev_on, ier)
 8  call cg_iric_read_real(fin, "elev_value", elev_value, ier)
 9
10  ! エラー処理
11  if (imax * jmax > 100000 ) then
12    ! 100000 より大きい格子は生成できない
13    call cg_iric_write_errorcode(fin, 1, ier)
14    cg_iric_close(fin, ier)
15    stop
16  endif
17
18  ! 格子生成用のメモリを確保
19  allocate(grid_x(imax,jmax), grid_y(imax,jmax)
20  allocate(elevation(imax,jmax))
21
22! (後略)
_images/gridgenerator_error_dialog.png

格子生成エラーダイアログ 表示例

格子生成プログラム定義ファイルの辞書ファイルの作成

格子生成プログラム定義ファイルで用いられている文字列のうち、 ダイアログ上に表示される文字列を翻訳して表示するための 辞書ファイルを作成します。

まず、iRIC から、以下のメニューを起動します。 すると、格子生成プログラム定義ファイルの辞書更新ウィザードが表示されます。 ダイアログの表示例を、図 39図 41 に示します。

メニュー: オプション(O) --> 辞書ファイルの作成・更新(C)

_images/dict_wizard_intro1.png

定義ファイルの翻訳辞書 更新ウィザード 表示例 (1ページ目)

_images/dict_wizard_select_gridgenerator.png

定義ファイルの翻訳辞書 更新ウィザード 表示例 (2ページ目)

_images/dict_wizard_confirm1.png

定義ファイルの翻訳辞書 更新ウィザード 表示例 (3ページ目)

辞書ファイルは、格子生成プログラムソルバー定義ファイルと 同じフォルダに作成されます。 作成された辞書ファイルは、翻訳前の英語のみが含まれています。 辞書ファイルはテキストファイルですので、 テキストエディタなどで開いて編集します。辞書ファイルは、 UTF-8 で保存してください。

辞書ファイルの編集例を、 リスト 23リスト 24 に示します。例に示したように、translation 要素の中に翻訳後の文字列を追記してください。

格子生成プログラム定義ファイルの辞書ファイルの一部 (編集前)
1<message>
2  <source>Sample Grid Creator</source>
3  <translation></translation>
4</message>
格子生成プログラム定義ファイルの辞書ファイルの一部 (編集後)
1<message>
2  <source>Sample Grid Creator</source>
3  <translation>サンプル格子生成プログラム</translation>
4</message>

なお、辞書ファイルは、Qt に付属する Qt Linguist を利用して編集することもできます。Qt Linguist の画面表示例を 図 42 に示します。Qt Linguist は、以下の URL からダウンロードできる Qt に含まれています。

https://www.qt.io/download/

_images/qt_linguist_screenshot1.png

Qt Linguist 画面表示例

翻訳が完了したら、iRICを確認したい言語に切り替えてから iRIC を起動し直し、正しく翻訳されて表示されるか確認します。 翻訳完了後の格子生成条件設定ダイアログの表示例を 図 43 に示します。

_images/gridgen_dialog_translated.png

翻訳完了後の格子生成条件設定ダイアログ 表示例

説明ファイルの作成

格子生成プログラムの概要について説明するファイルを作成します。

README というファイル名のテキストファイルを、 フォルダの作成 で作成したフォルダ の下に作成します。文字コードは UTF-8 にします。

なお、説明ファイルは、以下の例のようなファイル名で言語ごとに用意します。 言語ごとの説明ファイルがない場合、 README が使用されます。

  • 英語: README

  • 日本語: README_ja_JP

"README_" 以降につく文字列は、辞書ファイルの "translation_*****.ts" の "*****" の部分と同じですので、日本語以外の説明ファイルを作る際のファイル名は、 辞書ファイルのファイル名を参考にして決めて下さい。

説明ファイルの内容は、格子生成アルゴリズム選択ダイアログで、 説明欄に表示されます。ファイルを作成したら、 iRIC 上で正しく表示されるか確認して下さい。ダイアログの表示例を、 図 44 に示します。

_images/gridgen_readme.png

格子生成アルゴリズム選択ダイアログ 表示例

定義ファイル (XML) について

概要

iRIC は、ソルバー定義ファイル、格子生成プログラム定義ファイルを 読み込むことで、そのソルバー、格子生成プログラムが必要な入力情報を 作成するためのインターフェースを提供します。

構造

ソルバー定義ファイル、格子生成プログラム定義ファイルの構造を示します。

ソルバー定義ファイル

計算格子を1つ利用するソルバーでのソルバー定義ファイルの構造を 図 45 に、 複数利用するソルバーでのソルバー定義ファイルの構造を 図 46 にそれぞれ示します。

_images/solverdef_structure_basic.png

ソルバー定義ファイルの構造

_images/solverdef_structure_multigrid.png

複数の格子を利用するソルバーのソルバー定義ファイルの構造

複数の格子を利用するソルバーの場合、ソルバー定義ファイルでは GridType 要素を使って、それぞれの格子の構造、格子属性、境界条件を定義します。

複数の格子を利用するソルバーのソルバー定義ファイルの例を、 リスト 25 に示します。この例では、境界条件は省略されています。 以下の点が、1つの格子を利用する場合と異なっていることに注意して下さい。

  • 格子の構造 (gridtype 属性) は、SolverDefinition 要素でなく、 GridType 要素で定義されている。

リスト 25 に示した ソルバー定義ファイルのソルバーを選択して iRIC で新しいプロジェクトを開始した場合、 図 47 に示すようなプリプロセッサが表示されます。

複数の格子を使用するソルバーのソルバー定義ファイルの例
 1<?xml version="1.0" encoding="UTF-8"?>
 2<SolverDefinition
 3  name="multigridsolver"
 4  caption="Multi Grid Solver"
 5  version="1.0"
 6  copyright="Example Company"
 7  release="2012.04.01"
 8  homepage="http://example.com/"
 9  executable="solver.exe"
10  iterationtype="time"
11>
12  <CalculationCondition>
13    <!-- ここで、計算条件を定義。-->
14  </CalculationCondition>
15  <GridTypes>
16    <GridType name="river" caption="River">
17      <GridRelatedCondition>
18        <Item name="Elevation" caption="Elevation">
19          <Definition valueType="real" position="node" />
20        </Item>
21        <Item name="Roughness" caption="Roughness">
22          <Definition valueType="real" position="node"/>
23        </Item>
24        <Item name="Obstacle" caption=" Obstacle">
25          <Definition valueType="integer" position="cell"/>
26        </Item>
27      </GridRelatedCondition>
28    </GridType>
29    <GridType name="floodbed" caption="Flood Bed">
30      <GridRelatedCondition>
31        <Item name="Elevation" caption="Elevation">
32          <Definition valueType="real" position="node" />
33        </Item>
34      </GridRelatedCondition>
35    </GridType>
36  </GridTypes>
37</SolverDefinition>
_images/preprocessor_multigridtypes.png

複数の格子を定義したソルバ定義ファイルを読み込んだ場合のプリプロセッサ 表示例

格子生成プログラム定義ファイル

格子生成プログラム定義ファイルの構造を、 図 48 に示します。

_images/gridgen_structure.png

格子生成プログラム定義ファイルの構造

定義例

計算条件・境界条件・格子生成条件の項目の定義と読み込み処理の例

ソルバー定義ファイルでの計算条件、格子生成プログラムでの格子生成条件の 項目の定義例を示します。定義する位置は 表 7 に示すように異なりますが、同じ文法で定義できます。各対象ファイルの構造は 構造 を参照してください。

要素の定義位置

項目

対象ファイル

定義する位置

計算条件

ソルバー定義ファイル

CalculationCondition 要素の下

格子生成条件

格子生成プログラム定義ファイル

GridGeneratingCondition 要素の下

定義できる項目の種類を、 表 8 に示します。この節では、以下を示します。

  • 定義例

  • iRIC の計算条件編集ダイアログ上での表示例

  • ソルバー (もしくは格子生成プログラム) で値を読み込むための処理の記述例

ソルバー (もしくは格子生成プログラム) で値を読み込むための 処理の記述例では、iRIClib の関数を使用しています。iRIClib の詳細は、 iRIClibについて を参照して下さい。

記述例は読み込みに関連する部分のみですので、プログラム全体の例は ソルバーの作成, 格子生成プログラムの作成 を参照してください。

計算条件、格子生成条件の項目の種類

種類

説明

定義方法

文字列

文字列の値を入力。

valueType に "string" を指定

ファイル名 (読み込み用)

読み込み用のファイル名を入力。既に存在するファイルしか選択できない。

valueType に "filename" を指定

ファイル名 (書き込み用)

書き込み用のファイル名を入力。存在しないファイルの名前も指定できる。

valueType に "filename_all" を指定

フォルダ名

フォルダ名を入力。

valueType に "foldername" を指定

整数

任意の整数値を入力。

valueType に "integer" を指定

整数 (選択式)

あらかじめ用意した選択肢の中から整数値を選択。

valueType に "integer" を指定し、Enumeration 要素で選択肢を定義

実数

任意の実数値を入力。

valueType に "real" を指定

関数型

(X, Y) の組を複数入力。

valueType に "functional" を指定し、Parameter 要素、 Value 要素で変数と値を定義

関数型 (複数の値)

(X, Y1, Y2) の組を複数入力。

valueType に "functional" を指定し、Parameter 要素を1つと Value 要素を2つ定義

CGNSファイル名

読み込み用のCGNSファイル名を入力。既に存在するファイルしか選択できない。

valueType に "cgns_filename" を指定

CGNSファイル内の計算結果

計算結果の名前を選択

valueType に "result_gridNodeReal" などを指定

文字列
定義方法
文字列の条件の定義例
1<Item name="sampleitem" caption="Sample Item">
2  <Definition valueType="string" />
3</Item>
条件の表示例
_images/widget_example_string.png

文字列の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
文字列の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier
2character(200):: sampleitem
3
4call cg_iRIC_Read_String(fid, "sampleitem", sampleitem, ier)
C/C++
文字列の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier;
2char sampleitem[200];
3
4ier = cg_iRIC_Read_String(fid, "sampleitem", sampleitem)
Python
文字列の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1sampleitem = cg_iRIC_Read_String(fid, "sampleitem")
境界条件
FORTRAN
文字列の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier
2character(200):: sampleitem
3
4call cg_iRIC_Read_BC_String(fid, "inflow", 1, "sampleitem", sampleitem, ier)
C/C++
文字列の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier;
2char sampleitem[200];
3
4ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "sampleitem", sampleitem)
Python
文字列の条件を読み込むための処理の記述例 (境界条件) Python
1sampleitem = cg_iRIC_Read_BC_String(fid, "inflow", 1, "sampleitem")
ファイル名 (読み込み用)
定義方法
ファイル名 (読み込み用) の条件の定義例
1<Item name="flowdatafile" caption="Flow data file">
2  <Definition valueType="filename" default="flow.dat" />
3</Item>
条件の表示例
_images/widget_example_filename_load.png

ファイル名 (読み込み用) の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
ファイル名 (読み込み用)の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier
2character(200):: flowdatafile
3
4call cg_iRIC_Read_String(fid, "flowdatafile", flowdatafile, ier)
C/C++
ファイル名 (読み込み用)の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier;
2char flowdatafile[200];
3
4ier = cg_iRIC_Read_String(fid, "flowdatafile", flowdatafile)
Python
ファイル名 (読み込み用)の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1flowdatafile = cg_iRIC_Read_String(fid, "flowdatafile")
境界条件
FORTRAN
ファイル名 (読み込み用) の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier
2character(200):: flowdatafile
3
4call cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafile", flowdatafile, ier)
C/C++
ファイル名 (読み込み用) の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier;
2char flowdatafile[200];
3
4ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafile", flowdatafile)
Python
ファイル名 (読み込み用) の条件を読み込むための処理の記述例 (境界条件) Python
1flowdatafile = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafile")
ファイル名 (書き込み用)
定義方法
ファイル名 (書き込み用) の条件の定義例
1<Item name="flowdatafile" caption="Flow data file">
2  <Definition valueType="filename_all" default="flow.dat" />
3</Item>
条件の表示例
_images/widget_example_filename_save.png

ファイル名 (書き込み用) の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
ファイル名 (書き込み用)の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier
2character(200):: flowdatafile
3
4call cg_iRIC_Read_String(fid, "flowdatafile", flowdatafile, ier)
C/C++
ファイル名 (書き込み用)の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier;
2char flowdatafile[200];
3
4ier = cg_iRIC_Read_String(fid, "flowdatafile", flowdatafile)
Python
ファイル名 (書き込み用)の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1flowdatafile = cg_iRIC_Read_String(fid, "flowdatafile")
境界条件
FORTRAN
ファイル名 (書き込み用) の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier
2character(200):: flowdatafile
3
4call cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafile", flowdatafile, ier)
C/C++
ファイル名 (書き込み用) の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier;
2char flowdatafile[200];
3
4ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafile", flowdatafile)
Python
ファイル名 (書き込み用) の条件を読み込むための処理の記述例 (境界条件) Python
1flowdatafile = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafile")
フォルダ名
定義方法
フォルダ名の条件の定義例
1<Item name="flowdatafolder" caption="Flow data folder">
2  <Definition valueType="foldername" />
3</Item>
条件の表示例
_images/widget_example_folder.png

フォルダ名の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
フォルダ名の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier
2character(200):: flowdatafolder
3
4call cg_iRIC_Read_String(fid, "flowdatafolder", flowdatafolder, ier)
C/C++
フォルダ名の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier
2char flowdatafolder[200];
3
4ier = cg_iRIC_Read_String(fid, "flowdatafolder", flowdatafolder)
Python
フォルダ名の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1flowdatafolder = cg_iRIC_Read_String(fid, "flowdatafolder")
境界条件
FORTRAN
フォルダ名の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier
2character(200):: flowdatafolder
3
4call cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafolder", flowdatafolder, ier)
C/C++
フォルダ名の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier
2char flowdatafolder[200];
3
4ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafolder", flowdatafolder)
Python
フォルダ名の条件を読み込むための処理の記述例 (境界条件) Python
1flowdatafolder = cg_iRIC_Read_BC_String(fid, "inflow", 1, "flowdatafolder")
整数
定義方法
整数の条件の定義例
1<Item name="numsteps" caption="The Number of steps to calculate">
2  <Definition valueType="integer" default="20" min="1" max="200" />
3</Item>
条件の表示例
_images/widget_example_integer.png

整数の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
整数の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier, numsteps
2
3call cg_iRIC_Read_Integer(fid, "numsteps", numsteps, ier)
C/C++
整数の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier, numsteps;
2
3ier = cg_iRIC_Read_Integer(fid, "numsteps", &numsteps)
Python
整数の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1numsteps = cg_iRIC_Read_Integer(fid, "numsteps")
境界条件
FORTRAN
整数の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier, numsteps
2
3call cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "numsteps", numsteps, ier)
C/C++
整数の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier, numstep;
2
3ier = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "numsteps", &numsteps)
Python
整数の条件を読み込むための処理の記述例 (境界条件) Python
1numsteps = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "numsteps")
整数 (選択式)
定義方法
整数 (選択式) の条件の定義例
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>
条件の表示例
_images/widget_example_combobox.png

整数 (選択式) の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
整数 (選択式) の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier, flowtype
2
3call cg_iRIC_Read_Integer(fid, "flowtype", flowtype, ier)
C/C++
整数 (選択式) の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier, flowtype;
2
3ier = cg_iRIC_Read_Integer(fid, "flowtype", &flowtype)
Python
整数 (選択式) の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1flowtype = cg_iRIC_Read_Integer(fid, "flowtype")
境界条件
FORTRAN
整数 (選択式) の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier, flowtype
2
3call cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype", flowtype, ier)
C/C++
整数 (選択式) の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier, flowtype;
2
3ier = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype", &flowtype)
Python
整数 (選択式) の条件を読み込むための処理の記述例 (境界条件) Python
1flowtype = cg_iRIC_Read_BC_Integer(fid, "inflow", 1, "flowtype")
実数
定義方法
実数の条件の定義例
1<Item name="g" caption="Gravity [m/s2]">
2  <Definition valueType="real" default="9.8" />
3</Item>
条件の表示例
_images/widget_example_real.png

実数の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
実数の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier
2double precision:: g
3
4call cg_iRIC_Read_Real(fid, "g", g, ier)
C/C++
実数の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier;
2double g;
3
4ier = cg_iRIC_Read_Real(fid, "g", &g)
Python
実数の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1g = cg_iRIC_Read_Real(fid, "g")
境界条件
FORTRAN
実数の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier
2double precision:: g
3
4call cg_iRIC_Read_BC_Real(fid, "inflow", 1, "g", g, ier)
C/C++
実数の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier;
2double g;
3
4ier = cg_iRIC_Read_BC_Real(fid, "inflow", 1, "g", &g)
Python
実数の条件を読み込むための処理の記述例 (境界条件) Python
1g = cg_iRIC_Read_BC_Real(fid, "inflow", 1, "g")
関数型
定義方法
関数型の条件の定義例
1<Item name="discharge" caption="Discharge time series">
2  <Definition valueType="functional" >
3    <Parameter valueType="real" caption="Time" />
4    <Value valueType="real" caption="Discharge" />
5  </Definition>
6</Item>
条件の表示例
_images/widget_example_func.png

関数型の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
関数型の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
 1integer:: ier, discharge_size
 2double precision, dimension(:), allocatable:: discharge_time, discharge_value
 3
 4! サイズを調べる
 5call cg_iRIC_Read_FunctionalSize(fid, "discharge", discharge_size, ier)
 6! メモリを確保
 7allocate(discharge_time(discharge_size))
 8allocate(discharge_value(discharge_size))
 9! 確保したメモリに値を読み込む
10call cg_iRIC_Read_Functional(fid, "discharge", discharge_time, discharge_value, ier)
C/C++
関数型の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C++
 1integer:: ier, discharge_size
 2std::vector<double> discharge_time, discharge_value;
 3
 4// サイズを調べる
 5ier = cg_iRIC_Read_FunctionalSize(fid, "discharge", &discharge_size)
 6// メモリを確保
 7discharge_time.assign(discharge_size, 0);
 8discharge_value.assign(discharge_size, 0);
 9// 確保したメモリに値を読み込む
10ier = cg_iRIC_Read_Functional(fid, "discharge", discharge_time.data(), discharge_value.data())
Python
関数型の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1discharge_time, discharge_value = cg_iRIC_Read_Functional(fid, "discharge")
境界条件
FORTRAN
関数型の条件を読み込むための処理の記述例 (境界条件) FORTRAN
 1integer:: ier, discharge_size
 2double precision, dimension(:), allocatable:: discharge_time, discharge_value
 3
 4! サイズを調べる
 5call cg_iRIC_Read_BC_FunctionalSize(fid, "inflow", 1, "discharge", discharge_size, ier)
 6! メモリを確保
 7allocate(discharge_time(discharge_size))
 8allocate(discharge_value(discharge_size))
 9! 確保したメモリに値を読み込む
10call cg_iRIC_Read_BC_Functional(fid, "inflow", 1, "discharge", discharge_time, discharge_value, ier)
C/C++
関数型の条件を読み込むための処理の記述例 (境界条件) C++
 1integer:: ier, discharge_size
 2std::vector<double> discharge_time, discharge_value;
 3
 4// サイズを調べる
 5ier = cg_iRIC_Read_BC_FunctionalSize(fid, "inflow", 1, "discharge", &discharge_size)
 6// メモリを確保
 7discharge_time.assign(discharge_size, 0);
 8discharge_value.assign(discharge_size, 0);
 9// 確保したメモリに値を読み込む
10ier = cg_iRIC_Read_BC_Functional(fid, "inflow", 1, "discharge", discharge_time.data(), discharge_value.data());
Python
関数型の条件を読み込むための処理の記述例 (境界条件) Python
1discharge_time, discharge_value = cg_iRIC_Read_BC_Functional(fid, "inflow", 1, "discharge")
関数型 (複数の値)
定義方法
関数型 (複数の値) の条件の定義例
1<Item name="discharge_and_elev" caption="Discharge and Water Elevation time series">
2  <Definition valueType="functional" >
3    <Parameter name="time" valueType="real" caption="Time" />
4    <Value name="discharge" valueType="real" caption="Discharge" />
5    <Value name="elevation" valueType="real" caption="Water Elevation" />
6  </Definition>
7</Item>
条件の表示例
_images/widget_example_func_multi.png

関数型 (複数の値) の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
関数型 (複数の値) の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
 1integer:: ier, discharge_size
 2double precision, dimension(:), allocatable:: time_value
 3double precision, dimension(:), allocatable:: discharge_value, elevation_value
 4
 5! サイズを調べる
 6call cg_iRIC_Read_FunctionalSize(fid, "discharge", discharge_size, ier)
 7! メモリを確保
 8allocate(time_value(discharge_size))
 9allocate(discharge_value(discharge_size), elevation_value(discharge_size))
10! 確保したメモリに値を読み込む
11call cg_iRIC_Read_FunctionalWithName(fid, "discharge", "time", time_value, ier)
12call cg_iRIC_Read_FunctionalWithName(fid, "discharge", "discharge", discharge_value, ier)
13call cg_iRIC_Read_FunctionalWithName(fid, "discharge", "elevation", elevation_value, ier)
C/C++
関数型 (複数の値) の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C++
 1int ier, discharge_size;
 2std::vector<double> time_value, discharge_value, elevation_value;
 3
 4// サイズを調べる
 5ier = cg_iRIC_Read_FunctionalSize(fid, "discharge", &discharge_size);
 6// メモリを確保
 7time_value.assign(discharge_size, 0);
 8discharge_value.assign(discharge_size, 0);
 9elevation_value.assign(discharge_size, 0);
10// 確保したメモリに値を読み込む
11ier = cg_iRIC_Read_FunctionalWithName(fid, "discharge", "time", time_value);
12ier = cg_iRIC_Read_FunctionalWithName(fid, "discharge", "discharge", discharge_value);
13ier = cg_iRIC_Read_FunctionalWithName(fid, "discharge", "elevation", elevation_value);
Python
関数型 (複数の値) の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1time_value = cg_iRIC_Read_FunctionalWithName(fid, "discharge", "time")
2discharge_value = cg_iRIC_Read_FunctionalWithName(fid, "discharge", "discharge")
3elevation_value = cg_iRIC_Read_FunctionalWithName(fid, "discharge", "elevation")
境界条件
FORTRAN
関数型 (複数の値) の条件を読み込むための処理の記述例 (境界条件) FORTRAN
 1integer:: ier, discharge_size
 2double precision, dimension(:), allocatable:: time_value
 3double precision, dimension(:), allocatable:: discharge_value, elevation_value
 4
 5! サイズを調べる
 6call cg_iRIC_Read_BC_FunctionalSize(fid, "discharge", discharge_size, ier)
 7! メモリを確保
 8allocate(time_value(discharge_size))
 9allocate(discharge_value(discharge_size), elevation_value(discharge_size))
10! 確保したメモリに値を読み込む
11call cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "time", time_value, ier)
12call cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "discharge", discharge_value, ier)
13call cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "elevation", elevation_value, ier)
C/C++
関数型 (複数の値) の条件を読み込むための処理の記述例 (境界条件) C/C++
 1int ier, discharge_size;
 2std::vector<double> time_value, discharge_value, elevation_value;
 3
 4// サイズを調べる
 5ier = cg_iRIC_Read_BC_FunctionalSize(fid, "discharge", &discharge_size)
 6// メモリを確保
 7time_value.assign(discharge_size, 0);
 8discharge_value.assign(discharge_size, 0);
 9elevation_value.assign(discharge_size, 0);
10// 確保したメモリに値を読み込む
11ier = cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "time", time_value.data());
12ier = cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "discharge", discharge_value.data());
13ier = cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "elevation", elevation_value.data());
Python
関数型 (複数の値) の条件を読み込むための処理の記述例 (境界条件) Python
1time_value = cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "time")
2discharge_value = cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "discharge")
3elevation_value = cg_iRIC_Read_BC_FunctionalWithName(fid, "discharge", "elevation")
CGNSファイル名 など
概要

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

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

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

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

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

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
1integer:: ier
2character(200):: cgnsName, resultName
3
4call cg_iRIC_Read_String(fid, "input_file", cgnsName, ier)
5call cg_iRIC_Read_String(fid, "result_to_read", resultName, ier)
C/C++
CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C/C++
1int ier;
2char cgnsName[200], resultName[200];
3
4ier = cg_iRIC_Read_String(fid, "input_file", cgnsName);
5ier = cg_iRIC_Read_String(fid, "result_to_read", resultName);
Python
CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
1cgnsName = cg_iRIC_Read_String(fid, "input_file")
2resultName = cg_iRIC_Read_String(fid, "result_to_read")
境界条件
FORTRAN
CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (境界条件) FORTRAN
1integer:: ier
2character(200):: cgnsName, resultName
3
4call cg_iRIC_Read_BC_String(fid, "inflow", 1, "input_file", cgnsName, ier)
5call cg_iRIC_Read_BC_String(fid, "inflow", 1, "result_to_read", resultName, ier)
C/C++
CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (境界条件) C/C++
1int ier;
2char cgnsName[200], resultName[200];
3
4ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "input_file", cgnsName)
5ier = cg_iRIC_Read_BC_String(fid, "inflow", 1, "result_to_read", resultName)
Python
CGNSファイル名と計算結果の条件を読み込むための処理の記述例 (境界条件) Python
1cgnsName = cg_iRIC_Read_BC_String(fid, "inflow", 1, "input_file")
2resultName = cg_iRIC_Read_BC_String(fid, "inflow", 1, "result_to_read")
計算結果の種類ごとの valueType の値の一覧

計算結果の種類ごとの valueType の値の一覧を 表 9 に示します。

計算結果の種類ごとの valueType 一覧

定義位置

値の型

valueType

グローバル

実数

result_baseIterativeReal

グローバル

整数

result_baseIterativeInteger

格子点

実数

result_gridNodeReal

格子点

整数

result_gridNodeInteger

セル

実数

result_gridCellReal

セル

整数

result_gridCellInteger

格子の辺 (I方向)

実数

result_gridEdgeIReal

格子の辺 (I方向)

整数

result_gridEdgeIInteger

格子の辺 (J方向)

実数

result_gridEdgeJReal

格子の辺 (J方向)

整数

result_gridEdgeJInteger

複合型
概要

複合型は、ここまでで説明してきた、文字列、整数、実数などの条件を複数組み合わせたものです。

valueType に complex を指定した <Definition> 要素を作成し、その内側に整数型、実数型などの 条件を定義します。

定義方法
複合型の条件の定義例
 1<Item name="fish" caption="Fishes">
 2  <Definition valueType="complex" >
 3    <Item name="type" caption="Type">
 4      <Definition valueType="integer" option="true" default="1">
 5        <Enumerations>
 6          <Enumeration value="1" caption="Fish"/>
 7          <Enumeration value="2" caption="Crub"/>
 8          <Enumeration value="3" caption="Shrimp"/>
 9        </Enumerations>
10      </Definition>
11    </Item>
12    <Item name="size" caption="Size">
13      <Definition valueType="real" default="0.13" />
14    </Item>
15    <Item name="remarks" caption="Remarks">
16      <Definition valueType="string" default="" />
17    </Item>
18  </Definition>
19</Item>
条件の表示例
_images/widget_example_complex.png

複合型の条件の表示例

読み込み処理の記述方法
計算条件・格子生成条件
FORTRAN
複合型の条件を読み込むための処理の記述例 (計算条件・格子生成条件) FORTRAN
 1integer:: ier, fish_count
 2integer, dimension(:), allocatable:: fish_type
 3double precision, dimension(:), allocatable:: fish_size
 4character(200), dimension(:), allocatable:: fish_remarks
 5integer:: i
 6
 7! サイズを調べる
 8call cg_iRIC_Read_Complex_Count(fid, "fish", fish_count, ier)
 9! メモリを確保
10allocate(fish_type(fish_count))
11allocate(fish_size(fish_count))
12allocate(fish_remarks(fish_count))
13! 確保したメモリに値を読み込む
14do i = 1, fish_count
15  call cg_iRIC_Read_Complex_Integer(fid, "fish", "type", fish_type(i), ier)
16  call cg_iRIC_Read_Complex_Real(fid, "fish", "size", fish_size(i), ier)
17  call cg_iRIC_Read_Complex_String(fid, "fish", "remarks", fish_remarks(i), ier)
18end do
C/C++
複合型の条件を読み込むための処理の記述例 (計算条件・格子生成条件) C++
 1int ier, fish_count;
 2std::vector<int> fish_type;
 3std::vector<double> fish_size;
 4int strlen;
 5std::vector<std::vector<char> > fish_remarks;
 6
 7// サイズを調べる
 8ier = cg_iRIC_Read_Complex_Count(fid, "fish", &fish_count)
 9// メモリを確保
10fish_type.assign(fish_count, 0);
11fish_size.assign(fish_count, 0);
12fish_remarks.assign(fish_count, "");
13// 確保したメモリに値を読み込む
14for (int i = 0; i < fish_count; ++i) {
15  ier = cg_iRIC_Read_Complex_Integer(fid, "fish", "type", &fish_type[i]);
16  call cg_iRIC_Read_Complex_Real(fid, "fish", "size", &fish_size[i]);
17  auto& remarks = fish_remarks[i];
18  call cg_iRIC_Read_Complex_StringLen(fid, "fish", "remarks", &strlen);
19  remarks.assign(strlen + 1, 0);
20  call cg_iRIC_Read_Complex_String(fid, "fish", "remarks", remarks.data());
21}
Python
複合型の条件を読み込むための処理の記述例 (計算条件・格子生成条件) Python
 1# サイズを調べる
 2fish_count = cg_iRIC_Read_Complex_Count(fid, "fish")
 3# リストを用意
 4fish_type = list()
 5fish_size = list()
 6fish_remarks = list()
 7
 8for i in range(fish_count):
 9  fish_type.append(cg_iRIC_Read_Complex_Integer(fid, "fish", "type"))
10  fish_size.append(cg_iRIC_Read_Complex_Real(fid, "fish", "size"))
11  fish_remarks.append(cg_iRIC_Read_Complex_String(fid, "fish", "remarks"))

計算条件・境界条件・格子生成条件の有効になる条件の定義例

計算条件、格子生成条件、境界条件に関する有効になる条件の定義例を示します。 ここで示すように、type が "and", "or" の条件を利用 することによって複雑な条件を指定することができます。

var1 = 1
1<Condition type="isEqual" target="var1" value="1" />
var1 = 1 and var2 > 3
1<Condition type="or">
2  <Condition type="isEqual" target="var1" value="1" />
3  <Condition type="isGreaterThan" target="var2" value="3" />
4</Condition>
(var1 = 1 or var2 < 5) and var3 = 100
1<Condition type="and">
2  <Condition type="or">
3    <Condition type="isEqual" target="var1" value="1" />
4    <Condition type="isLessThan" target="var2" value="5" />
5  </Condition>
6  <Condition type="isEqual" target="var3" value="100" />
7</Condition>

計算条件・境界条件・格子生成条件のダイアログのレイアウト定義例

単純なレイアウト

Item 要素 のみを使って定義した単純なレイアウトの例を リスト 100 に、 ダイアログでの表示例を 図 60 に それぞれ示します。

単純なレイアウトの定義例
 1<Tab name="simple" caption="Simple">
 2  <Item name="jrep" caption="Periodic boundary condition">
 3    <Definition valueType="integer" default="0">
 4      <Enumeration value="0" caption="Disabled"/>
 5      <Enumeration value="1" caption="Enabled"/>
 6    </Definition>
 7  </Item>
 8  <Item name="j_wl" caption="Water surface at downstream">
 9    <Definition valueType="integer" default="1">
10      <Enumeration value="0" caption="Constant value"/>
11      <Enumeration value="1" caption="Uniform flow"/>
12      <Enumeration value="2" caption="Read from file"/>
13    </Definition>
14  </Item>
15  <Item name="h_down" caption="   Constant value (m)">
16    <Definition valueType="real" default="0" />
17  </Item>
18  <Item name="j_slope" caption="   Slope for uniform flow">
19    <Definition valueType="integer" default="0">
20      <Enumeration value="0" caption="Calculated from geographic data"/>
21      <Enumeration value="1" caption="Constant value"/>
22    </Definition>
23  </Item>
24  <Item name="bh_slope" caption="   Slope value at downstream">
25    <Definition valueType="real" default="0.001">
26    </Definition>
27  </Item>
28  <Item name="j_upv" caption="Velocity at upstream">
29    <Definition valueType="integer" default="1">
30      <Enumeration value="1" caption="Uniform flow"/>
31      <Enumeration value="2" caption="Calculated from upstream depth"/>
32    </Definition>
33  </Item>
34  <Item name="j_upv_slope" caption="   Slope for uniform flow">
35    <Definition valueType="integer" default="0">
36      <Enumeration value="0" caption="Calculated from geographic data"/>
37      <Enumeration value="1" caption="Constant value"/>
38    </Definition>
39  </Item>
40  <Item name="upv_slope" caption="   Slope value at upstream">
41    <Definition valueType="real" default="0.001">
42    </Definition>
43  </Item>
44</Tab>
_images/layout_simple.png

単純なレイアウトのダイアログの表示例

グループボックスを利用したレイアウト

グループボックスを利用したレイアウトの例を リスト 101 に、ダイアログでの表示例を 図 61 にそれぞれ示します。

GroupBox 要素に Item 要素を入れることで、グループに分けて項目を表示できます。

グループボックスを利用したレイアウトの定義例
 1<Tab name="grouping" caption="Group">
 2  <Item name="g_jrep" caption="Periodic boundary condition">
 3    <Definition valueType="integer" default="0">
 4      <Enumeration value="0" caption="Disabled"/>
 5      <Enumeration value="1" caption="Enabled"/>
 6    </Definition>
 7  </Item>
 8  <GroupBox caption="Water surface at downstream">
 9    <Item name="g_j_wl" caption="Basic Setting">
10      <Definition valueType="integer" default="1">
11        <Enumeration value="0" caption="Constant value"/>
12        <Enumeration value="1" caption="Uniform flow"/>
13        <Enumeration value="2" caption="Read from file"/>
14      </Definition>
15    </Item>
16    <Item name="g_h_down" caption="Constant value (m)">
17      <Definition valueType="real" default="0" />
18    </Item>
19    <Item name="g_j_slope" caption="Slope for uniform flow">
20      <Definition valueType="integer" default="0">
21        <Enumeration value="0" caption="Calculated from geographic data"/>
22        <Enumeration value="1" caption="Constant value"/>
23      </Definition>
24    </Item>
25    <Item name="g_bh_slope" caption="Slope value at downstream">
26      <Definition valueType="real" default="0.001">
27      </Definition>
28    </Item>
29  </GroupBox>
30  <GroupBox caption="Velocity at upstream">
31    <Item name="g_j_upv" caption="Basic Setting">
32      <Definition valueType="integer" default="1">
33        <Enumeration value="1" caption="Uniform flow"/>
34        <Enumeration value="2" caption="Calculated from upstream depth"/>
35      </Definition>
36    </Item>
37    <Item name="g_j_upv_slope" caption="Slope for uniform flow">
38      <Definition valueType="integer" default="0">
39        <Enumeration value="0" caption="Calculated from geographic data"/>
40        <Enumeration value="1" caption="Constant value"/>
41      </Definition>
42    </Item>
43    <Item name="g_upv_slope" caption="Slope value at upstream">
44      <Definition valueType="real" default="0.001">
45      </Definition>
46    </Item>
47  </GroupBox>
48</Tab>
_images/layout_groupboxes.png

グループボックスを利用したレイアウトのダイアログの表示例

自由なレイアウト

GridLayout要素を利用することで、自由なレイアウトを実現した例を リスト 102 に、ダイアログでの表示例を 図 62 にそれぞれ示します。

GridLayout (表形式のレイアウト), HBoxLayout (水平に並べるレイアウト), VBoxLayout(垂直に並べるレイアウト) を使うことで、自由に要素を配置できます。 また、これらのレイアウトの中では Item では caption 属性は指定せず、 Label 要素でラベルを表示します。

GridLayout, HBoxLayout, VBoxLayout は入れ子にできます。 また、その中で GroupBox を利用することもできます。

自由なレイアウトの定義例
 1<Tab name="roughness" caption="Roughness">
 2  <Item name="diam" caption="Diameter of uniform bed material (mm)">
 3    <Definition valueType="real" default="0.55" />
 4  </Item>
 5  <Item name="j_drg" caption="Bed roughness">
 6    <Definition valueType="integer" default="0">
 7      <Enumeration value="0" caption="Calculated from bed material"/>
 8      <Enumeration value="1" caption="Constant value"/>
 9      <Enumeration value="2" caption="Read from file"/>
10    </Definition>
11  </Item>
12  <GroupBox caption="Manning's roughness parameter">
13    <GridLayout>
14      <Label row="0" col="0" caption="Low water channel" />
15      <Item row="1" col="0" name="sn_l">
16        <Definition valueType="real" default="0.01" />
17      </Item>
18      <Label row="0" col="1" caption="Flood channel" />
19      <Item row="1" col="1" name="sn_h">
20        <Definition valueType="real" default="0.01" />
21      </Item>
22      <Label row="0" col="2" caption="Fixed bed" />
23      <Item row="1" col="2" name="sn_f">
24        <Definition valueType="real" default="0.01" />
25      </Item>
26    </GridLayout>
27  </GroupBox>
28  <Item name="snfile" caption="Input file for Manning's roughness">
29    <Definition valueType="filename" default="Select File" />
30  </Item>
31</Tab>
_images/layout_complex.png

自由なレイアウトのを利用したレイアウトのダイアログの表示例

格子属性の定義例

ソルバ定義ファイルでの格子属性の定義例と、それを読み込むための処理の記述例を示します。

実数
定義方法
実数の格子属性の定義例
1<Item name="roughness" caption="Roughness">
2  <Definition valueType="real" position="cell" />
3</Item>
条件の表示例
_images/grid_att_example_real_object_browser.png

セルで定義された実数の条件のオブジェクトブラウザでの表示例

_images/grid_att_example_real_edit_dialog.png

セルで定義された実数の条件の編集ダイアログ表示例

読み込み処理の記述方法
FORTRAN
セルで定義された実数の格子属性を読み込むための処理の記述例 FORTRAN
1integer:: ier, cellcount
2double precision, dimension(:), allocatable:: roughness
3
4! サイズを調べる
5call cg_iRIC_Read_Grid_CellCount(fid, cellcount, ier)
6! メモリを確保
7allocate(roughness(cellcount))
8! 確保したメモリに値を読み込む
9call cg_iRIC_Read_Grid_Real_Cell(fid, "roughness", roughness, ier)
C/C++
セルで定義された実数の格子属性を読み込むための処理の記述例 C++
1int ier, cellcount;
2std::vector<double> roughness;
3
4// サイズを調べる
5ier = cg_iRIC_Read_Grid_CellCount(fid, &cellcount);
6// メモリを確保
7roughness.assign(cellcout, 0);
8// 確保したメモリに値を読み込む
9ier = cg_iRIC_Read_Grid_Real_Cell(fid, "roughness", roughness.data());
Python
セルで定義された実数の格子属性を読み込むための処理の記述例 Python
1roughness = cg_iRIC_Read_Grid_Real_Cell(fid, "roughness")
整数
定義方法
整数の格子属性の定義例
1<Item name="obst" caption="Obstacle">
2  <Definition valueType="integer" position="cell">
3    <Enumeration value="0" caption="Normal cell" />
4    <Enumeration value="1" caption="Obstacle" />
5  </Definition>
6</Item>
条件の表示例
_images/grid_att_example_int_object_browser.png

セルで定義された整数の条件のオブジェクトブラウザでの表示例

_images/grid_att_example_int_edit_dialog.png

セルで定義された整数の条件の編集ダイアログ表示例

読み込み処理の記述方法
FORTRAN
セルで定義された整数の格子属性を読み込むための処理の記述例 FORTRAN
1integer:: ier, cellcount
2integer, dimension(:), allocatable:: obst
3
4! サイズを調べる
5call cg_iRIC_Read_Grid_CellCount(fid, cellcount, ier)
6! メモリを確保
7allocate(roughness(cellcount))
8! 確保したメモリに値を読み込む
9call cg_iRIC_Read_Grid_Integer_Cell(fid, "obst", obst, ier)
C/C++
セルで定義された整数の格子属性を読み込むための処理の記述例 C++
1int ier, cellcount;
2std::vector<int> obst;
3
4// サイズを調べる
5ier = cg_iRIC_Read_Grid_CellCount(fid, &cellcount);
6// メモリを確保
7obst.assign(cellcout, 0);
8// 確保したメモリに値を読み込む
9ier = cg_iRIC_Read_Grid_Integer_Cell(fid, "obst", obst.data());
Python
セルで定義された整数の格子属性を読み込むための処理の記述例 Python
1obst = cg_iRIC_Read_Grid_Integer_Cell(fid, "obst")
複合型
定義方法
複合型の格子属性の定義例
 1<Item name="vegetation" caption="Vagetation">
 2  <Definition valueType="complex" position="cell">
 3    <Item name="type" caption="Type">
 4      <Definition valueType="integer" option="true" default="1">
 5        <Enumerations>
 6          <Enumeration value="0" caption="No vegetation"/>
 7          <Enumeration value="1" caption="Vegetation"/>
 8        </Enumerations>
 9      </Definition>
10    </Item>
11    <Item name="density" caption="Vegetation density">
12      <Definition valueType="real" default="0">
13        <Condition type="isEqual" target="type" value="1"/>
14      </Definition>
15    </Item>
16  </Definition>
17</Item>
条件の表示例
_images/grid_att_example_complex_object_browser.png

セルで定義された複合型の条件のオブジェクトブラウザでの表示例

_images/grid_att_example_complex_edit_dialog.png

セルで定義された複合型の条件の編集ダイアログ表示例

_images/grid_att_example_complex_edit_group.png

セルで定義された複合型のグループ編集画面の表示例

読み込み処理の記述方法
FORTRAN
セルで定義された複合型の格子属性を読み込むための処理の記述例 FORTRAN
 1integer:: ier, cellcount, vegetation_groupcount
 2integer, dimension(:), allocatable:: vegetation
 3integer, dimension(:), allocatable:: vegetation_type
 4double precision, dimension(:), allocatable:: vegetation_density
 5integer:: i
 6
 7! セルの数を調べる
 8call cg_iRIC_Read_Grid_CellCount(fid, cellcount, ier)
 9! メモリを確保
10allocate(roughness(vegetation))
11! 確保したメモリに各セルの値を読み込む
12call cg_iRIC_Read_Grid_Complex_Cell(fid, "vegetation", vegetation, ier)
13
14! グループの数を調べる
15call cg_iRIC_Read_Complex_Count(fid, "vegetation", vegetation_groupcount, ier)
16! メモリを確保
17allocate(vegetation_type(vegetation_groupcount))
18allocate(vegetation_density(vegetation_groupcount))
19! 確保したメモリに値を読み込む
20do i = 1, vegetation_groupcount
21  call cg_iRIC_Read_Complex_Integer(fid, "vegetation", "type", vegetation_type(i), ier)
22  call cg_iRIC_Read_Complex_Real(fid, "vegetation", "density", vegetation_density(i), ier)
23end do
C/C++
セルで定義された複合型の格子属性を読み込むための処理の記述例 C++
 1int ier, cellcount, vegetation_groupcount;
 2std::vector<int> vegetation;
 3std::vector<int> vegetation_type;
 4std::vector<double> vegetation_density;
 5
 6// セルの数を調べる
 7ier = cg_iRIC_Read_Grid_CellCount(fid, &cellcount);
 8// メモリを確保
 9vegetation.assign(cellcount, 0);
10// 確保したメモリに各セルの値を読み込む
11ier = cg_iRIC_Read_Grid_Complex_Cell(fid, "vegetation", vegetation.data());
12
13// グループの数を調べる
14ier = cg_iRIC_Read_Complex_Count(fid, "vegetation", &vegetation_groupcount);
15// メモリを確保
16vegetation_type.assign(vegetation_groupcount, 0);
17vegetation_density.assign(vegetation_groupcount, 0);
18// 確保したメモリに値を読み込む
19for (int i = 0; i < vegetation_groupcount; ++i) {
20  ier = cg_iRIC_Read_Complex_Integer(fid, "vegetation", "type", &vegetation_type[i]);
21  ier = cg_iRIC_Read_Complex_Real(fid, "vegetation", "density", &vegetation_density[i]);
22}
Python
セルで定義された複合型の格子属性を読み込むための処理の記述例 Python
 1# 各セルの値を読み込む
 2vegetation = cg_iRIC_Read_Grid_Complex_Cell(fid, "vegetation")
 3
 4# グループの数を調べる
 5vegetation_groupcount = cg_iRIC_Read_Complex_Count(fid, "vegetation")
 6# リストを用意
 7vegetation_type = list()
 8vegetation_density = list()
 9
10for i in range(vegetation_groupcount):
11  vegetation_type.append(cg_iRIC_Read_Complex_Integer(fid, "vegetation", "type"))
12  vegetation_density.append(cg_iRIC_Read_Complex_Real(fid, "vegetation", "density"))

格子で定義された計算結果の定義例

ソルバ定義ファイルでの格子で定義された計算結果の定義例と、それを出力するための処理の記述例を示します。

実数
定義方法
実数の計算結果の定義例
1<Output name="depth" caption="Depth">
2  <Definition valueType="real" position="node" />
3</Output>
出力処理の記述方法
FORTRAN
格子点で定義された実数の計算結果を出力するための処理の記述例 FORTRAN
1double precision, dimension(:), allocatable:: depth
2
3! メモリを確保
4allocate(depth(nodecount))
5! 出力する値をメモリに書き込む (以下では仮に全て0を出力)
6depth = 0
7! 値を出力する
8call cg_iRIC_Write_Sol_Node_Real(fid, "depth", depth, ier)
C/C++
格子点で定義された実数の計算結果を出力するための処理の記述例 C++
1std::vector<double> depth;
2
3! メモリを確保
4depth.assign(nodecount, 0);
5! 値を出力する
6ier = cg_iRIC_Write_Sol_Node_Real(fid, "depth", depth.data())
Python
格子点で定義された実数の計算結果を出力するための処理の記述例 Python
1import numpy
2
3# メモリを確保
4depth = numpy.zeros(shape=(nodecount,))
5# 値を出力する
6cg_iRIC_Write_Sol_Node_Real(fid, "depth", depth)
整数
定義方法
整数の計算結果の定義例
1<Output name="wet" caption="Wet">
2  <Definition valueType="integer" position="node">
3    <Enumeration value="0" caption="Dry" />
4    <Enumeration value="1" caption="Wet" />
5  </Definition>
6</Output>
出力処理の記述方法
FORTRAN
格子点で定義された整数の計算結果を出力するための処理の記述例 FORTRAN
1integer, dimension(:), allocatable:: wet
2
3! メモリを確保
4allocate(wet(nodecount))
5! 出力する値をメモリに書き込む (以下では仮に全て0を出力)
6wet = 0
7! 値を出力する
8call cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet, ier)
C/C++
格子点で定義された整数の計算結果を出力するための処理の記述例 C++
1std::vector<int> wet;
2
3! メモリを確保
4wet.assign(nodecount, 0);
5! 値を出力する
6ier = cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet.data())
Python
格子点で定義された整数の計算結果を出力するための処理の記述例 Python
1import numpy
2
3# メモリを確保
4depth = numpy.zeros(shape=(nodecount,))
5# 値を出力する
6cg_iRIC_Write_Sol_Node_Integer(fid, "wet", wet)

要素のリファレンス

BoundaryCondition

境界条件の情報を保持します。

BoundaryCondition の定義例
1<BoundaryCondition name="inflow" caption="In flow" position="node">
2  <Item name="discharge" caption="Discharge">
3    <Definition valueType="real" default="0" />
4  </Item>
5</BoundaryCondition>
属性
BoundaryCondition の属性

名前

必須

説明

name

文字列

要素名

caption

文字列

名前 (ダイアログ上に表示される)

position

下の表を参照

定義位置

position の値

意味

node

格子点

cell

セル

edge

格子の辺

子要素
BoundaryCondition の子要素

名前

必須

説明

Item

要素の定義

CalculationCondition

計算条件の情報を保持します。

CalculationCondition の定義例
 1<CalculationCondition>
 2  <Tab name="basic" caption="Basic Setting">
 3
 4    (略)
 5
 6  </Tab>
 7  <Tab name="time" caption="Calculation Time Setting">
 8
 9    (略)
10
11  </Tab>
12</CalculationCondition>
属性

定義できる属性はありません。

子要素
CalculationCondition の子要素

名前

必須

説明

Tab

計算条件ダイアログの各ページの情報を持つ要素。

Condition

計算条件 (もしくは格子生成条件) での入力項目が有効になる場合の 条件の情報を保持します。

Condition の定義例1
1<Condition conditionType="isEqual" target="type" value="1" />
Condition の定義例2
1<Condition conditionType="and">
2  <Condition conditionType="isEqual" target="type" value="1" />
3  <Condition conditionType="isEqual" target="inflow" value="0" />
4</Condition>

例は ????? も参照して下さい。

属性
Condition の属性

名前

必須

説明

conditionType

下の表を参照

条件の種類

target

文字列

比較対象の計算条件の名前。 conditionType が and, or, not の場合に指定する。

value

文字列

比較対象の値。 conditionType が and, or, not の場合に指定する。

conditionType の値

意味

isEqual

等しい

isGreaterEqual

等しいか大きい

isGreaterThan

大きい

isLessEqual

等しいか小さい

isLessThan

小さい

and

and

or

or

not

not

子要素
Condition の子要素

名前

必須

説明

Condition

and, or, not の演算子を適用する対象条件。conditionType 属性 が and, or, not のいずれかの場合のみ指定する。

Definition (計算条件・境界条件・格子生成条件の定義)

計算条件・境界条件・格子生成条件の定義情報を保持します。

Definition の定義例1
1<Definition valueType="integer" default="1" />
Definition の定義例2
1<Definition valueType="integer" default="0" >
2  <Enumeration value="0" caption="Standard" />
3  <Enumeration value="1" caption="Advanced" />
4</Definition>

例は 計算条件・境界条件・格子生成条件の項目の定義と読み込み処理の例 も参照して下さい。

属性
Definition の属性

名前

必須

説明

valueType

下の表を参照

値の種類

default

文字列

デフォルト値

noSort

true もしくは false

テーブルを Param の値でソートしたくない場合は true を指定

cgnsFile

文字列

参照先のCGNSファイルの名前

valueType の値

意味

integer

整数

real

実数

string

文字列

functional

関数型

filename

ファイル名

filename_all

ファイル名。存在しないファイルも選択可能

cgns_filename

CGNSファイル名

foldername

フォルダ名

result_gridNodeInteger

格子点で定義された整数の計算結果の選択

result_gridNodeReal

格子点で定義された実数の計算結果の選択

result_gridCellInteger

格子セルで定義された整数の計算結果の選択

result_gridCellReal

格子セルで定義された実数の計算結果の選択

result_gridEdgeIInteger

I方向のエッジ定義された整数の計算結果の選択

result_gridEdgeIReal

I方向のエッジで定義された実数の計算結果の選択

result_gridEdgeJInteger

J方向のエッジ定義された整数の計算結果の選択

result_gridEdgeJReal

J方向のエッジで定義された実数の計算結果の選択

result_baseIterativeInteger

グローバルな整数の計算結果の選択

result_baseIterativeReal

グローバルな実数の計算結果の選択

complex

複合型

子要素
Definition の子要素

名前

必須

説明

Enumeration

値を選択肢からのみ選べるようにしたい場合に指定する。valueType が integer, real の場合のみ指定できる。

Condition

この条件が、有効になる時の条件を指定する。

Parameter

関数の横軸にする値。valueType が functional の場合のみ指定できる。

Value

関数の縦軸にする値。valueType が functional の場合のみ指定できる。

Definition (格子属性の定義)

計算格子の属性の定義情報を保持します。

Definition の定義例
1<Definition valueType="integer" position="node" default="min" />
属性
Definition の属性

名前

必須

説明

valueType

下の表を参照

値の種類

position

下の表を参照

属性の定義位置

default

文字列

デフォルト値。 "min", "max" を指定すると、地理情報が存在しない領域では最小値、最大値が利用される。

valueType の値

意味

integer

整数

real

実数

complex

複合型

position の値

意味

node

格子点

cell

セル

iface

I方向の格子セルの境界面 (エッジ)

jface

J方向の格子セルの境界面 (エッジ)

子要素
Definition の子要素

名前

必須

説明

Dimension

次元 (例: 時刻) を追加したい場合に指定する。

Enumeration

値を選択肢からのみ選べるようにしたい場合に指定する。

Item

valueType=\"complex\" の場合のみ指定する。ここで定義する Item要素以下の構造は、 BoundaryCondition要素の下の Item要素と同じ。

Definition (計算結果の定義)

計算結果の定義情報を保持します。

Definition の定義例1
1<Definition valueType="real" position="node" />
Definition の定義例2
1<Definition valueType="integer" position="cell" >
2  <Enumeration value="0" caption="Dry" />
3  <Enumeration value="1" caption="Wet" />
4</Definition>

例は 格子で定義された計算結果の定義例 も参照して下さい。

属性
Definition の属性

名前

必須

説明

valueType

下の表を参照

値の種類

position

下の表を参照

定義位置

valueType の値

意味

integer

整数

real

実数

position の値

意味

node

格子点

cell

セル

iface

I方向の格子セルの境界面 (エッジ)

jface

J方向の格子セルの境界面 (エッジ)

particle

パーティクル

polydata

ポリゴン・折れ線

子要素
Definition の子要素

名前

必須

説明

Enumeration

値の選択肢が限られている場合に指定する。valueType が integer の場合のみ指定できる。

Dimension

計算格子属性の次元の定義情報を保持します。

Dimension の定義例
1<Dimension name="Time" caption="Time" valueType="integer" />
属性
Dimension の属性

名前

必須

説明

name

文字列

要素名

caption

文字列

名前 (プリプロセッサ上に表示される)

valueType

下の表を参照

値の種類

valueType の値

意味

integer

整数

real

実数

子要素

定義できる子要素はありません。

Enumeration

計算条件 (もしくは格子生成条件) の項目の選択肢の定義情報を保持します。

Enumeration の定義例
1<Enumeration value="0" caption="Standard" />

Enumeration を使って計算条件を定義した例は 整数 (選択式) を参照して下さい。

属性
Enumeration の属性

名前

必須

説明

value

整数

captionに対応する値

caption

文字列

表示する文字列

子要素

定義できる子要素はありません。

ErrorCode

エラーコードの定義情報を保持します。

ErrorCode の定義例
1<ErrorCode value="1" caption="Grid is data do not exist" />
属性
ErrorCode の属性

名前

必須

説明

value

整数

エラーコード

caption

文字列

表示する文字列

子要素

定義できる子要素はありません。

ErrorCodes

エラーコードのリストを保持します。

ErrorCodes の定義例
1<ErrorCodes>
2  <ErrorCode value="1" caption="Grid is data do not exist" />
3  <ErrorCode value="2" caption="Grid size is too big" />
4</ErrorCodes>
属性

定義できる属性はありません。

子要素
ErrorCodes の子要素

名前

必須

説明

ErrorCode

エラーコード

GridGeneratingCondition

格子生成条件の情報を保持します。

GridGeneratingCondition の定義例
 1<GridGeneratingCondition>
 2  <Tab name="basic" caption="Basic Setting">
 3
 4    (略)
 5
 6  </Tab>
 7  <Tab name="time" caption="Calculation Time Setting">
 8
 9    (略)
10
11  </Tab>
12</GridGeneratingCondition>
属性

定義できる属性はありません。

子要素
GridGeneratingCondition の子要素

名前

必須

説明

Tab

格子生成条件ダイアログの各ページの情報を持つ要素。

GridGeneratorDefinition

格子生成プログラムの定義情報を保持します。

GridGeneratorDefinition の定義例
 1<GridGeneratorDefinition
 2  name="samplecreator"
 3  caption="Sample Grid Creator"
 4  version="1.0"
 5  copyright="Example Company"
 6  executable="generator.exe"
 7  gridtype="structured2d"
 8>
 9  <GridGeneratingCondition>
10    <Tab name="basic" caption="Basic Setting">
11
12      (略)
13
14    </Tab>
15  </GridGeneratingCondition>
16</GridGeneratorDefinition>
属性
GridGeneratorDefinition の属性

名前

必須

説明

name

文字列

格子生成プログラムの識別名 (英数字のみ)

caption

文字列

格子生成プログラムの名前 (任意の文字を利用可能)

version

文字列

バージョン番号。\"1.0\", \"1.3.2\" などの型式で

copyright

文字列

著作権者の名前。基本的に英語で記述

release

文字列

リリース日。\"2010.01.01\" などの型式で

homepage

文字列

格子生成プログラム情報を示す Web ページの URL

executable

文字列

実行プログラムのファイル名 (例: GridGen.exe)

gridtype

下の表を参照

生成する格子の種類

gridType の値

意味

structured2d

2次元構造格子

unstructured2d

2次元非構造格子

子要素
GridGeneratingCondition の子要素

名前

必須

説明

GridGeneratingCondition

格子生成条件

ErrorCodes

エラーコードのリスト

GridLayout

計算条件 (もしくは格子生成条件) の入力ダイアログに表示する格子状のレイアウトの定義情報を保持します。

GridLayout の定義例は 自由なレイアウト を参照して下さい。

属性

定義できる属性はありません。

子要素
GridLayout の子要素

名前

必須

説明

Item, VBoxLayout など

レイアウト内に表示する要素や子レイアウトの定義

GridRelatedCondition

格子属性の定義情報のリストを保持します。

GridRelatedCondition の定義例
1<GridRelatedCondition>
2  <Item name="Elevation" caption="Elevation(m)">
3    <Definition valueType="real" position="node" default="max" />
4  </Item>
5</GridRelatedCondition>
属性

定義できる属性はありません。

子要素
GridRelatedCondition の子要素

名前

必須

説明

Item

格子属性

GridType

入力格子の定義情報を保持します。

リスト 25 を参照して下さい。

属性
GridType の属性

名前

必須

説明

gridtype

下の表を参照

格子の種類

multiple

true or false

複数の格子を生成できるなら true

gridtype の値

意味

1d

1次元格子

1.5d

1.5次元格子

1.5d_withcrosssection

横断データを持つ1.5次元格子

structured2d

2次元構造格子

unstructured2d

2次元非構造格子

子要素
GridType の子要素

名前

必須

説明

GridRelatedCondition

格子属性

GridTypes

入力格子の定義情報のリストを保持します。

リスト 25 を参照して下さい。

属性

定義できる属性はありません。

子要素
GridTypes の子要素

名前

必須

説明

GridType

格子の種類

GroupBox

計算条件 (もしくは格子生成条件) の入力ダイアログに表示するグループボックスの定義情報を保持します。

GroupBox の定義例
1<GroupBox caption="Time">
2  <Item name="stime" caption="Start Time">
3    <Definition valueType="real" />
4  </Item>
5  <Item name="etime" caption="End Time">
6    <Definition valueType="real" />
7  </Item>
8</GroupBox>

GroupBox の定義例は グループボックスを利用したレイアウト も参照して下さい。

属性
GroupBox の属性

名前

必須

説明

caption

文字列

表示する文字列

子要素
GroupBox の子要素

名前

必須

説明

Item, VBoxLayout など

グループボックス内に表示する要素やレイアウトの定義

HBoxLayout

計算条件 (もしくは格子生成条件) の入力ダイアログに表示する水平に並べるレイアウトの定義情報を保持します。

HBoxLayout の定義例
 1<HBoxLayout>
 2  <Item name="stime" caption="Start Time">
 3
 4    (略)
 5
 6  </Item>
 7  <Item name="etime" caption="End Time">
 8
 9    (略)
10
11  </Item>
12</HBoxLayout>
属性

定義できる属性はありません。

子要素
HBoxLayout の子要素

名前

必須

説明

Item, VBoxLayout など

レイアウト内に表示する要素や子レイアウトの定義

Item

計算条件 (もしくは格子生成条件) の入力項目、計算格子の属性、境界条件の定義情報を保持します。

Item の定義例
1<Item name="stime" caption="Start Time">
2  <Definition valueType="real" default="0" />
3</Item>

定義例は 計算条件・境界条件・格子生成条件の項目の定義と読み込み処理の例 も参照して下さい。

属性
Item の属性

名前

必須

説明

name

文字列

要素名

caption

文字列

名前 (ダイアログ上に表示される)

子要素
Item の子要素

名前

必須

説明

Definition

要素の定義

Label

計算条件 (もしくは格子生成条件) の入力ダイアログに表示するラベルの定義情報を保持します。

Label の定義例
1<Label caption="Start Time" />

定義例は 自由なレイアウト も参照して下さい。

属性
Label の属性

名前

必須

説明

caption

文字列

名前 (ダイアログ上に表示される)

子要素

定義できる子要素はありません。

Output

計算結果の出力値の定義情報を保持します。

Output の定義例
1<Output name="depth" caption="Depth">
2  <Definition valueType="real" position="node" />
3</Output>

定義例は 格子で定義された計算結果の定義例 も参照して下さい。

属性
Output の属性

名前

必須

説明

name

文字列

要素名

caption

文字列

o

名前 (オブジェクトブラウザや可視化ウィンドウに表示される)

子要素
Output の子要素

名前

必須

説明

Definition

要素の定義

ColorMapSetting

デフォルトのカラーマップ設定 (実数値の場合)

EnumerateColorMapSetting

デフォルトのカラーマップ設定 (整数値の場合)

Parameter

計算条件 (もしくは格子生成条件) の入力ダイアログに表示するラベルの定義情報を保持します。

Parameter の定義例
1<Parameter caption="Time" valueType="real" />

定義例は 関数型 も参照して下さい。

属性
Parameter の属性

名前

必須

説明

caption

文字列

表示する文字列

valueType

下の表を参照

データ型

axislog

true or false

横軸を対数軸にするなら true

子要素

定義できる子要素はありません。

SolverDefinition

ソルバーの定義情報を保持します。

SolverDefinition の定義例
 1<SolverDefinition
 2  name="samplesolver"
 3  caption="Sample Solver 1.0"
 4  version="1.0"
 5  copyright="Example Company"
 6  release="2012.04.01"
 7  homepage="http://example.com/"
 8  executable="solver.exe"
 9  iterationtype="time"
10  gridtype="structured2d"
11>
12  <CalculationCondition>
13
14    (略)
15
16  </CalculationCondition>
17  <GridRelatedCondition>
18
19    (略)
20
21  </GridRelatedCondition>
22</SolverDefinition>
属性
SolverDefinition の属性

名前

必須

説明

name

文字列

ソルバーの識別名 (英数字のみ)

caption

文字列

ソルバーの名前 (任意の文字を利用可能)

version

文字列

バージョン番号。\"1.0\", \"1.3.2\" などの型式で

copyright

文字列

著作権者の名前。基本的に英語で記述

release

文字列

リリース日。\"2010.01.01\" などの型式で

homepage

文字列

ソルバー情報を示す Web ページの URL

executable

文字列

実行プログラムのファイル名 (例: GridGen.exe)

iterationtype

下の表を参照

計算結果出力の単位

gridtype

下の表を参照

生成する格子の種類

multiple

true or false

複数の格子を生成できるなら true

iterationtype の値

意味

time

時間ごとの結果を出力

iteration

イテレーションごとの結果を出力。

gridtype の値

意味

1d

1次元格子

1.5d

1.5次元格子

1.5d_withcrosssection

横断データを持つ1.5次元格子

structured2d

2次元構造格子

unstructured2d

2次元非構造格子

ソルバーのバージョンアップを行う時は、 version 属性を変更します。 ソルバーのバージョンアップ時の注意点については、 ソルバーのバージョンアップ時の注意点 を参照して下さい。

子要素
SolverDefinition の子要素

名前

必須

説明

CalculationCondition

計算条件

GridRelatedCondition

1種類の入力格子を利用する場合のみ定義する

GridTypes

2種類以上の入力格子を利用する場合のみ定義する

Tab

計算条件 (もしくは格子生成条件) 設定ダイアログの、ページの定義情報を保持します。

Tab の定義例
 1<Tab caption="Basic Setting">
 2  <Item name="stime" caption="Start Time">
 3
 4    (略)
 5
 6  </Item>
 7  <Item name="etime" caption="End Time">
 8
 9    (略)
10
11  </Item>
12</Tab>
属性
Tab の属性

名前

必須

説明

caption

文字列

表示する文字列

子要素
Tab の子要素

名前

必須

説明

Item, GroupBoxなど

このページに表示する計算条件 (もしくは格子生成条件) の定義

Value

関数型の計算条件 (もしくは格子生成条件) 、格子属性、境界条件の値の定義情報を保持します。

Value の定義例
1<value caption="Discharge" valueType="real" />

定義例は 関数型 も参照して下さい。

属性
Value の属性

名前

必須

説明

caption

文字列

表示する文字列

valueType

下の表を参照

データ型

name

文字列

識別名 (英数字のみ)。複数の値を持つ関数型条件の場合のみ指定する。

axis

下の表を参照

設定ダイアログでのY軸

axislog

true or false

縦軸を対数軸にするなら true

axisreverse

true or false

Y軸を上下逆転するなら true

span

true or false

値を区間ごとに定義するなら true

step

true or false

グラフを棒グラフとして表示するなら true

hide

true or false

設定ダイアログのグラフに表示しない場合は true

valueType の値

意味

integer

整数

real

実数

axis の値

意味

left

左側のY軸を利用

right

右側のY軸を利用

子要素

定義できる子要素はありません。

VBoxLayout

計算条件 (もしくは格子生成条件) の入力ダイアログに表示する垂直に並べるレイアウトの定義情報を保持します。

VBoxLayout の定義例
 1<VBoxLayout>
 2  <Item name="stime" caption="Start Time">
 3
 4    (略)
 5
 6  </Item>
 7  <Item name="etime" caption="End Time">
 8
 9    (略)
10
11  </Item>
12</VBoxLayout>
属性

定義できる属性はありません。

子要素
VBoxLayout の子要素

名前

必須

説明

Item, VBoxLayout など

レイアウト内に表示する要素や子レイアウトの定義

ソルバーのバージョンアップ時の注意点

ソルバーをバージョンアップする際は、ソルバーそのものを改変するとともに、ソルバー定義ファイルを更新する必要があります。 ソルバー定義ファイルを更新する際の注意点について、以下に示します。

  • SolverDefinition 要素の name 属性は編集しないでください。 name 属性が異なると、iRIC は別のソルバーとみなし、過去のソルバー用に作成したプロジェクトファイルは 読み込めなくなります。

  • SolverDefinition 要素の caption属性を変更してください。caption 属性は、ソルバーの名前とバージョンの情報を保持する任意の文字列ですので、例えば "Sample Solver 1.0"、"Sample Solver 3.2 Beta", "Sample Solver 3.0 RC1" など任意の形式でバージョンを記述できます。下で示す version 属性とは独立に設定できます。

  • SolverDefinition 要素の version 属性を、 表 62 のポリシーに従って変更して下さい。

なお、バージョン番号は、例えば "3.1.4" などのように、 "." で区切られた番号から 構成されます。先頭から順に "メジャー番号"、 "マイナー番号"、 "修正番号" と呼びます。 修正番号は省略可能です。

更新するバージョン番号の構成要素

更新する要素

更新する条件

メジャー番号

入力する格子・計算条件が過去のものと全く互換性のなくなる、大きな変更を行った場合

2.1 --> 3.0

マイナー番号

入力する格子・計算条件に項目を追加したが、入力されなかった場合はデフォルト値で実行すれば問題ない変更を行った場合

2.1 --> 2.2

修正番号

入力する格子・計算条件には全く変更がなく、内部のアルゴリズムの変更やバグの修正のみを行った場合

2.1 --> 2.1.1

なお、バージョン番号が異なるプロジェクトファイルの互換性については、iRIC では以下のように扱われます。

  • メジャー番号が異なるソルバーのプロジェクトファイルは、互換性がない。

  • マイナー番号が異なるだけのソルバーのプロジェクトファイルは、より古いものであれば互換性がある。

  • 修正番号が異なるだけのソルバーのプロジェクトファイルは、常に互換性がある。

ソルバーとプロジェクトファイルのバージョン番号と、互換性の例を 図 70 に示します。

_images/version_compatibility.png

ソルバー・プロジェクトファイルのバージョン番号と互換性の例

バージョン番号の増やし方の基本方針は 表 62 で示したとおりですが、最終的には、プロジェクトファイルの互換性を考慮して ソルバー開発者の方がご判断ください。

また、同一のソルバーの異なるバージョンを、同じ環境に混在させたい場合は、 solvers フォルダの下に、異なる名前でフォルダを作成し、その中にそれぞれ異なる バージョンのソルバーを配置することができます。 フォルダの名前は、ソルバーの名前とは独立につけることができます。

XML の基礎

この節では、iRIC でソルバー定義ファイル、格子生成プログラム定義ファイルに 用いられているXMLという言語の基礎について説明します。

要素の書き方

要素の開始は、要素名を "<" と ">" で囲って記述します。

要素の終了は、要素名を "</" と ">" で囲って記述します。

Item 要素の記述例を リスト 149 に示します。

要素の記述例
<Item>

</Item>

要素は、以下を持つことができます。

  • 子要素

  • 属性

要素は、同じ名前の子要素を複数持つことができます。 一方、属性は同じ名前の属性は1つしか持てません。 子要素 SubItem と、属性 name を持つ Item 要素の記述例を リスト 150 に示します。

要素の記述例
<Item name="sample">
  <SubItem>
  </SubItem>

  <SubItem>
  </SubItem>
</Item>

また、子要素を持たない要素は "<要素名 />" という形式で記述できます。例えば、 リスト 151, リスト 152 の要素は、読み込まれると同じデータとして処理されます。

子要素を持たない要素の記述例
<Item name="sample">

</Item>
子要素を持たない要素の記述例
<Item name="sample" />

タブ、スペース、改行について

XML では、タブ、スペース、改行は無視されますので、XML を読みやすくするために自由に追加できます。ただし、 属性の値の中のスペースなどは無視されません。

リスト 153, リスト 154, リスト 155 の要素は、 読み込まれるとすべて同じデータとして処理されます。

要素の記述例
<Item name="sample">
  <SubItem>
  </SubItem>
</Item>
要素の記述例
<Item
  name="sample"
>
  <SubItem></SubItem>
</Item>
要素の記述例
<Item name="sample"><SubItem></SubItem></Item>

コメントの書き方

XML では、"<!--" と "-->" で囲まれた間がコメントになります。 リスト 156 にコメントの記述例を示します。

コメントの記述例
<!-- この部分はコメントになります。-->
<Item name="sample">
  <SubItem>
  </SubItem>
</Item>

iRIClibについて

iRIClib とは

iRIClib は、ソルバー、格子生成プログラムをiRICと連携させるためのライブラリです。

iRIC は、ソルバー、格子生成プログラムとの情報の入出力に使う計算データファイル、 格子生成データファイルに CGNS ファイルを利用しています。 CGNS ファイルの入出力関数群は cgnslib というライブラリとしてオープンソースで公開されています (CGNS ファイル、 CGNSライブラリに関する情報 参照)。 しかし、 cgnslib を直接利用して必要な入出力を記述すると、煩雑な処理を 記述する必要があります。

そこで、iRIC プロジェクトでは iRIC に対応するソルバーでよく利用する入出力処理を 簡便に記述するためのラッパー関数を提供するライブラリとして、iRIClib を用意しています。 単一の構造格子を用いて計算を行うソルバーと、格子生成プログラムの入出力処理は、 iRIClibで用意された関数を利用することで簡単に記述できます。

なお、複数の格子や非構造格子を使うソルバーなどで必要な関数は iRIClib では提供されません。そのようなソルバーでは、cgnslib で用意された関数を直接利用する必要があります。

この文書では、iRIClibを構成する関数群と利用例及びコンパイル方法について説明します。

利用可能な言語

iRIClib は、以下の言語から利用することができます。

  • FORTRAN

  • C/C++

  • Python

マニュアルでは、FORTRAN から利用する場合の例を主に記載しています。

ここでは、FORTRAN, C/C++, Python から iRIClib を利用する方法の概要について 説明します。

なお、関数を呼び出す際の引数などは、言語によって異なります。言語ごとの関数の呼び出し方法については、 リファレンス の各関数の解説を参照してください。

FORTRAN

リスト 157 に示すように、ヘッダファイルを読み込んだ上で、 iRIClib の関数を呼び出します。

FORTRAN から iRIClibを利用するための記述例
1use iric
2
3call cg_iric_open(filename, mode, fid, ier)

C/C++

リスト 158 に示すように、ヘッダファイルを読み込んだ上で、 iRIClib の関数を呼び出します。

C/C++ から iRIClibを利用するための記述例
1#include "iriclib.h"
2
3// (中略)
4ier = cg_iRIC_Open(filename, mode, &fid);

Python

リスト 159 に示すように、iric モジュールから 関数を読み込んだ上で、iRIClib の関数を呼び出します。

Python から iRIClibを利用するための記述例
1from iric import *
2
3fid = cg_iRIC_Open(filename, mode)

この章の読み方

概要 で、iRIC がソルバー、格子生成プログラムについて想定している入出力処理と、 その処理のために用意している関数についてを説明します。

まずは、概要 を読んで iRIClib の概要についてご理解ください。 概要を理解したら、関数の引数のリストなどの詳細な情報は リファレンス を参照してください。

概要

この節では、iRIClibの概要について説明します。

プログラムの処理とiRIClibの関数

ソルバー、格子生成プログラムで必要な入出力処理を 表 63表 64 に示します。

ソルバーの入出力処理

処理内容

CGNS ファイルを開く

オプションの設定

計算条件の読み込み

計算格子の読み込み

境界条件の読み込み

地形データの読み込み (必要な場合のみ)

計算格子の出力 (格子の生成、再分割を行う場合のみ)

時刻 (もしくはループ回数) の出力

計算格子の出力 (移動格子の場合のみ)

計算結果の出力

CGNSファイルを閉じる

格子生成プログラムの入出力処理

処理内容

CGNS ファイルを開く

格子生成条件の読み込み

エラーコードの出力

格子の出力

CGNSファイルを閉じる

CGNS ファイルを開く

CGNSファイルを開き、読み込み、書き込みができる状態にします。

書き込みを行う場合には mode として IRIC_MODE_MODIFY を指定します。

読み込み専用の場合には mode として iRIC_MODE_READ を指定します。

利用する関数

関数

備考

cg_iric_open

CGNSファイルを開く。

オプションの設定

ソルバーのオプションの設定を行います。 現在指定できるオプションを、以下に示します。

  • IRIC_OPTION_CANCEL: iric_check_cancel を利用してキャンセルを検知します。

利用する関数

関数

備考

iric_initoption

ソルバーのオプションを設定する

計算結果の削除

CGNSファイルから計算結果を削除します。

利用する関数

関数

備考

cg_iric_clear_sol

計算結果を削除する

注釈

iRIC GUI からソルバを実行する場合は、iRIC GUI がソルバの実行を開始する前に 計算結果の削除を行うため、必ずしもこの関数を実行しなくても問題は起きません。

iRIC GUI の外側で、同じCGNSファイルを入力として何度もソルバを起動して 計算を実行する場合などは、忘れずにこの処理を実行するようにして下さい。

計算条件 (もしくは格子生成条件) の読み込み

CGNSファイルから、計算条件 (もしくは格子生成条件) を読み込みます。

利用する関数

関数

備考

cg_iric_read_integer

整数の条件を読み込む

cg_iric_read_real

倍精度実数の条件を読み込む

cg_iric_read_realsingle

単精度実数の条件を読み込む

cg_iric_read_string

文字列の条件を読み込む

cg_iric_read_functionalsize

関数型の条件のサイズを調べる

cg_iric_read_functional

倍精度実数の関数型の条件を読み込む

cg_iric_read_functional_realsingle

単精度実数の関数型の条件を読み込む

cg_iric_read_functionalwithname

値を複数持つ倍精度実数の関数型の条件を読み込む

関数型以外の条件については、一つの関数で一つの条件を読み込むことができます。 整数の計算条件を読み込む処理の例を リスト 160 に示します。

整数型の計算条件を読み込む処理の記述例
 1program Sample1
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, i_flow
 6
 7  ! CGNS ファイルのオープン
 8  call cg_iric_open('test.cgn', IRIC_MODE_MODIFY, fin, ier)
 9  if (ier /=0) STOP "*** Open error of CGNS file ***"
10
11  call cg_iric_read_integer(fin, 'i_flow', i_flow, ier)
12  print *, i_flow;
13
14  ! CGNS ファイルのクローズ
15  call cg_iric_close(fin, ier)
16  stop
17end program Sample1

一方、関数型の計算条件では、cg_iric_read_functionalsize_f, cg_iric_read_functional_f の 二つの関数を利用する必要があります。関数型の計算条件を読み込む処理の例を リスト 161 に示します。

関数型の計算条件を読み込む処理の記述例
 1program Sample2
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, discharge_size, i
 6  double precision, dimension(:), allocatable:: discharge_time, discharge_value  ! discharge の時刻と値を保持する配列
 7
 8  ! CGNS ファイルのオープン
 9  call cg_iric_open('test.cgn', IRIC_MODE_MODIFY, fin, ier)
10  if (ier /=0) STOP "*** Open error of CGNS file ***"
11
12  ! まず、関数型の入力条件のサイズを調べる
13  call cg_iric_read_functionalsize(fin, 'discharge', discharge_size, ier)
14  ! メモリを確保
15  allocate(discharge_time(discharge_size), discharge_value(discharge_size))
16  ! 確保したメモリに値を読み込む
17  call cg_iric_read_functional(fin, 'discharge', discharge_time, discharge_value, ier)
18
19  ! (出力)
20  if (ier ==0) then
21    print *, 'discharge: discharge_size=', discharge_size
22    do i = 1, min(discharge_size, 5)
23      print *, ' i,time,value:', i, discharge_time(i), discharge_value(i)
24    end do
25  end if
26
27  ! allocate で確保したメモリを開放
28  deallocate(discharge_time, discharge_value)
29
30  ! CGNS ファイルのクローズ
31  call cg_iric_close(fin, ier)
32  stop
33end program Sample2

計算条件 (もしくは 格子生成条件) の種類別の読み込み処理の記述例については、 計算条件・境界条件・格子生成条件の項目の定義と読み込み処理の例 を参照してください。

計算格子の読み込み

CGNSファイルから、計算格子を読み込みます。iRIClib では、構造格子の読み込みの関数のみ提供します。

利用する関数

関数

備考

cg_iric_read_grid2d_str_size

2次元構造格子のサイズを読み込む

cg_iric_read_grid2d_coords

2次元構造格子を読み込む

cg_iric_read_grid_nodecount

2次元非構造格子の格子点の数を読み込む

cg_iric_read_grid_cellcount

2次元非構造格子の格子セルの数を読み込む

cg_iric_read_grid_triangleelements

2次元非構造格子の三角形の頂点IDのリストを読み込む

cg_iric_read_grid_integer_node

格子点で定義された整数の属性を読み込む

cg_iric_read_grid_real_node

格子点で定義された倍精度実数の属性を読み込む

cg_iric_read_grid_integer_cell

セルで定義された整数の属性を読み込む

cg_iric_read_grid_real_cell

セルで定義された倍精度実数の属性を読み込む

cg_iric_read_complex_count

複合型の属性のグループの数を読み込む

cg_iric_read_complex_integer

複合型の属性の整数の条件を読み込む

cg_iric_read_complex_real

複合型の属性の倍精度実数の条件を読み込む

cg_iric_read_complex_realsingle

複合型の属性の単精度実数の条件を読み込む

cg_iric_read_complex_string

複合型の属性の文字列の条件を読み込む

cg_iric_read_complex_functionalsize

複合型の属性の関数型の条件のサイズを調べる

cg_iric_read_complex_functional

複合型の属性の倍精度実数の関数型の条件を読み込む

cg_iric_read_complex_functionalwithname

複合型の属性の単精度実数の関数型の条件を読み込む

cg_iric_read_complex_functional_realsingle

複合型の属性の値を複数持つ倍精度実数の関数型の条件を読み込む

cg_iric_read_grid_complex_node

格子点で定義された複合型の属性を読み込む

cg_iric_read_grid_complex_cell

セルで定義された複合型の属性を読み込む

cg_iric_read_grid_functionaltimesize

次元「時刻」(Time) を持つ格子属性の、時刻の数を調べる

cg_iric_read_grid_functionaltime

次元「時刻」(Time)の値を読み込む

cg_iric_read_grid_functionaldimensionsize

次元の数を調べる

cg_iric_read_grid_functionaldimension_integer

整数の次元の値を読み込む

cg_iric_read_grid_functionaldimension_real

倍精度実数の次元の値を読み込む

cg_iric_read_grid_functional_integer_node

次元「時刻」を持つ、格子点で定義された整数の属性を読み込む

cg_iric_read_grid_functional_real_node

次元「時刻」を持つ、格子点で定義された倍精度実数の属性を読み込む

cg_iric_read_grid_functional_integer_cell

次元「時刻」を持つ、セルで定義された整数の属性を読み込む

cg_iric_read_grid_functional_real_cell

次元「時刻」を持つ、セルで定義された倍精度実数の属性を読み込む

cg_iric_read_grid_integer_node など属性読み込み用の関数は、 2次元構造格子、3次元構造格子で共通で利用することができます。 2次元構造格子を読み込む処理の記述例を リスト 162 に示します。

2次元格子を読み込む処理の記述例
 1program Sample3
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, discharge_size, i, j
 6  integer:: isize, jsize
 7  double precision, dimension(:,:), allocatable:: grid_x, grid_y
 8  double precision, dimension(:,:), allocatable:: elevation
 9  integer, dimension(:,:), allocatable:: obstacle
10  integer:: rain_timeid
11  integer:: rain_timesize
12  double precision, dimension(:), allocatable:: rain_time
13  double precision, dimension(:,:), allocatable:: rain
14
15  ! CGNS ファイルのオープン
16  call cg_iric_open('test.cgn', IRIC_MODE_MODIFY, fin, ier)
17  if (ier /=0) STOP "*** Open error of CGNS file ***"
18
19  ! 格子のサイズを調べる
20  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
21
22  ! 格子を読み込むためのメモリを確保
23  allocate(grid_x(isize,jsize), grid_y(isize,jsize))
24  ! 格子を読み込む
25  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
26
27  if (ier /=0) STOP "*** No grid data ***"
28  ! (出力)
29  print *, 'grid x,y: isize, jsize=', isize, jsize
30  do i = 1, min(isize,5)
31    do j = 1, min(jsize,5)
32      print *, ' (',i,',',j,')=(',grid_x(i,j),',',grid_y(i,j),')'
33    end do
34  end do
35
36  ! 格子点で定義された属性 elevation のメモリを確保
37  allocate(elevation(isize, jsize))
38  ! 属性を読み込む
39  call cg_iric_read_grid_real_node(fin, 'Elevation', elevation, ier)
40  print *, 'Elevation: isize, jsize=', isize, jsize
41  do i = 1, min(isize,5)
42    do j = 1, min(jsize,5)
43      print *, ' (',i,',',j,')=(',elevation(i,j),')'
44    end do
45  end do
46
47  ! セルで定義された属性 obstacle のメモリを確保。セルの属性なのでサイズは (isize-1) * (jsize-1)
48  allocate(obstacle(isize-1, jsize-1))
49  ! 属性を読み込む
50  call cg_iric_read_grid_integer_cell(fin, 'Obstacle', obstacle, ier)
51  print *, 'Obstacle: isize -1, jsize-1=', isize-1, jsize-1
52  do i = 1, min(isize-1,5)
53    do j = 1, min(jsize-1,5)
54      print *, ' (',i,',',j,')=(',obstacle(i,j),')'
55    end do
56  end do
57  ! Rain の時刻の数を読み込む
58  call cg_iric_read_grid_functionaltimesize(fin, 'Rain', rain_timesize);
59  ! Rain の時刻を読み込むメモリを確保。
60  allocate(rain_time(rain_timesize))
61
62  ! セルで定義された属性 rain のメモリを確保。セルの属性なのでサイズは (isize-1) * (jsize-1)
63  allocate(rain(isize-1, jsize-1))
64  ! Time = 1 での属性を読み込む
65  rain_timeid = 1
66  call cg_iric_read_grid_functional_real_cell(fin, 'Rain', rain_timeid, rain, ier)
67  print *, 'Rain: isize -1, jsize-1=', isize-1, jsize-1
68  do i = 1, min(isize-1,5)
69    do j = 1, min(jsize-1,5)
70      print *, ' (',i,',',j,')=(',rain(i,j),')'
71    end do
72  end do
73
74  ! allocate で確保したメモリを開放
75  deallocate(grid_x, grid_y, elevation, obstacle, rain_time, rain)
76
77  ! CGNS ファイルのクローズ
78  call cg_iric_close(fin, ier)
79  stop
80end program Sample3

境界条件の読み込み

CGNSファイルから、境界条件を読み込みます。

利用する関数

関数

備考

cg_iric_read_bc_count

境界条件の数を取得する

cg_iric_read_bc_indicessize

境界条件の設定された要素 (格子点もしくはセル) の数を取得する

cg_iric_read_bc_indices

境界条件の設定された要素 (格子点もしくはセル) のインデックスの配列を取得する

cg_iric_read_bc_integer

整数型境界条件の値を取得する

cg_iric_read_bc_real

実数(倍精度)境界条件の値を取得する

cg_iric_read_bc_realsingle

実数(単精度)境界条件の値を取得する

cg_iric_read_bc_string

文字列型境界条件の値を取得する

cg_iric_read_bc_functionalsize

関数型境界条件のサイズを取得する

cg_iric_read_bc_functional

倍精度実数の関数型境界条件の値を取得する

cg_iric_read_bc_functionalwithname

単精度実数の関数型境界条件の値を取得する

同じ種類の境界条件を、1つの格子に複数定義することができます。 例えば、流入口を一つの格子に複数定義し、流入量をそれぞれ独立に与えることができます。

境界条件を読み込む処理の記述例を リスト 163 に示します。 この例では、流入口 (Inflow) の数を cg_iric_read_bc_count で調べ、 必要なメモリを確保してから境界条件の設定情報を読み込んでいます。 なお、GUIで指定した境界条件の名前は cg_iric_read_bc_string で読み込めます。

境界条件を読み込む処理の記述例
 1program Sample8
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize, ksize, i, j, k, aret
 6  integer:: condid, indexid
 7  integer:: condcount, indexlenmax, funcsizemax
 8  integer:: tmplen
 9  integer, dimension(:), allocatable:: condindexlen
10  integer, dimension(:,:,:), allocatable:: condindices
11  integer, dimension(:), allocatable:: intparam
12  double precision, dimension(:), allocatable:: realparam
13  character(len=200), dimension(:), allocatable:: stringparam
14  character(len=200):: tmpstr
15  integer, dimension(:), allocatable:: func_size
16  double precision, dimension(:,:), allocatable:: func_param;
17  double precision, dimension(:,:), allocatable:: func_value;
18
19  ! CGNS ファイルのオープン
20  call cg_iric_open('bctest.cgn', IRIC_MODE_MODIFY, fin, ier)
21  if (ier /=0) STOP "*** Open error of CGNS file ***"
22
23  ! 流入口の数を取得する
24  call cg_iric_read_bc_count(fin, 'inflow', condcount)
25  ! 流入口の数に従って、パラメータの保存用のメモリを確保する。
26  allocate(condindexlen(condcount), intparam(condcount), realparam(condcount))
27  allocate(stringparam(condcount), func_size(condcount))
28  print *, 'condcount ', condcount
29
30  ! 境界条件が設定された格子点の数と、関数型の境界条件の最大サイズを調べる
31  indexlenmax = 0
32  funcsizemax = 0
33  do condid = 1, condcount
34    call cg_iric_read_bc_indicessize(fin, 'inflow', condid, condindexlen(condid), ier)
35    if (indexlenmax < condindexlen(condid)) then
36      indexlenmax = condindexlen(condid)
37    end if
38    call cg_iric_read_bc_functionalsize(fin, 'inflow', condid, 'funcparam', func_size(condid), ier);
39    if (funcsizemax < func_size(condid)) then
40      funcsizemax = func_size(condid)
41    end if
42  end do
43
44  ! 格子点のインデックス格納用の配列と、関数型境界条件の格納用変数のメモリを確保
45  allocate(condindices(condcount, 2, indexlenmax))
46  allocate(func_param(condcount, funcsizemax), func_value(condcount, funcsizemax))
47  ! インデックスと、境界条件 を読み込み
48  do condid = 1, condcount
49    call cg_iric_read_bc_indices(fin, 'inflow', condid, condindices(condid:condid,:,:), ier)
50    call cg_iric_read_bc_integer(fin, 'inflow', condid, 'intparam', intparam(condid:condid), ier)
51    call cg_iric_read_bc_real(fin, 'inflow', condid, 'realparam', realparam(condid:condid), ier)
52    call cg_iric_read_bc_string(fin, 'inflow', condid, 'stringparam', tmpstr, ier)
53    stringparam(condid) = tmpstr
54    call cg_iric_read_bc_functional(fin, 'inflow', condid, 'funcparam', func_param(condid:condid,:), func_value(condid:condid,:), ier)
55  end do
56
57  ! 読み込まれた境界条件を表示
58  do condid = 1, condcount
59    do indexid = 1, condindexlen(condid)
60      print *, 'condindices ', condindices(condid:condid,:,indexid:indexid)
61    end do
62    print *, 'intparam ', intparam(condid:condid)
63    print *, 'realparam ', realparam(condid:condid)
64    print *, 'stringparam ', stringparam(condid)
65    print *, 'funcparam X ', func_param(condid:condid, 1:func_size(condid))
66    print *, 'funcparam Y ', func_value(condid:condid, 1:func_size(condid))
67  end do
68
69  ! CGNS ファイルのクローズ
70  call cg_iric_close(fin, ier)
71  stop
72end program Sample8

格子の調査処理

格子を開き、格子のセルの面積の計算、特定の座標を含むセルの探索などを行います。調査が終わったら、格子を閉じます。

このグループの関数は、CGNS ファイルに含まれている格子が構造格子の場合と非構造格子の場合どちらでも使用できます。 格子の調査処理の手順は、以下の通りになります。

  1. CGNS ファイルに含まれる格子を開き、ハンドルを取得します。

  2. ハンドルを引数として渡し、格子について調査の処理を実行します。

  3. 使い終わったら、ハンドルを渡して格子を閉じます。

利用する関数

関数

備考

cg_iric_read_grid2d_open

格子を開く

cg_iric_read_sol_grid2d_open

計算結果の格子を開く

cg_iric_read_grid2d_close

格子を閉じる

cg_iric_read_grid2d_cellarea

格子のセルの面積を計算して返す

cg_iric_read_grid2d_findcell

指定した座標を含むセルのIDを返す

cg_iric_read_grid2d_cellnodecount

指定したセルを構成する頂点の数を返す

cg_iric_read_grid2d_interpolate

指定した位置での値を、格子での値を使って補間して計算するための情報を返す

cg_iric_read_grid2d_interpolatewithcell

指定した位置での値を、格子での値を使って補間して計算するための情報を返す

格子の調査処理の記述例を リスト 164 に示します。

格子の調査処理の記述例
 1program TestX
 2  use iric
 3  implicit none
 4
 5  integer:: i, ok
 6  integer:: fin, g_handle, ier
 7  integer:: nodecount, cellnodecount,
 8  double precision: area
 9  double precision, dimension(:), allocatable:: depth
10  integer, dimension(4):: nodeid_arr
11  double precision:: depth_interpolated
12  double precision, dimension(4):: weights_arr
13
14  ! CGNSファイルを開く
15  call cg_iric_open("test.cgn", IRIC_MODE_MODIFY, fin, ier)
16  if (ier /=0) stop "*** Open error of CGNS file ***"
17
18  ! 格子を開く
19  call cg_iric_read_grid2d_open(fin, g_handle, ier)
20
21  ! 格子のセルの面積を取得
22  call cg_iric_read_grid2d_cellarea(g_handle, 1, area, ier)
23
24  ! 格子の頂点の数を取得
25  call cg_iric_read_grid_nodecount(fin, nodecount, ier)
26
27  ! メモリを確保
28  allocate(depth(nodecount))
29
30  ! 計算結果 depth の値を取得
31  call cg_iric_read_sol_node_real(fin, 1, 'depth', depth, ier)
32
33  ! 座標 (10.8, 12.5) での値を補間して計算するための情報を取得
34  call cg_iric_read_grid2d_interpolate(g_handle, 10.8, 12.5, ok, cellnodecount, nodeid_arr, weights_arr)
35
36  ! 座標 (10.8, 12.5) での depth の値を、取得した情報に基づいて計算
37  depth_interpolated = 0
38  do i = 1, cellnodecount
39    depth_interpolated = depth_interpolated + depth(nodeid_arr(i)) * weights_arr(i)
40  end do
41
42  ! 格子を閉じる
43  call cg_iric_read_grid2d_close(g_handle, ier)
44
45  deallocate(depth)
46  stop
47end program TestX

地形データの読み込み

プロジェクトでインポートして格子生成に利用した地形データを読み込みます。 ソルバーで、河川測量データやポリゴンを直接読み込んで解析に使用したい場合に行います。 地形データを読み込む場合の手順は、以下の通りになります。

  1. CGNS ファイルから、プロジェクトで使用した地形データのファイル名などを読み込みます。

  2. 地形データファイルを開き、地形データを読み込みます。

利用する関数

関数

備考

cg_iric_read_geo_count

地形データの数を返す

cg_iric_read_geo_filename

地形データのファイル名と種類を返す

iric_geo_riversurvey_open

河川測量データを開く

iric_geo_riversurvey_read_count

河川横断線の数を返す

iric_geo_riversurvey_read_position

横断線の中心点の座標を返す

iric_geo_riversurvey_read_direction

横断線の向きを返す

iric_geo_riversurvey_read_name

横断線の名前を文字列として返す

iric_geo_riversurvey_read_realname

横断線の名前を実数値として返す

iric_geo_riversurvey_read_leftshift

横断線の標高データのシフト量を返す

iric_geo_riversurvey_read_altitudecount

横断線の標高データの数を返す

iric_geo_riversurvey_read_altitudes

横断線の標高データを返す

iric_geo_riversurvey_readixedpointl

横断線の左岸延長線のデータを返す

iric_geo_riversurvey_readixedpointr

横断線の右岸延長線のデータを返す

iric_geo_riversurvey_read_watersurfaceelevation

横断線での水面標高のデータを返す

iric_geo_riversurvey_close

河川測量データを閉じる

地形データのうち、河川測量データを読み込む処理の記述例を リスト 165 に示します。

河川測量データを読み込む処理の記述例
 1program TestRiverSurvey
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier
 6  integer:: icount, istatus
 7
 8  integer:: geoid
 9  integer:: elevation_geo_count
10  character(len=1000):: filename
11  integer:: geotype
12  integer:: rsid
13  integer:: xsec_count
14  integer:: xsec_id
15  character(len=20):: xsec_name
16  double precision:: xsec_x
17  double precision:: xsec_y
18  integer:: xsec_set
19  integer:: xsec_index
20  double precision:: xsec_leftshift
21  integer:: xsec_altid
22  integer:: xsec_altcount
23  double precision, dimension(:), allocatable:: xsec_altpos
24  double precision, dimension(:), allocatable:: xsec_altheight
25  integer, dimension(:), allocatable:: xsec_altactive
26  double precision:: xsec_wse
27
28  ! 計算データファイルを開く
29  call cg_iric_open("test.cgn", IRIC_MODE_MODIFY, fin, ier)
30  if (ier /=0) stop "*** Open error of CGNS file ***"
31
32  ! 地形データの数を取得
33  call cg_iric_read_geo_count(fin, "Elevation", elevation_geo_count, ier)
34
35  do geoid = 1, elevation_geo_count
36    call cg_iric_read_geo_filename(fin, 'Elevation', geoid, &
37      filename, geotype, ier)
38    if (geotype .eq. iRIC_GEO_RIVERSURVEY) then
39      call iric_geo_riversurvey_open(filename, rsid, ier)
40      call iric_geo_riversurvey_read_count(rsid, xsec_count, ier)
41      do xsec_id = 1, xsec_count
42        call iric_geo_riversurvey_read_name(rsid, xsec_id, xsec_name, ier)
43        print *, 'xsec ', xsec_name
44        call iric_geo_riversurvey_read_position(rsid, xsec_id, xsec_x, xsec_y, ier)
45        print *, 'position: ', xsec_x, xsec_y
46        call iric_geo_riversurvey_read_direction(rsid, xsec_id, xsec_x, xsec_y, ier)
47        print *, 'direction: ', xsec_x, xsec_y
48        call iric_geo_riversurvey_read_leftshift(rsid, xsec_id, xsec_leftshift, ier)
49        print *, 'leftshift: ', xsec_leftshift
50        call iric_geo_riversurvey_read_altitudecount(rsid, xsec_id, xsec_altcount, ier)
51        print *, 'altitude count: ', xsec_altcount
52        allocate(xsec_altpos(xsec_altcount))
53        allocate(xsec_altheight(xsec_altcount))
54        allocate(xsec_altactive(xsec_altcount))
55        call iric_geo_riversurvey_read_altitudes( &
56          rsid, xsec_id, xsec_altpos, xsec_altheight, xsec_altactive, ier)
57        do xsec_altid = 1, xsec_altcount
58          print *, 'Altitude ', xsec_altid, ': ', &
59            xsec_altpos(xsec_altid:xsec_altid), ', ', &
60            xsec_altheight(xsec_altid:xsec_altid), ', ', &
61            xsec_altactive(xsec_altid:xsec_altid)
62        end do
63        deallocate(xsec_altpos, xsec_altheight, xsec_altactive)
64        call iric_geo_riversurvey_readixedpointl( &
65          rsid, xsec_id, xsec_set, xsec_x, xsec_y, xsec_index, ier)
66        print *, 'FixedPointL: ', xsec_set, xsec_x, xsec_y, xsec_index
67        call iric_geo_riversurvey_readixedpointr( &
68          rsid, xsec_id, xsec_set, xsec_x, xsec_y, xsec_index, ier)
69        print *, 'FixedPointR: ', xsec_set, xsec_x, xsec_y, xsec_index
70        call iric_geo_riversurvey_read_watersurfaceelevation( &
71          rsid, xsec_id, xsec_set, xsec_wse, ier)
72        print *, 'WaterSurfaceElevation: ', xsec_set, xsec_wse
73      end do
74      call iric_geo_riversurvey_close(rsid, ier)
75    end if
76  end do
77
78  ! 計算データファイルを閉じる
79  call cg_iric_close(fin, ier)
80  stop
81end program TestRiverSurvey

計算格子の出力

CGNSファイルに、計算格子を出力します。

ソルバーでは、ソルバーで計算に用いる格子を生成する場合や、 2次元格子から3次元格子を生成する場合に行います。

格子生成プログラムでは必ず行います。

ここで示す関数は、ソルバーでは計算開始時の格子を出力するために使用します。 計算中に格子形状が変化する場合の格子の出力には、計算格子の出力 (計算開始後の格子) に示す関数を使用して下さい。

利用する関数

関数

備考

cg_iric_write_grid1d_coords

1次元構造格子を出力する

cg_iric_write_grid2d_coords

2次元構造格子を出力する

cg_iric_write_grid3d_coords

3次元構造格子を出力する

cg_iric_write_grid_real_node

格子点で定義された整数の属性を出力する

cg_iric_write_grid_integer_node

格子点で定義された倍精度実数の属性を出力する

cg_iric_write_grid_real_cell

セルで定義された整数の属性を出力する

cg_iric_write_grid_integer_cell

セルで定義された倍精度実数の属性を出力する

2次元格子を読み込み、それを分割して生成した3次元格子を 出力する処理の記述例を リスト 166 に示します。

3次元格子を出力する処理の記述例
 1program Sample7
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize, ksize, i, j, k, aret
 6  double precision:: time
 7  double precision:: convergence
 8  double precision, dimension(:,:), allocatable::grid_x, grid_y, elevation
 9  double precision, dimension(:,:,:), allocatable::grid3d_x, grid3d_y, grid3d_z
10  double precision, dimension(:,:,:), allocatable:: velocity, density
11
12  ! CGNS ファイルのオープン
13  call cg_iric_open('test3d.cgn', IRIC_MODE_MODIFY, fin, ier)
14  if (ier /=0) STOP "*** Open error of CGNS file ***"
15
16  ! 格子のサイズを調べる
17  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
18  ! 格子を読み込むためのメモリを確保
19  allocate(grid_x(isize,jsize), grid_y(isize,jsize), elevation(isize,jsize))
20  ! 格子を読み込む
21  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
22  call cg_iric_read_grid_real_node(fin, 'Elevation', elevation, ier)
23
24  ! 読み込んだ2次元格子を元に、3次元格子を生成。
25  ! 3次元格子は Z方向に、深さ 5 で、5分割する
26
27  ksize = 6
28  allocate(grid3d_x(isize,jsize,ksize), grid3d_y(isize,jsize,ksize), grid3d_z(isize,jsize,ksize))
29  allocate(velocity(isize,jsize,ksize), STAT = aret)
30  print *, aret
31  allocate(density(isize,jsize,ksize), STAT = aret)
32  print *, aret
33  do i = 1, isize
34    do j = 1, jsize
35      do k = 1, ksize
36        grid3d_x(i,j,k) = grid_x(i,j)
37        grid3d_y(i,j,k) = grid_y(i,j)
38        grid3d_z(i,j,k) = elevation(i,j) + (k - 1)
39        velocity(i,j,k) = 0
40        density(i,j,k) = 0
41      end do
42    end do
43  end do
44  ! 生成した3次元格子を出力
45  call cg_iric_write_grid3d_coords(fin, isize, jsize, ksize, grid3d_x, grid3d_y, grid3d_z, ier)
46
47  ! 初期状態の情報を出力
48  time = 0
49  convergence = 0.1
50  call cg_iric_write_sol_start(fin, ier)
51  call cg_iric_write_sol_time(fin, time, ier)
52  ! 格子を出力
53  call cg_iric_write_sol_grid3d_coords(fin, grid3d_x, grid3d_y, grid3d_z, ier)
54  ! 計算結果を出力
55  call cg_iric_write_sol_node_real(fin, 'Velocity', velocity, ier)
56  call cg_iric_write_sol_node_real(fin, 'Density', density, ier)
57  call cg_iric_write_sol_baseiterative_real(fin, 'Convergence', convergence, ier)
58  call cg_iric_write_sol_end(fin, ier)
59
60  do
61    time = time + 10.0
62    ! (ここで計算を実行。格子の形状も変化)
63    call cg_iric_write_sol_start(fin, ier)
64    call cg_iric_write_sol_time(fin, time, ier)
65    ! 格子を出力
66    call cg_iric_write_sol_grid3d_coords(fin, grid3d_x, grid3d_y, grid3d_z, ier)
67    ! 計算結果を出力
68    call cg_iric_write_sol_node_real(fin, 'Velocity', velocity, ier)
69    call cg_iric_write_sol_node_real(fin, 'Density', density, ier)
70    call cg_iric_write_sol_baseiterative_real(fin, 'Convergence', convergence, ier)
71    call cg_iric_write_sol_end(fin, ier)
72
73    If (time > 100) exit
74  end do
75
76  ! CGNS ファイルのクローズ
77  call cg_iric_close(fin, ier)
78  stop
79end program Sample7

時刻 (もしくはループ回数) の出力

CGNSファイルに、時刻もしくはループ回数を出力します。

その時刻での計算格子の出力や計算結果の出力を行うより前に、必ず実行してください。

また、時刻とループ回数を両方出力することはできません。必ずいずれかのみ出力してください。

利用する関数

関数

備考

cg_iric_write_sol_start

計算結果の出力を開始する

cg_iric_write_sol_end

計算結果の出力を終了する

cg_iric_write_sol_time

時刻を出力する

cg_iric_write_sol_iteration

ループ回数を出力する

時刻を出力する処理の例を リスト 167 に示します。

時刻を出力する処理の記述例
 1program Sample4
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, i
 6  double precision:: time
 7
 8  ! CGNS ファイルのオープン
 9  call cg_iric_open('test.cgn', IRIC_MODE_MODIFY, fin, ier)
10  if (ier /=0) STOP "*** Open error of CGNS file ***"
11
12  ! 初期状態の情報を出力
13  time = 0
14
15  call cg_iric_write_sol_start(fin, ier)
16  call cg_iric_write_sol_time(fin, time, ier)
17  ! (ここで、初期の計算格子や計算結果を出力)
18  call cg_iric_write_sol_end(fin, ier)
19
20  do
21    time = time + 10.0
22    ! (ここで計算を実行)
23    call cg_iric_write_sol_start(fin, ier)
24    call cg_iric_write_sol_time(fin, time, ier)
25    ! (ここで、計算格子や計算結果を出力)
26    call cg_iric_write_sol_end(fin, ier)
27    If (time > 1000) exit
28  end do
29
30  ! CGNS ファイルのクローズ
31  call cg_iric_close(fin, ier)
32  stop
33end program Sample4

計算格子の出力 (計算開始後の格子)

CGNSファイルに、計算開始後の計算格子を出力します。計算中に格子形状が 変化するソルバーでのみ行います。

特定の時間での計算格子を出力する前に、必ず 時刻 (もしくはループ回数) の出力 で示した時刻 (もしくはループ回数) の出力を行ってください。

以下に示す場合の格子の出力については、計算格子の出力 で示した関数を利用してください。

  • ソルバーで新たに格子を生成した

  • ソルバーで格子を再分割するなどして、次元や格子点数が異なる格子を生成した

  • 格子生成プログラム内で格子を生成した

利用する関数

関数

備考

cg_iric_write_sol_grid2d_coords

2次元構造格子を出力する

cg_iric_write_sol_grid3d_coords

3次元構造格子を出力する

2次元構造格子を出力する処理の例を リスト 168 に示します。

2次元構造格子を出力する処理の記述例
 1program Sample5
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  double precision:: time
 7  double precision, dimension(:,:), allocatable:: grid_x, grid_y
 8
 9  ! CGNS ファイルのオープン
10  call cg_iric_open('test.cgn', IRIC_MODE_MODIFY, fin, ier)
11  if (ier /=0) STOP "*** Open error of CGNS file ***"
12
13  ! 格子のサイズを調べる
14  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
15  ! 格子を読み込むためのメモリを確保
16  allocate(grid_x(isize,jsize), grid_y(isize,jsize))
17  ! 格子を読み込む
18  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
19
20  ! 初期状態の情報を出力
21  time = 0
22
23  call cg_iric_write_sol_start(fin, ier)
24  call cg_iric_write_sol_time(fin, time, ier)
25  ! 格子を出力
26  call cg_iric_write_sol_grid2d_coords(fin, grid_x, grid_y, ier)
27  call cg_iric_write_sol_end(fin, ier)
28
29  do
30    time = time + 10.0
31    ! (ここで計算を実行)
32    call cg_iric_write_sol_start(fin, ier)
33    call cg_iric_write_sol_time(fin, time, ier)
34    call cg_iric_write_sol_grid2d_coords(fin, grid_x, grid_y, ier)
35    call cg_iric_write_sol_end(fin, ier)
36    If (time > 1000) exit
37  end do
38
39  ! CGNS ファイルのクローズ
40  call cg_iric_close(fin, ier)
41  stop
42end program Sample5

計算結果の出力

CGNSファイルに、計算結果を出力します。

iRIClib で出力できる計算結果は、大きく以下に分類されます。

  • 1つのタイムステップで1つ値を持つ計算結果

  • 格子点ごとに値を持つ計算結果

  • 格子セルごとに値を持つ計算結果

  • 格子辺ごとに値を持つ計算結果

  • 粒子の座標ごとに値を持つ計算結果

  • 粒子の座標ごとに値を持つ計算結果 (複数グループ可)

  • ポリゴンもしくは折れ線ごとに値を持つ計算結果

どの種類の計算結果を出力する場合も、 表 76表 77 に示す関数は必ず使用します。

計算結果の分類ごとの固有の関数は、 1つのタイムステップで1つ値を持つ計算結果ポリゴンもしくは折れ線ごとに値を持つ計算結果 をそれぞれ参照してください。

計算結果の出力の開始前、終了後に利用する関数

関数

備考

iric_check_cancel

ユーザがソルバーの実行をキャンセルしたか確認する

cg_iric_write_sol_start

計算結果の出力処理を開始する

cg_iric_write_sol_end

計算結果の出力処理を終了する

時刻・ループ回数の出力に利用する関数

関数

備考

cg_iric_write_sol_time

時刻を出力する

cg_iric_write_sol_iteration

ループ回数を出力する

注釈

ベクトル量とスカラー量

iRIClib では、ベクトル量の計算結果とスカラー量の計算結果は、 同じ関数を使って出力を行います。

ベクトル量の計算結果を出力する場合は、 "VelocityX", "VelocityY" などの名前で各成分を出力してください。

スカラー量の計算結果の出力で、名前の最後に "X", "Y", "Z" を使った場合、 GUI で正しく読み込まれず可視化できませんのでご注意下さい。 小文字の "x", "y", "z" は問題なく使用できます。

注釈

計算結果で使用する特別な名前

計算結果について、iRIC では特別な名前が定義されており、 特定の目的で使用される結果ではその名前を使用する必要があります。 特別な計算結果の名前については 計算結果 を参照してください。

注釈

格子点・格子セル・格子エッジ

格子に関係する計算結果は、格子点で出力する方法、格子セルで出力する 方法、格子エッジで出力する方法があります。

基本的には、ソルバにおいて変数がどこで定義されているかによって、どの方法で 計算結果を出力するかを選択してください。

ただし、ベクトル量については格子点で出力してください。格子セル・格子エッジで ベクトル量を出力しても、矢印、流線、パーティクルの描画はできません。

1つのタイムステップで1つ値を持つ計算結果

1つのタイムステップで1つ値を持つ計算結果を出力する場合、 表 78 に示す関数を 使用します。

出力するプログラムの例は、リスト 169 を参照してください。

1つのタイムステップで1つ値を持つ計算結果の出力に利用する関数

関数

備考

cg_iric_write_sol_baseiterative_integer

整数の計算結果を出力する

cg_iric_write_sol_baseiterative_real

倍精度実数の計算結果を出力する

cg_iric_write_sol_baseiterative_string

文字列の計算結果を出力する

サンプルプログラム (1つのタイムステップで1つ値を持つ計算結果)
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision:: convergence
10  double precision, dimension(:,:), allocatable::grid_x, grid_y
11  character(len=20):: condFile
12
13  condFile = 'test.cgn'
14
15  ! CGNS ファイルのオープン
16  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
17  if (ier /=0) STOP "*** Open error of CGNS file ***"
18
19  ! 格子のサイズを調べる
20  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
21  ! 格子を読み込むためのメモリを確保
22  allocate(grid_x(isize,jsize), grid_y(isize,jsize))
23  ! 格子を読み込む
24  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
25
26  ! 初期状態の情報を出力
27  time = 0
28  convergence = 0.1
29  call cg_iric_write_sol_start(fin, ier)
30  call cg_iric_write_sol_time(fin, time, ier)
31  call cg_iric_write_sol_baseiterative_real(fin, 'Convergence', convergence, ier)
32  call cg_iric_write_sol_end(fin, ier)
33  do
34    time = time + 10.0
35
36    ! (ここで計算を実行)
37
38    call iric_check_cancel(canceled)
39    if (canceled == 1) exit
40
41    ! 計算結果を出力
42    call cg_iric_write_sol_start(fin, ier)
43    call cg_iric_write_sol_time(fin, time, ier)
44    call cg_iric_write_sol_baseiterative_real(fin, 'Convergence', convergence, ier)
45    call cg_iric_write_sol_end(fin, ier)
46
47    if (time > 1000) exit
48  end do
49
50  ! CGNS ファイルのクローズ
51  call cg_iric_close(fin, ier)
52  stop
53end program SampleProgram
格子点ごとに値を持つ計算結果

格子点ごとに値を持つ計算結果を出力する場合、 表 79 に示す関数を 使用します。

出力するプログラムの例は、リスト 170 を参照してください。

格子点ごとに値を持つ計算結果の出力に利用する関数

関数

備考

cg_iric_write_sol_node_integer

整数の格子点ごとに値を持つ計算結果を出力する

cg_iric_write_sol_node_real

倍精度実数の格子点ごとに値を持つ計算結果を出力する

サンプルプログラム (格子点ごとに値を持つ計算結果)
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision, dimension(:,:), allocatable::grid_x, grid_y
10  double precision, dimension(:,:), allocatable:: velocity_x, velocity_y, depth
11  integer, dimension(:,:), allocatable:: wetflag
12  character(len=20):: condFile
13
14  condFile = 'test.cgn'
15
16  ! CGNS ファイルのオープン
17  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
18  if (ier /=0) STOP "*** Open error of CGNS file ***"
19
20  ! 格子のサイズを調べる
21  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
22  ! 格子を読み込むためのメモリを確保
23  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
24  ! 計算結果を保持するメモリも確保
25  allocate(velocity_x(isize, jsize), velocity_y(isize, jsize), depth(isize, jsize), wetflag(isize, jsize))
26  ! 格子を読み込む
27  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
28
29  ! 初期状態の情報を出力
30  time = 0
31  call cg_iric_write_sol_start(fin, ier)
32  call cg_iric_write_sol_time(fin, time, ier)
33  call cg_iric_write_sol_real(fin, 'VelocityX', velocity_x, ier)
34  call cg_iric_write_sol_real(fin, 'VelocityY', velocity_y, ier)
35  call cg_iric_write_sol_real(fin, 'Depth', depth, ier)
36  call cg_iric_write_sol_integer(fin, 'Wet', wetflag, ier)
37  call cg_iric_write_sol_end(fin, ier)
38  do
39    time = time + 10.0
40
41    ! (ここで計算を実行)
42
43    call iric_check_cancel(canceled)
44    if (canceled == 1) exit
45
46    ! 計算結果を出力
47    call cg_iric_write_sol_start(fin, ier)
48    call cg_iric_write_sol_time(fin, time, ier)
49    call cg_iric_write_sol_real(fin, 'VelocityX', velocity_x, ier)
50    call cg_iric_write_sol_real(fin, 'VelocityY', velocity_y, ier)
51    call cg_iric_write_sol_real(fin, 'Depth', depth, ier)
52    call cg_iric_write_sol_integer(fin, 'Wet', wetflag, ier)
53    call cg_iric_write_sol_end(fin, ier)
54
55    if (time > 1000) exit
56  end do
57
58  ! CGNS ファイルのクローズ
59  call cg_iric_close(fin, ier)
60  stop
61end program SampleProgram
格子セルごとに値を持つ計算結果

格子セルごとに値を持つ計算結果を出力する場合、 表 80 に示す関数を 使用します。

出力するプログラムの例は、リスト 171 を参照してください。

格子セルごとに値を持つ計算結果の出力に利用する関数

関数

備考

cg_iric_write_sol_cell_integer

整数の格子セルごとに値を持つ計算結果を出力する

cg_iric_write_sol_real

倍精度実数の格子セルごとに値を持つ計算結果を出力する

サンプルプログラム (格子セルごとに値を持つ計算結果)
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision, dimension(:,:), allocatable::grid_x, grid_y
10  double precision, dimension(:,:), allocatable:: depth
11  integer, dimension(:,:), allocatable:: wetflag
12  character(len=20):: condFile
13
14  condFile = 'test.cgn'
15
16  ! CGNS ファイルのオープン
17  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
18  if (ier /=0) STOP "*** Open error of CGNS file ***"
19
20  ! 格子のサイズを調べる
21  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
22  ! 格子を読み込むためのメモリを確保
23  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
24  ! 計算結果を保持するメモリも確保
25  allocate(depth(isize - 1, jsize - 1), wetflag(isize - 1, jsize - 1))
26  ! 格子を読み込む
27  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
28
29  ! 初期状態の情報を出力
30  time = 0
31  convergence = 0.1
32  call cg_iric_write_sol_start(fin, ier)
33  call cg_iric_write_sol_time(fin, time, ier)
34  call cg_iric_write_sol_cell_real(fin, 'Depth', depth, ier)
35  call cg_iric_write_sol_cell_integer(fin, 'Wet', wetflag, ier)
36  call cg_iric_write_sol_end(fin, ier)
37  do
38    time = time + 10.0
39
40    ! (ここで計算を実行)
41
42    call iric_check_cancel(canceled)
43    if (canceled == 1) exit
44
45    ! 計算結果を出力
46    call cg_iric_write_sol_start(fin, ier)
47    call cg_iric_write_sol_time(fin, time, ier)
48    call cg_iric_write_sol_cell_real(fin, 'Depth', depth, ier)
49    call cg_iric_write_sol_cell_integer(fin, 'Wet', wetflag, ier)
50    call cg_iric_write_sol_end(fin, ier)
51
52    if (time > 1000) exit
53  end do
54
55  ! CGNS ファイルのクローズ
56  call cg_iric_close(fin, ier)
57  stop
58end program SampleProgram
格子エッジごとに値を持つ計算結果

格子エッジごとに値を持つ計算結果を出力する場合、 表 81 に示す関数を 使用します。

出力するプログラムの例は、リスト 172 を参照してください。

格子エッジごとに値を持つ計算結果の出力に利用する関数

関数

備考

cg_iric_write_sol_iface_integer

整数のI方向の格子エッジごとに値を持つ計算結果を出力する

cg_iric_write_sol_iface_real

倍精度実数のI方向の格子エッジごとに値を持つ計算結果を出力する

cg_iric_write_sol_jface_integer

整数のJ方向の格子エッジごとに値を持つ計算結果を出力する

cg_iric_write_sol_jface_real

倍精度実数のJ方向の格子エッジごとに値を持つ計算結果を出力する

サンプルプログラム (格子エッジごとに値を持つ計算結果)
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision, dimension(:,:), allocatable::grid_x, grid_y
10  double precision, dimension(:,:), allocatable:: fluxi, fluxj
11  character(len=20):: condFile
12
13  condFile = 'test.cgn'
14
15  ! CGNS ファイルのオープン
16  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
17  if (ier /=0) STOP "*** Open error of CGNS file ***"
18
19  ! 格子のサイズを調べる
20  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
21  ! 格子を読み込むためのメモリを確保
22  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
23  ! 計算結果を保持するメモリも確保
24  allocate(fluxi(isize, jsize - 1), fluxj(isize - 1, jsize))
25  ! 格子を読み込む
26  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
27
28  ! 初期状態の情報を出力
29  time = 0
30  convergence = 0.1
31  call cg_iric_write_sol_start(fin, ier)
32  call cg_iric_write_sol_time(fin, time, ier)
33  call cg_iric_write_sol_iface_real(fin, 'FluxI', fluxi, ier)
34  call cg_iric_write_sol_jface_real(fin, 'FluxJ', fluxj, ier)
35  call cg_iric_write_sol_end(fin, ier)
36  do
37    time = time + 10.0
38
39    ! (ここで計算を実行)
40
41    call iric_check_cancel(canceled)
42    if (canceled == 1) exit
43
44    ! 計算結果を出力
45    call cg_iric_write_sol_start(fin, ier)
46    call cg_iric_write_sol_time(fin, time, ier)
47    call cg_iric_write_sol_iface_real(fin, 'FluxI', fluxi, ier)
48    call cg_iric_write_sol_jface_real(fin, 'FluxJ', fluxj, ier)
49    call cg_iric_write_sol_end(fin, ier)
50
51    if (time > 1000) exit
52  end do
53
54  ! CGNS ファイルのクローズ
55  call cg_iric_close(fin, ier)
56  stop
57end program SampleProgram
粒子の座標ごとに値を持つ計算結果

粒子の座標ごとに値を持つ計算結果を出力する場合、 表 82 に示す関数を 使用します。

出力するプログラムの例は、リスト 173 を参照してください。

注釈

ここで示す関数群は現在は非推奨です

粒子の座標ごとに値を持つ計算結果を出力する場合は、 粒子の座標ごとに値を持つ計算結果 (複数グループ可) に示す関数を使用する ことをおすすめします。そちらに示した関数を使用すれば、複数のグループの 粒子を出力でき、グループごとに色の設定や粒子のサイズを変えて可視化することができます。

粒子ごとに値を持つ計算結果の出力に利用する関数

関数

備考

cg_iric_write_sol_particle_pos2d

粒子の位置を出力する (2次元)

cg_iric_write_sol_particle_pos3d

粒子の位置を出力する (3次元)

cg_iric_write_sol_particle_integer

整数の粒子ごとに値を持つ計算結果を出力する

cg_iric_write_sol_particle_real

倍精度実数の粒子ごとに値を持つ計算結果を出力する

サンプルプログラム (粒子の座標ごとに値を持つ計算結果)
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision, dimension(:,:), allocatable::grid_x, grid_y
10  integer:: numparticles = 10
11  double precision, dimension(:), allocatable:: particle_x, particle_y
12  double precision, dimension(:), allocatable:: velocity_x, velocity_y, temperature
13  character(len=20):: condFile
14
15  condFile = 'test.cgn'
16
17  ! CGNS ファイルのオープン
18  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
19  if (ier /=0) STOP "*** Open error of CGNS file ***"
20
21  ! 格子のサイズを調べる
22  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
23  ! 格子を読み込むためのメモリを確保
24  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
25  ! 計算結果を保持するメモリを確保
26  allocate(particle_x(numparticles), particle_y(numparticles))
27  allocate(velocity_x(numparticles), velocity_y(numparticles), temperature(numparticles))
28
29  ! 格子を読み込む
30  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
31
32  ! 初期状態の情報を出力
33  time = 0
34  call cg_iric_write_sol_start(fin, ier)
35  call cg_iric_write_sol_time(fin, time, ier)
36  call cg_iric_write_sol_particle_pos2d(fin, numparticles, particle_x, particle_y, ier)
37  call cg_iric_write_sol_particle_real(fin, 'VelocityX', velocity_x, ier)
38  call cg_iric_write_sol_particle_real(fin, 'VelocityY', velocity_y, ier)
39  call cg_iric_write_sol_particle_real(fin, 'Temperature', temperature, ier)
40  call cg_iric_write_sol_end(fin, ier)
41  do
42    time = time + 10.0
43
44    ! (ここで計算を実行)
45
46    call iric_check_cancel(canceled)
47    if (canceled == 1) exit
48
49    ! 計算結果を出力
50    call cg_iric_write_sol_start(fin, ier)
51    call cg_iric_write_sol_time(fin, time, ier)
52    call cg_iric_write_sol_particle_pos2d(fin, numparticles, particle_x, particle_y, ier)
53    call cg_iric_write_sol_particle_real(fin, 'VelocityX', velocity_x, ier)
54    call cg_iric_write_sol_particle_real(fin, 'VelocityY', velocity_y, ier)
55    call cg_iric_write_sol_particle_real(fin, 'Temperature', temperature, ier)
56    call cg_iric_write_sol_end(fin, ier)
57
58    if (time > 1000) exit
59  end do
60
61  ! CGNS ファイルのクローズ
62  call cg_iric_close(fin, ier)
63  stop
64end program SampleProgram
粒子の座標ごとに値を持つ計算結果 (複数グループ可)

粒子の座標ごとに値を持つ計算結果を出力する場合、 表 83 に示す関数を 使用します。

ここで示す関数を使うと、複数のグループの粒子を出力することができます。 各グループの出力の最初と最後で、 cg_iric_write_sol_particlegroup_groupbegincg_iric_write_sol_particlegroup_groupend を呼び出してください。

出力するプログラムの例は、リスト 174 を参照してください。

注釈

粒子の座標ごとに値を持つ計算結果 で示した関数とは異なり、 ここで示す関数では、一度の関数呼び出しでは粒子一つ分のデータを出力します。

粒子ごとに値を持つ計算結果の出力に利用する関数 (複数グループ可)

関数

備考

cg_iric_write_sol_particlegroup_groupbegin

粒子の計算結果の出力を開始する

cg_iric_write_sol_particlegroup_groupend

粒子の計算結果の出力を終了する

cg_iric_write_sol_particlegroup_pos2d

粒子の位置を出力する (2次元)

cg_iric_write_sol_particlegroup_pos3d

粒子の位置を出力する (3次元)

cg_iric_write_sol_particlegroup_integer

整数の粒子ごとに値を持つ計算結果を出力する

cg_iric_write_sol_particlegroup_real

倍精度実数の粒子ごとに値を持つ計算結果を出力する

サンプルプログラム (粒子の座標ごとに値を持つ計算結果 (複数グループ可))
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision, dimension(:,:), allocatable::grid_x, grid_y
10  integer:: numparticles = 10
11  double precision, dimension(:), allocatable:: particle_x, particle_y,
12  double precision, dimension(:), allocatable:: velocity_x, velocity_y, temperature
13  integer:: i
14  integer:: status = 1
15  character(len=20):: condFile
16
17  condFile = 'test.cgn'
18
19  ! CGNS ファイルのオープン
20  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
21  if (ier /=0) STOP "*** Open error of CGNS file ***"
22
23  ! 格子のサイズを調べる
24  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
25  ! 格子を読み込むためのメモリを確保
26  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
27  ! 計算結果を保持するメモリを確保。
28  allocate(particle_x(numparticles), particle_y(numparticles))
29  allocate(velocity_x(numparticles), velocity_y(numparticles), temperature(numparticles))
30
31  ! 格子を読み込む
32  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
33
34  ! 初期状態の情報を出力
35  time = 0
36  call cg_iric_write_sol_start(fin, ier)
37  call cg_iric_write_sol_time(fin, time, ier)
38
39  call cg_iric_write_sol_particlegroup_groupbegin(fin, 'driftwood', ier)
40  do i = 1, numparticles
41    ! (ここで particle_x, particle_x, velocity_x, velocity_y, temperature に適切な値を設定)
42    call cg_iric_write_sol_particlegroup_pos2d(fin, particle_x(i), particle_y(i), ier)
43    call cg_iric_write_sol_particlegroup_real(fin, 'VelocityX', velocity_x(i), ier)
44    call cg_iric_write_sol_particlegroup_real(fin, 'VelocityY', velocity_y(i), ier)
45    call cg_iric_write_sol_particlegroup_real(fin, 'Temperature', temperature(i), ier)
46  end do
47  call cg_iric_write_sol_particlegroup_groupend(fin, ier)
48  call cg_iric_write_sol_end(fin, ier)
49
50  do
51    time = time + 10.0
52
53    ! (ここで計算を実行)
54
55    call iric_check_cancel(canceled)
56    if (canceled == 1) exit
57
58    ! 計算結果を出力
59    call cg_iric_write_sol_start(fin, ier)
60    call cg_iric_write_sol_time(fin, time, ier)
61    call cg_iric_write_sol_particlegroup_groupbegin(fin, 'driftwood', ier)
62    do i = 1, numparticles
63      ! (ここで particle_x, particle_x, velocity_x, velocity_y, temperature に適切な値を設定)
64      call cg_iric_write_sol_particlegroup_pos2d(fin, particle_x(i), particle_y(i), ier)
65      call cg_iric_write_sol_particlegroup_real(fin, 'VelocityX', velocity_x(i), ier)
66      call cg_iric_write_sol_particlegroup_real(fin, 'VelocityY', velocity_y(i), ier)
67      call cg_iric_write_sol_particlegroup_real(fin, 'Temperature', temperature(i), ier)
68    end do
69    call cg_iric_write_sol_particlegroup_groupend(fin, ier)
70    call cg_iric_write_sol_end(fin, ier)
71
72    if (time > 1000) exit
73  end do
74
75  ! CGNS ファイルのクローズ
76  call cg_iric_close(fin, ier)
77  stop
78end program SampleProgram
ポリゴンもしくは折れ線ごとに値を持つ計算結果

ポリゴンもしくは折れ線ごとに値を持つ計算結果を出力する場合、 表 84 に示す関数を 使用します。

ポリゴンもしくは折れ線では、複数のグループを出力することができます。 各グループの出力の最初と最後で、 cg_iric_write_sol_polydata_groupbegincg_iric_write_sol_polydata_groupend を呼び出してください。

出力するプログラムの例は、リスト 175 を参照してください。

注釈

粒子の座標ごとに値を持つ計算結果を出力する関数では、 一度の関数の呼び出して全ての粒子の座標や値を出力しますが、 ポリゴンもしくは折れ線ごとに値を持つ計算結果では、一度の関数呼び出しでは ポリゴンもしくは折れ線一つ分のデータを出力します。

注釈

ポリゴンもしくは折れ線ごとに値を持つ計算結果は、2次元にのみ対応しています。

注釈

一つのグループの中にポリゴンと折れ線を混在させることもできます。

注釈

ポリゴンもしくは折れ線では、計算結果の値はスカラー量にのみ対応しています。

ポリゴンもしくは折れ線ごとに値を持つ計算結果の出力に利用する関数

関数

備考

cg_iric_write_sol_polydata_groupbegin

ポリゴンもしくは折れ線で定義された計算結果の出力を開始する

cg_iric_write_sol_polydata_groupend

ポリゴンもしくは折れ線で定義された計算結果の出力を終了する

cg_iric_write_sol_polydata_polygon

計算結果としてポリゴンの形状を出力する

cg_iric_write_sol_polydata_polyline

計算結果として折れ線の形状を出力する

cg_iric_write_sol_polydata_integer

整数のポリゴンもしくは折れ線ごとに値を持つ計算結果を出力する

cg_iric_write_sol_polydata_real

倍精度実数のポリゴンもしくは折れ線ごとに値を持つ計算結果を出力する

サンプルプログラム (ポリゴンもしくは折れ線ごとに値を持つ計算結果)
 1program SampleProgram
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize
 6  integer:: canceled
 7  integer:: locked
 8  double precision:: time
 9  double precision, dimension(:,:), allocatable::grid_x, grid_y
10  integer:: numpolygons = 10
11  integer:: numpoints = 5
12  double precision, dimension(:), allocatable:: polydata_x, polydata_y,
13  double precision:: temperature = 26
14  integer:: i
15  integer:: status = 1
16  character(len=20):: condFile
17
18  condFile = 'test.cgn'
19
20  ! CGNS ファイルのオープン
21  call cg_iric_open(condFile, IRIC_MODE_MODIFY, fin, ier)
22  if (ier /=0) STOP "*** Open error of CGNS file ***"
23
24  ! 格子のサイズを調べる
25  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
26  ! 格子を読み込むためのメモリを確保
27  allocate(grid_x(isize, jsize), grid_y(isize, jsize))
28  ! 計算結果を保持するメモリを確保。一つのポリゴンの点数は5点
29  allocate(polydata_x(numpoints), polydata_y(numpoints))
30
31  ! 格子を読み込む
32  call cg_iric_read_grid2d_coords(fin, grid_x, grid_y, ier)
33
34  ! 初期状態の情報を出力
35  time = 0
36  call cg_iric_write_sol_start(fin, ier)
37  call cg_iric_write_sol_time(fin, time, ier)
38
39  call cg_iric_write_sol_polydata_groupbegin(fin, 'fish', ier)
40  do i = 1, numpolygons
41    ! (ここで polydata_x, polydata_y, temperature, status に適切な値を設定)
42    call cg_iric_write_sol_polydata_polygon(fin, numpoints, polydata_x, polydata_y, ier)
43    call cg_iric_write_sol_polydata_real(fin, 'Temperature', temperature, ier)
44    call cg_iric_write_sol_polydata_integer(fin, 'Status', status, ier)
45  end do
46  call cg_iric_write_sol_polydata_groupend(fin, ier)
47  call cg_iric_write_sol_end(fin, ier)
48
49  do
50    time = time + 10.0
51
52    ! (ここで計算を実行)
53
54    call iric_check_cancel(canceled)
55    if (canceled == 1) exit
56
57    ! 計算結果を出力
58    call cg_iric_write_sol_start(fin, ier)
59    call cg_iric_write_sol_time(fin, time, ier)
60    call cg_iric_write_sol_polydata_groupbegin(fin, 'fish', ier)
61    do i = 1, numpolygons
62      ! (ここで polydata_x, polydata_y, temperature, status に適切な値を設定)
63      call cg_iric_write_sol_polydata_polygon(fin, numpoints, polydata_x, polydata_y, ier)
64      call cg_iric_write_sol_polydata_real(fin, 'Temperature', temperature, ier)
65      call cg_iric_write_sol_polydata_integer(fin, 'Status', status, ier)
66    end do
67    call cg_iric_write_sol_polydata_groupend(fin, ier)
68    call cg_iric_write_sol_end(fin, ier)
69
70    if (time > 1000) exit
71  end do
72
73  ! CGNS ファイルのクローズ
74  call cg_iric_close(fin, ier)
75  stop
76end program SampleProgram

既存の計算結果の読み込み

既存のCGNSファイルに格納されている計算結果を読み込みます。

利用する関数

関数

備考

cg_iric_read_sol_count

計算結果の数を取得する

cg_iric_read_sol_time

計算結果の時刻の値を取得する

cg_iric_read_sol_iteration

計算結果のループ回数の値を取得する

cg_iric_read_sol_baseiterative_integer

整数の計算結果の値を取得する

cg_iric_read_sol_baseiterative_real

倍精度実数の計算結果の値を取得する

cg_iric_read_sol_grid2d_coords

計算結果の2次元構造格子を取得する

cg_iric_read_sol_grid3d_coords

計算結果の3次元構造格子を取得する

cg_iric_read_sol_node_integer

整数の格子点ごとに値を持つ計算結果の値を取得する

cg_iric_read_sol_node_real

倍精度実数の格子点ごとに値を持つ計算結果の値を取得する

cg_iric_read_sol_cell_integer

整数の格子セルごとに値を持つ計算結果の値を取得する

cg_iric_read_sol_cell_real

倍精度実数の格子セルごとに値を持つ計算結果の値を取得する

既存のCGNSファイルを読み込み、格納されている計算結果を標準出力に 出力する処理の例を リスト 176 に示します。

計算結果を読み込む処理の記述例
 1program SampleX
 2  use iric
 3  implicit none
 4
 5  integer:: fin, ier, isize, jsize, solid, solcount, iter, i, j
 6  double precision, dimension(:,:), allocatable::grid_x, grid_y, result_real
 7
 8  ! CGNS ファイルのオープン
 9  call cg_iric_open('test.cgn', IRIC_MODE_READ, fin, ier)
10  if (ier /=0) STOP "*** Open error of CGNS file ***"
11
12  ! 格子のサイズを調べる
13  call cg_iric_read_grid2d_str_size(fin, isize, jsize, ier)
14
15  ! 計算結果を読み込むためのメモリを確保
16  allocate(grid_x(isize,jsize), grid_y(isize,jsize))
17  allocate(result_real(isize, jsize))
18
19  ! 計算結果を読み込み出力
20  call cg_iric_read_sol_count(fin, solcount, ier)
21  do solid = 1, solcount
22    call cg_iric_read_sol_iteration(fin, solid, iter, ier)
23    call cg_iric_read_sol_gridcoord2d(fin, solid, grid_x, grid_y, ier)
24    call cg_iric_read_sol_real(fin, solid, 'result_real', result_real, ier)
25
26    print *, 'iteration: ', iter
27    print *, 'grid_x, grid_y, result: '
28    do i = 1, isize
29      do j = 1, jsize
30        print *, '(', i, ', ', j, ') = (', grid_x(i, j), ', ', grid_y(i, j), ', ', result_real(i, j), ')'
31      end do
32    end do
33  end do
34
35  ! CGNS ファイルのクローズ
36  call cg_iric_close(fin, ier)
37  stop
38end program SampleX

なお、計算結果読み込みの関数を用いて、既存のCGNSファイルの計算結果を 分析・加工することができます(計算結果分析ソルバーの開発手順 参照)。

格子のコピー

CGNS ファイルの間で、格子をコピーします。 同じ関数で、構造格子と非構造格子両方に対応しています。

利用する関数

関数

備考

cg_iric_copy_grid

格子をコピーする

格子が格納されている CGNS ファイル、格子が格納されていない CGNS ファイルを 開き、格子をコピーする処理の例を リスト 177 に示します。

格子をコピーする処理の記述例
 1program SampleX
 2  use iric
 3  implicit none
 4
 5  integer:: fid_from, fid_to, ier
 6
 7  ! CGNS ファイルのオープン
 8  call cg_iric_open('test1.cgn', IRIC_MODE_READ, fid_from, ier)
 9  if (ier /=0) STOP "*** Open error of CGNS file ***"
10
11  call cg_iric_open('test1.cgn', IRIC_MODE_MODIFY, fid_to, ier)
12  if (ier /=0) STOP "*** Open error of CGNS file ***"
13
14  ! 格子のコピー
15  call cg_iric_copy_grid(fid_from, fid_to, ier)
16
17  ! CGNS ファイルのクローズ
18  call cg_iric_close(fid_from, ier)
19  call cg_iric_close(fid_to, ier)
20  stop
21end program SampleX

エラーコードの出力

CGNSファイルに、エラーコードを出力します。格子生成プログラムでのみ行います。

利用する関数

関数

備考

cg_iric_write_errorcode

エラーコードを出力する。

CGNSファイルを閉じる

cg_iric_open で開いた CGNSファイルを閉じます。

利用する関数

関数

備考

cg_iric_close

CGNSファイルを閉じる。

複数の計算格子での計算結果の出力

iRIClib では、複数の計算格子での計算結果の出力に対応しています。

主な使用方法の例を以下に示します。

  • 2次元格子と3次元格子両方での計算結果を出力する

  • 2次元の非構造格子と構造格子での計算結果を出力する

そのような場合、関数名に _withgridid が追加された名前の関数を使用します。

例えば、2次元格子と3次元格子両方での計算結果を出力したい場合、格子の出力には、 cg_iRIC_Write_Grid3d_Coords_WithGridId を利用します。

cg_iRIC_Write_Grid3d_Coordscg_iRIC_Write_Grid3d_Coords_WithGridId では、以下に示すように 引数が異なります (FORTRANの場合)。"_withgridid" が付加された関数では、引数として gid (Grid ID) が追加されています。

call cg_iric_write_grid3d_coords(fid, nx, ny, nz, x, y, z, ier)
call cg_iric_write_grid3d_coords_withgridid(fid, nx, ny, nz, x, y, z, gid, ier)

cg_iRIC_Write_Grid3d_Coords_WithGridId は、 格子を CGNS ファイルに書き込むとともに、新しい格子のIDを返します。

複数の計算格子での計算結果を出力する場合、 "_withgridid" を付加した名前の関数を使用します。

例えば、格子点で定義された実数値の計算結果を出力したい場合、 cg_iRIC_Write_Sol_Node_Real_WithGridId を使用します。

cg_iRIC_Write_Sol_Node_Real_WithGridId の引数一覧を以下に示します。

call cg_iric_write_sol_node_real_withgridid(fid, gid, label, val, ier)

2番目の引数である gid として、上記で返された格子のIDを渡します。

あらかじめ iRIC GUI で作成しておいた2次元の格子の gid は1, ソルバ内で作成して上記処理で CGNS ファイルに書き込んだ格子の gid は2となる点がポイントです。 適切な gid を関数に渡すことで、2次元格子と3次元格子の計算結果両方を出力することが出来ます。

cg_iRIC_Write_Sol_Node_Real_WithGridId と同様に、格子に関する入出力用の 関数には、全て _withgridid が付加された名前の関数が存在します。

リファレンス

リファレンスでは、各関数の機能、呼び出す際の形式、引数について解説します。

リファレンスの各関数のページでは、引数の型は FORTRAN の場合について解説しています。 C/C++, Python から呼び出す際の引数の型については、表 89 を参照して 読み替えてください。

Python では、エラーコードを格納する ier は出力されず、エラーが発生した場合は 例外が発生します。エラー処理を行う場合は、try, except を利用してください。

引数の型の対応関係

FORTRAN

C/C++

Python

integer

int (出力の場合 int*)

int

double precision

double (出力の場合 double*)

float

real

float (出力の場合 float*)

(なし)

character(*)

char*

str

integer, dimension(:), allocatable

int*

numpy.ndarray(dtype=int32)

double precision, dimension(:), allocatable

double*

numpy.ndarray(dtype=float64)

real, dimension(:), allocatable

float*

(なし)

サブルーチン一覧

サブルーチンとその分類の一覧を 表 90 に示します。

iRIClibサブルーチン一覧

分類

名前

機能

CGNSファイルを開く

cg_iric_open

CGNS ファイルを開く

オプションの設定

iric_initoption

ソルバーのオプションを設定する

計算条件、格子生成条件の読み込み

cg_iric_read_integer

整数型変数の値を取得する

計算条件、格子生成条件の読み込み

cg_iric_read_real

実数(倍精度)変数の値を取得する

計算条件、格子生成条件の読み込み

cg_iric_read_realsingle

実数(単精度)変数の値を取得する

計算条件、格子生成条件の読み込み

cg_iric_read_string

文字列型変数の値を取得する

計算条件、格子生成条件の読み込み

cg_iric_read_functionalsize

関数型変数のサイズを取得する

計算条件、格子生成条件の読み込み

cg_iric_read_functional

倍精度実数の関数型変数の値を取得する

計算条件、格子生成条件の読み込み

cg_iric_read_functional_realsingle

単精度実数の関数型変数の値を取得する

計算条件、格子生成条件の読み込み

cg_iric_read_functionalwithname

複数の値を持つ倍精度実数の関数型変数の値を取得する

計算格子の読み込み

cg_iric_read_grid2d_str_size

格子を読み込む準備をする

計算格子の読み込み

cg_iric_read_grid2d_coords

格子のX, Y 座標を読み込む

計算格子の読み込み

cg_iric_read_grid_nodecount

格子点の数を読み込む

計算格子の読み込み

cg_iric_read_grid_cellcount

格子セルの数を読み込む

計算格子の読み込み

cg_iric_read_grid_triangleelements

非構造格子の三角形頂点のIDリストを読み込む

計算格子の読み込み

cg_iric_read_grid_integer_node

格子点で定義された整数の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_real_node

格子点で定義された倍精度実数の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_integer_cell

セルで定義された整数の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_real_cell

セルで定義された倍精度実数の属性を読み込む

計算格子の読み込み

cg_iric_read_complex_count

複合型の属性のグループの数を読み込む

計算格子の読み込み

cg_iric_read_complex_integer

複合型の属性の整数の条件を読み込む

計算格子の読み込み

cg_iric_read_complex_real

複合型の属性の倍精度実数の条件を読み込む

計算格子の読み込み

cg_iric_read_complex_realsingle

複合型の属性の単精度実数の条件を読み込む

計算格子の読み込み

cg_iric_read_complex_string

複合型の属性の文字列の条件を読み込む

計算格子の読み込み

cg_iric_read_complex_functionalsize

複合型の属性の関数型の条件のサイズを調べる

計算格子の読み込み

cg_iric_read_complex_functional

複合型の属性の倍精度実数の関数型の条件を読み込む

計算格子の読み込み

cg_iric_read_complex_functionalwithname

複合型の属性の単精度実数の関数型の条件を読み込む

計算格子の読み込み

cg_iric_read_complex_functional_realsingle

複合型の属性の値を複数持つ倍精度実数の関数型の条件を読み込む

計算格子の読み込み

cg_iric_read_grid_complex_node

格子点で定義された複合型の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_complex_cell

セルで定義された複合型の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_functionaltimesize

次元「時刻」(Time) を持つ格子属性の、時刻の数を調べる

計算格子の読み込み

cg_iric_read_grid_functionaltime

次元「時刻」(Time)の値を読み込む

計算格子の読み込み

cg_iric_read_grid_functionaldimensionsize

次元の数を調べる

計算格子の読み込み

cg_iric_read_grid_functionaldimension_integer

整数の次元の値を読み込む

計算格子の読み込み

cg_iric_read_grid_functionaldimension_real

倍精度実数の次元の値を読み込む

計算格子の読み込み

cg_iric_read_grid_functional_integer_node

次元「時刻」を持つ、格子点で定義された整数の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_functional_real_node

次元「時刻」を持つ、格子点で定義された倍精度実数の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_functional_integer_cell

次元「時刻」を持つ、セルで定義された整数の属性を読み込む

計算格子の読み込み

cg_iric_read_grid_functional_real_cell

次元「時刻」を持つ、セルで定義された倍精度実数の属性を読み込む

境界条件の読み込み

cg_iric_read_bc_count

境界条件の数を取得する

境界条件の読み込み

cg_iric_read_bc_indicessize

境界条件の設定された要素 (格子点もしくはセル) の数を取得する

境界条件の読み込み

cg_iric_read_bc_indices

境界条件の設定された要素 (格子点もしくはセル) のインデックスの配列を取得する

境界条件の読み込み

cg_iric_read_bc_integer

整数型境界条件の値を取得する

境界条件の読み込み

cg_iric_read_bc_real

実数(倍精度)境界条件の値を取得する

境界条件の読み込み

cg_iric_read_bc_realsingle

実数(単精度)境界条件の値を取得する

境界条件の読み込み

cg_iric_read_bc_string

文字列型境界条件の値を取得する

境界条件の読み込み

cg_iric_read_bc_functionalsize

関数型境界条件のサイズを取得する

境界条件の読み込み

cg_iric_read_bc_functional

倍精度実数の関数型境界条件の値を取得する

境界条件の読み込み

cg_iric_read_bc_functional_realsingle

単精度実数の関数型境界条件の値を取得する

境界条件の読み込み

cg_iric_read_bc_functionalwithname

複数の値を持つ倍精度実数の関数型境界条件の値を取得する

地形データの読み込み

cg_iric_read_geo_count

地形データの数を返す

地形データの読み込み

cg_iric_read_geoilename

地形データのファイル名と種類を返す

地形データの読み込み

iric_geo_polygon_open

ポリゴンファイルを開く

地形データの読み込み

iric_geo_polygon_read_integervalue

ポリゴンの値を整数で返す

地形データの読み込み

iric_geo_polygon_read_realvalue

ポリゴンの値を実数で返す

地形データの読み込み

iric_geo_polygon_read_pointcount

ポリゴンの頂点の数を返す

地形データの読み込み

iric_geo_polygon_read_points

ポリゴンの頂点の座標を返す

地形データの読み込み

iric_geo_polygon_read_holecount

ポリゴンに開いた穴の数を返す

地形データの読み込み

iric_geo_polygon_read_holepointcount

ポリゴンの穴の頂点の数を返す

地形データの読み込み

iric_geo_polygon_read_holepoints

ポリゴンの穴の頂点の座標を返す

地形データの読み込み

iric_geo_polygon_close

ポリゴンファイルを閉じる

地形データの読み込み

iric_geo_riversurvey_open

河川測量データを開く

地形データの読み込み

iric_geo_riversurvey_read_count

河川横断線の数を返す

地形データの読み込み

iric_geo_riversurvey_read_position

横断線の中心点の座標を返す

地形データの読み込み

iric_geo_riversurvey_read_direction

横断線の向きを返す

地形データの読み込み

iric_geo_riversurvey_read_name

横断線の名前を文字列として返す

地形データの読み込み

iric_geo_riversurvey_read_realname

横断線の名前を実数値として返す

地形データの読み込み

iric_geo_riversurvey_read_leftshift

横断線の標高データのシフト量を返す

地形データの読み込み

iric_geo_riversurvey_read_altitudecount

横断線の標高データの数を返す

地形データの読み込み

iric_geo_riversurvey_read_altitudes

横断線の標高データを返す

地形データの読み込み

iric_geo_riversurvey_read_fixedpointl

横断線の左岸延長線のデータを返す

地形データの読み込み

iric_geo_riversurvey_read_fixedpointr

横断線の右岸延長線のデータを返す

地形データの読み込み

iric_geo_riversurvey_read_watersurfaceelevation

横断線での水面標高のデータを返す

地形データの読み込み

iric_geo_riversurvey_close

河川測量データを閉じる

計算格子の出力

cg_iric_write_grid1d_coords

1次元構造格子を出力する

計算格子の出力

cg_iric_write_grid2d_coords

2次元構造格子を出力する

計算格子の出力

cg_iric_write_grid3d_coords

3次元構造格子を出力する

計算格子の出力

cg_iric_write_grid_integer_node

格子点で定義された整数の属性を出力する

計算格子の出力

cg_iric_write_grid_real_node

格子点で定義された倍精度実数の属性を出力する

計算格子の出力

cg_iric_write_grid_integer_cell

セルで定義された整数の属性を出力する

計算格子の出力

cg_iric_write_grid_real_cell

セルで定義された倍精度実数の属性を出力する

時刻 (ループ回数) の出力

cg_iric_write_sol_time

時刻を出力する

時刻 (ループ回数) の出力

cg_iric_write_sol_iteration

ループ回数を出力する

計算結果の出力

cg_iric_write_sol_grid2d_coords

2次元構造格子を出力する

計算結果の出力

cg_iric_write_sol_grid3d_coords

3次元構造格子を出力する

計算結果の出力

cg_iric_write_sol_baseiterative_integer

整数の計算結果を出力する

計算結果の出力

cg_iric_write_sol_baseiterative_real

倍精度実数の計算結果を出力する

計算結果の出力

cg_iric_write_sol_baseiterative_string

文字列の計算結果を出力する

計算結果の出力

cg_iric_write_sol_node_integer

整数の格子点ごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_node_real

倍精度実数の格子点ごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_cell_integer

整数の格子セルごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_cell_real

倍精度実数の格子セルごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_iface_integer

整数のI方向格子エッジごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_iface_real

倍精度実数のI方向格子エッジごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_jface_integer

整数のJ方向格子エッジごとに値を持つ計算結果を出力する

計算結果の出力

cg_iric_write_sol_jface_real

倍精度実数のJ方向格子エッジごとに値を持つ計算結果を出力する

計算結果の出力 (粒子)

cg_iric_write_sol_particle_pos2d

粒子の位置を出力する (2次元)

計算結果の出力 (粒子)

cg_iric_write_sol_particle_pos3d

粒子の位置を出力する (3次元)

計算結果の出力 (粒子)

cg_iric_write_sol_particle_integer

整数の粒子ごとに値を持つ計算結果を出力する

計算結果の出力 (粒子)

cg_iric_write_sol_particle_real

倍精度実数の粒子ごとに値を持つ計算結果を出力する

計算結果の出力 (粒子)

cg_iric_write_sol_particlegroup_groupbegin

粒子で定義された計算結果の出力を開始する

計算結果の出力 (粒子)

cg_iric_write_sol_particlegroup_groupend

粒子で定義された計算結果の出力を終了する

計算結果の出力 (粒子)

cg_iric_write_sol_particlegroup_pos2d

粒子の位置を出力する (2次元)

計算結果の出力 (粒子)

cg_iric_write_sol_particlegroup_pos3d

粒子の位置を出力する (3次元)

計算結果の出力 (粒子)

cg_iric_write_sol_particlegroup_integer

整数の粒子ごとに値を持つ計算結果を出力する

計算結果の出力 (粒子)

cg_iric_write_sol_particlegroup_real

倍精度実数の粒子ごとに値を持つ計算結果を出力する

計算結果の出力 (ポリゴン・折れ線)

cg_iric_write_sol_polydata_groupbegin

ポリゴンもしくは折れ線で定義された計算結果の出力を開始する

計算結果の出力 (ポリゴン・折れ線)

cg_iric_write_sol_polydata_groupend

ポリゴンもしくは折れ線で定義された計算結果の出力を終了する

計算結果の出力 (ポリゴン・折れ線)

cg_iric_write_sol_polydata_polygon

計算結果としてポリゴンの形状を出力する

計算結果の出力 (ポリゴン・折れ線)

cg_iric_write_sol_polydata_polyline

計算結果として折れ線の形状を出力する

計算結果の出力 (ポリゴン・折れ線)

cg_iric_write_sol_polydata_integer

整数のポリゴンもしくは折れ線ごとに値を持つ計算結果を出力する

計算結果の出力 (ポリゴン・折れ線)

cg_iric_write_sol_polydata_real

倍精度実数のポリゴンもしくは折れ線ごとに値を持つ計算結果を出力する

計算結果の出力の前後に利用する関数

iric_check_cancel

ユーザがソルバーの実行をキャンセルしたか確認する

計算結果の出力の前後に利用する関数

cg_iric_check_update

ユーザが再読み込みを要求したか確認する

計算結果の出力の前後に利用する関数

cg_iric_write_sol_start

計算結果の出力開始をGUIに通知する

計算結果の出力の前後に利用する関数

cg_iric_write_sol_end

計算結果の出力終了をGUIに通知する

既存の計算結果の読み込み

cg_iric_read_sol_count

計算結果の数を取得する

既存の計算結果の読み込み

cg_iric_read_sol_time

計算結果の時刻の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_iteration

計算結果のループ回数の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_baseiterative_integer

整数の計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_baseiterative_real

倍精度実数の計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_baseiterative_string

文字列の計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_grid2d_coords

計算結果の2次元構造格子を取得する

既存の計算結果の読み込み

cg_iric_read_sol_grid3d_coords

計算結果の3次元構造格子を取得する

既存の計算結果の読み込み

cg_iric_read_sol_node_integer

整数の格子点ごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_node_real

倍精度実数の格子点ごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_cell_integer

整数の格子セルごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_cell_real

倍精度実数の格子セルごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_iface_integer

整数のI方向格子エッジごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_iface_real

倍精度実数のI方向格子エッジごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_jface_integer

整数のJ方向格子エッジごとに値を持つ計算結果の値を取得する

既存の計算結果の読み込み

cg_iric_read_sol_jface_real

倍精度実数のJ方向格子エッジごとに値を持つ計算結果の値を取得する

エラーコードの出力

cg_iric_write_errorcode

エラーコードを出力する

CGNSファイルを閉じる

cg_iric_close

CGNS ファイルを閉じる

cg_iRIC_Check_Update

ユーザーが再読み込みの要求をしたか確認し、要求していた場合は計算結果を出力する。

形式 (FORTRAN)
call cg_iRIC_Check_Update(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Check_Update(fid)
形式 (Python)
cg_iRIC_Check_Update(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Clear_Sol

計算結果を削除する。

形式 (FORTRAN)
call cg_iRIC_Clear_Sol(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Clear_Sol(fid)
形式 (Python)
cg_iRIC_Clear_Sol(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Close

CGNS ファイルを閉じる。

形式 (FORTRAN)
call cg_iRIC_Close(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Close(fid)
形式 (Python)
cg_iRIC_Close(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Copy_Grid

CGNSファイルの間で格子をコピーする。

形式 (FORTRAN)
call cg_iRIC_Copy_Grid(fid_from, fid_to, ier)
形式 (C/C++)
ier = cg_iRIC_Copy_Grid(fid_from, fid_to)
形式 (Python)
cg_iRIC_Copy_Grid(fid_from, fid_to)
引数と戻り値
fid_from
fid_from の説明

項目

名前

fid_from

入力/出力

入力

説明

コピー元ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

fid_to
fid_to の説明

項目

名前

fid_to

入力/出力

入力

説明

コピー先ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Copy_Grid_WithGridId

CGNSファイルの間で格子をコピーする。

形式 (FORTRAN)
call cg_iRIC_Copy_Grid_WithGridId(fid_from, fid_to, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Copy_Grid_WithGridId(fid_from, fid_to, gid)
形式 (Python)
cg_iRIC_Copy_Grid_WithGridId(fid_from, fid_to, gid)
引数と戻り値
fid_from
fid_from の説明

項目

名前

fid_from

入力/出力

入力

説明

コピー元ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

fid_to
fid_to の説明

項目

名前

fid_to

入力/出力

入力

説明

コピー先ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Open

CGNS ファイルを開く。

形式 (FORTRAN)
call cg_iRIC_Open(filename, mode, fid, ier)
形式 (C/C++)
ier = cg_iRIC_Open(filename, mode, fid)
形式 (Python)
fid = cg_iRIC_Open(filename, mode)
引数と戻り値
filename
filename の説明

項目

名前

filename

入力/出力

入力

説明

ファイル名

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

mode
mode の説明

項目

名前

mode

入力/出力

入力

説明

モード (IRIC_MODE_READ, IRIC_MODE_WRITE, IRIC_MODE_MODIFY のいずれか)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

fid
fid の説明

項目

名前

fid

入力/出力

出力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Count

境界条件の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Count(fid, type, num, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Count(fid, type, num)
形式 (Python)
num = cg_iRIC_Read_BC_Count(fid, type)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

出力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

cg_iRIC_Read_BC_Count_WithGridId

境界条件の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Count_WithGridId(fid, gid, type, num, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Count_WithGridId(fid, gid, type, num)
形式 (Python)
num = cg_iRIC_Read_BC_Count_WithGridId(fid, gid, type)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

出力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

cg_iRIC_Read_BC_Functional

倍精度関数型の境界条件の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Functional(fid, type, num, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Functional(fid, type, num, name, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_BC_Functional(fid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_FunctionalSize

関数型の境界条件の変数のサイズを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_FunctionalSize(fid, type, num, name, size, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_FunctionalSize(fid, type, num, name, size)
形式 (Python)
size = cg_iRIC_Read_BC_FunctionalSize(fid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

size
size の説明

項目

名前

size

入力/出力

出力

説明

関数型条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_FunctionalSize_WithGridId

関数型の境界条件の変数のサイズを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_FunctionalSize_WithGridId(fid, gid, type, num, name, size, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_FunctionalSize_WithGridId(fid, gid, type, num, name, size)
形式 (Python)
size = cg_iRIC_Read_BC_FunctionalSize_WithGridId(fid, gid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

size
size の説明

項目

名前

size

入力/出力

出力

説明

関数型条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_FunctionalWithName

倍精度関数型の境界条件の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_BC_FunctionalWithName(fid, type, num, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_FunctionalWithName(fid, type, num, name, paramname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_BC_FunctionalWithName(fid, type, num, name, paramname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_FunctionalWithName_RealSingle

単精度関数型の境界条件の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_BC_FunctionalWithName_RealSingle(fid, type, num, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_FunctionalWithName_RealSingle(fid, type, num, name, paramname, v_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_FunctionalWithName_RealSingle_WithGridId

単精度関数型の境界条件の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_BC_FunctionalWithName_RealSingle_WithGridId(fid, gid, type, num, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_FunctionalWithName_RealSingle_WithGridId(fid, gid, type, num, name, paramname, v_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_FunctionalWithName_WithGridId

倍精度関数型の境界条件の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_BC_FunctionalWithName_WithGridId(fid, gid, type, num, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_FunctionalWithName_WithGridId(fid, gid, type, num, name, paramname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_BC_FunctionalWithName_WithGridId(fid, gid, type, num, name, paramname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Functional_RealSingle

単精度関数型の境界条件の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Functional_RealSingle(fid, type, num, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Functional_RealSingle(fid, type, num, name, x_arr, y_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Functional_RealSingle_WithGridId

単精度関数型の境界条件の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Functional_RealSingle_WithGridId(fid, gid, type, num, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Functional_RealSingle_WithGridId(fid, gid, type, num, name, x_arr, y_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Functional_WithGridId

倍精度関数型の境界条件の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Functional_WithGridId(fid, gid, type, num, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Functional_WithGridId(fid, gid, type, num, name, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_BC_Functional_WithGridId(fid, gid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Indices

境界条件が設定された要素(格子点・セル・エッジ)のインデックスのリストを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Indices(fid, type, num, idx_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Indices(fid, type, num, idx_arr)
形式 (Python)
idx_arr = cg_iRIC_Read_BC_Indices(fid, type, num)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

idx_arr
idx_arr の説明

項目

名前

idx_arr

入力/出力

出力

説明

インデックスの値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考

idx_arr に返される値は、境界条件の定義位置によって、 以下に示すように異なります。 格子点、セルでは、値2つで一つの要素を定義しているのに対し、 辺では値4つで1つの要素を定義している点にご注意下さい。

境界条件の定義位置と idx_arr の値の関係

境界条件の定義位置

idx_arr の値

格子点 (node)

(格子点1のI), (格子点1のJ)
...,
(格子点NのI), (格子点NのJ)

セル (cell)

(セル1のI), (セル1のJ)
...,
(セルNのI), (セルNのJ)

辺 (edge)

(辺1の開始格子点のI), (辺1の開始格子点のJ),
(辺1の終了格子点のI), (辺1の終了格子点のJ),
...,
(辺Nの開始格子点のI), (辺Nの開始格子点のJ),
(辺Nの終了格子点のI), (辺Nの終了格子点のJ)

cg_iRIC_Read_BC_IndicesSize

境界条件が設定された要素(格子点・セル・エッジ)の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_IndicesSize(fid, type, num, size, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_IndicesSize(fid, type, num, size)
形式 (Python)
size = cg_iRIC_Read_BC_IndicesSize(fid, type, num)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

size
size の説明

項目

名前

size

入力/出力

出力

説明

インデックスの値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考

size に返される値は、境界条件が設定される位置によって、以下に示すように異なります。

境界条件を定義される位置と size の値の関係

境界条件の定義位置

sizeの値

格子点 (node)

格子点の数

セル (cell)

セルの数

辺 (edge)

辺の数×2

cg_iRIC_Read_BC_IndicesSize_WithGridId

境界条件が設定された要素(格子点・セル・エッジ)の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_IndicesSize_WithGridId(fid, gid, type, num, size, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_IndicesSize_WithGridId(fid, gid, type, num, size)
形式 (Python)
size = cg_iRIC_Read_BC_IndicesSize_WithGridId(fid, gid, type, num)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

size
size の説明

項目

名前

size

入力/出力

出力

説明

インデックスの値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考

size に返される値は、境界条件が設定される位置によって、以下に示すように異なります。

境界条件を定義される位置と size の値の関係

境界条件の定義位置

sizeの値

格子点 (node)

格子点の数

セル (cell)

セルの数

辺 (edge)

辺の数×2

cg_iRIC_Read_BC_Indices_WithGridId

境界条件が設定された要素(格子点・セル・エッジ)のインデックスのリストを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Indices_WithGridId(fid, gid, type, num, idx_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Indices_WithGridId(fid, gid, type, num, idx_arr)
形式 (Python)
idx_arr = cg_iRIC_Read_BC_Indices_WithGridId(fid, gid, type, num)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

idx_arr
idx_arr の説明

項目

名前

idx_arr

入力/出力

出力

説明

インデックスの値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考

idx_arr に返される値は、境界条件の定義位置によって、 以下に示すように異なります。 格子点、セルでは、値2つで一つの要素を定義しているのに対し、 辺では値4つで1つの要素を定義している点にご注意下さい。

境界条件の定義位置と idx_arr の値の関係

境界条件の定義位置

idx_arr の値

格子点 (node)

(格子点1のI), (格子点1のJ)
...,
(格子点NのI), (格子点NのJ)

セル (cell)

(セル1のI), (セル1のJ)
...,
(セルNのI), (セルNのJ)

辺 (edge)

(辺1の開始格子点のI), (辺1の開始格子点のJ),
(辺1の終了格子点のI), (辺1の終了格子点のJ),
...,
(辺Nの開始格子点のI), (辺Nの開始格子点のJ),
(辺Nの終了格子点のI), (辺Nの終了格子点のJ)

cg_iRIC_Read_BC_Integer

整数型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Integer(fid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Integer(fid, type, num, name, value)
形式 (Python)
value = cg_iRIC_Read_BC_Integer(fid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Integer_WithGridId

整数型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Integer_WithGridId(fid, gid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Integer_WithGridId(fid, gid, type, num, name, value)
形式 (Python)
value = cg_iRIC_Read_BC_Integer_WithGridId(fid, gid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Real

倍精度実数型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Real(fid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Real(fid, type, num, name, value)
形式 (Python)
value = cg_iRIC_Read_BC_Real(fid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_RealSingle

単精度実数型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_RealSingle(fid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_RealSingle(fid, type, num, name, value)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

real

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_RealSingle_WithGridId

単精度実数型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_RealSingle_WithGridId(fid, gid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_RealSingle_WithGridId(fid, gid, type, num, name, value)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

real

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_Real_WithGridId

倍精度実数型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_Real_WithGridId(fid, gid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_Real_WithGridId(fid, gid, type, num, name, value)
形式 (Python)
value = cg_iRIC_Read_BC_Real_WithGridId(fid, gid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_String

文字列型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_String(fid, type, num, name, strvalue, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_String(fid, type, num, name, strvalue)
形式 (Python)
strvalue = cg_iRIC_Read_BC_String(fid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_StringLen

文字列型の境界条件の長さを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_StringLen(fid, type, num, name, length, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_StringLen(fid, type, num, name, length)
形式 (Python)
length = cg_iRIC_Read_BC_StringLen(fid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

出力

説明

文字列の長さ

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_StringLen_WithGridId

文字列型の境界条件の長さを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_StringLen_WithGridId(fid, gid, type, num, name, length, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_StringLen_WithGridId(fid, gid, type, num, name, length)
形式 (Python)
length = cg_iRIC_Read_BC_StringLen_WithGridId(fid, gid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

出力

説明

文字列の長さ

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_BC_String_WithGridId

文字列型の境界条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_BC_String_WithGridId(fid, gid, type, num, name, strvalue, ier)
形式 (C/C++)
ier = cg_iRIC_Read_BC_String_WithGridId(fid, gid, type, num, name, strvalue)
形式 (Python)
strvalue = cg_iRIC_Read_BC_String_WithGridId(fid, gid, type, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_Count

複合型格子属性のグループの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_Count(fid, groupname, num, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_Count(fid, groupname, num)
形式 (Python)
num = cg_iRIC_Read_Complex_Count(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

出力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_Functional

倍精度関数型の複合型格子属性の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_Functional(fid, groupname, num, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_Functional(fid, groupname, num, name, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Complex_Functional(fid, groupname, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_FunctionalSize

関数型の複合型格子属性の変数のサイズを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_FunctionalSize(fid, groupname, num, name, size, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_FunctionalSize(fid, groupname, num, name, size)
形式 (Python)
size = cg_iRIC_Read_Complex_FunctionalSize(fid, groupname, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

size
size の説明

項目

名前

size

入力/出力

出力

説明

関数型条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_FunctionalWithName

倍精度関数型の複合型格子属性の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_FunctionalWithName(fid, groupname, num, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_FunctionalWithName(fid, groupname, num, name, paramname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Complex_FunctionalWithName(fid, groupname, num, name, paramname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_FunctionalWithName_RealSingle

単精度関数型の複合型格子属性の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_FunctionalWithName_RealSingle(fid, groupname, num, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_FunctionalWithName_RealSingle(fid, groupname, num, name, paramname, v_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_Functional_RealSingle

単精度関数型の複合型格子属性の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_Functional_RealSingle(fid, groupname, num, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_Functional_RealSingle(fid, groupname, num, name, x_arr, y_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_Integer

整数型の複合型格子属性の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_Integer(fid, groupname, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_Integer(fid, groupname, num, name, value)
形式 (Python)
value = cg_iRIC_Read_Complex_Integer(fid, groupname, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_Real

倍精度実数型の複合型格子属性の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_Real(fid, groupname, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_Real(fid, groupname, num, name, value)
形式 (Python)
value = cg_iRIC_Read_Complex_Real(fid, groupname, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_RealSingle

単精度実数型の複合型格子属性の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_RealSingle(fid, groupname, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_RealSingle(fid, groupname, num, name, value)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

real

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_String

文字列型の複合型格子属性の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_String(fid, groupname, num, name, strvalue, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_String(fid, groupname, num, name, strvalue)
形式 (Python)
strvalue = cg_iRIC_Read_Complex_String(fid, groupname, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Complex_StringLen

文字列型の複合型格子属性の長さを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Complex_StringLen(fid, groupname, num, name, length, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Complex_StringLen(fid, groupname, num, name, length)
形式 (Python)
length = cg_iRIC_Read_Complex_StringLen(fid, groupname, num, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

出力

説明

文字列の長さ

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Functional

倍精度関数型の計算条件の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Functional(fid, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Functional(fid, name, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Functional(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_FunctionalSize

関数型の計算条件の変数のサイズを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_FunctionalSize(fid, name, size, ier)
形式 (C/C++)
ier = cg_iRIC_Read_FunctionalSize(fid, name, size)
形式 (Python)
size = cg_iRIC_Read_FunctionalSize(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

size
size の説明

項目

名前

size

入力/出力

出力

説明

関数型条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_FunctionalWithName

倍精度関数型の計算条件の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_FunctionalWithName(fid, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_FunctionalWithName(fid, name, paramname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_FunctionalWithName(fid, name, paramname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_FunctionalWithName_RealSingle

単精度関数型の計算条件の変数の値を読み込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Read_FunctionalWithName_RealSingle(fid, name, paramname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_FunctionalWithName_RealSingle(fid, name, paramname, v_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Functional_RealSingle

単精度関数型の計算条件の変数の値 (X, Y) を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Functional_RealSingle(fid, name, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Functional_RealSingle(fid, name, x_arr, y_arr)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

real, dimension(:)

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Geo_Count

地理情報の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Geo_Count(fid, name, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Geo_Count(fid, name, count)
形式 (Python)
count = cg_iRIC_Read_Geo_Count(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

地理情報の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

地理情報の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Geo_Filename

地理情報のファイル名と種類を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Geo_Filename(fid, name, geoid, strvalue, type, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Geo_Filename(fid, name, geoid, strvalue, type)
形式 (Python)
strvalue, type = cg_iRIC_Read_Geo_Filename(fid, name, geoid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

地理情報の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

geoid
geoid の説明

項目

名前

geoid

入力/出力

入力

説明

地理情報データの番号 (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

ファイル名

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

type
type の説明

項目

名前

type

入力/出力

出力

説明

地理情報の種類 (1 = ポリゴン, 2 = 横断測量データ)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_CellArea

格子のセルの面積を計算して返す。

この関数に渡す g_handle は cg_iRIC_Read_Grid2d_Open, cg_iRIC_Read_Sol_Grid2d_Open を使って取得する。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_CellArea(grid_handle, cellId, area, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_CellArea(grid_handle, cellId, area)
形式 (Python)
area = cg_iRIC_Read_Grid2d_CellArea(grid_handle, cellId)
引数と戻り値
grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

入力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

cellId
cellId の説明

項目

名前

cellId

入力/出力

入力

説明

セルID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

area
area の説明

項目

名前

area

入力/出力

出力

説明

面積

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_CellNodeCount

指定したセルを構成する頂点の数を返す。

この関数に渡す g_handle は cg_iRIC_Read_Grid2d_Open, cg_iRIC_Read_Sol_Grid2d_Open を使って取得する。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_CellNodeCount(grid_handle, cellId, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_CellNodeCount(grid_handle, cellId, count)
形式 (Python)
count = cg_iRIC_Read_Grid2d_CellNodeCount(grid_handle, cellId)
引数と戻り値
grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

入力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

cellId
cellId の説明

項目

名前

cellId

入力/出力

入力

説明

セルID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

セルを構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Close

cg_iRIC_Read_Grid2d_Open, cg_iRIC_Read_Sol_Grid2d_Open で開いた格子を閉じる。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Close(grid_handle, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Close(grid_handle)
形式 (Python)
cg_iRIC_Read_Grid2d_Close(grid_handle)
引数と戻り値
grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

入力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Coords

格子の格子点の座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Coords(fid, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Coords(fid, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Grid2d_Coords(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Coords_WithGridId

格子の格子点の座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Coords_WithGridId(fid, gid, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Coords_WithGridId(fid, gid, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Grid2d_Coords_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_FindCell

指定した座標を含むセルのIDを返す。

この関数に渡す g_handle は cg_iRIC_Read_Grid2d_Open, cg_iRIC_Read_Sol_Grid2d_Open を使って取得する。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_FindCell(grid_handle, x, y, cellId, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_FindCell(grid_handle, x, y, cellId)
形式 (Python)
cellId = cg_iRIC_Read_Grid2d_FindCell(grid_handle, x, y)
引数と戻り値
grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

入力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

cellId
cellId の説明

項目

名前

cellId

入力/出力

出力

説明

セルID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Interpolate

指定した位置での値を、格子での値を使って補間して計算するための情報を返す。

この関数に渡す g_handle は cg_iRIC_Read_Grid2d_Open, cg_iRIC_Read_Sol_Grid2d_Open を使って取得する。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Interpolate(grid_handle, x, y, ok, count, nodeids_arr, weights_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Interpolate(grid_handle, x, y, ok, count, nodeids_arr, weights_arr)
形式 (Python)
ok, count, nodeids_arr, weights_arr = cg_iRIC_Read_Grid2d_Interpolate(grid_handle, x, y)
引数と戻り値
grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

入力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ok
ok の説明

項目

名前

ok

入力/出力

出力

説明

指定した座標を含むセルが見つかった場合は1, そうでなければ0

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

指定した座標を含むセルを構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

nodeids_arr
nodeids_arr の説明

項目

名前

nodeids_arr

入力/出力

出力

説明

セルを構成する格子点のIDの配列 (1から開始)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

weights_arr
weights_arr の説明

項目

名前

weights_arr

入力/出力

出力

説明

三角形を構成する頂点の値から内挿する際の重み係数の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_InterpolateWithCell

指定した位置での値を、格子での値を使って補間して計算するための情報を返す。

この関数に渡す g_handle は cg_iRIC_Read_Grid2d_Open, cg_iRIC_Read_Sol_Grid2d_Open を使って取得する。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_InterpolateWithCell(grid_handle, x, y, cellId, nodeids_arr, weights_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_InterpolateWithCell(grid_handle, x, y, cellId, nodeids_arr, weights_arr)
形式 (Python)
nodeids_arr, weights_arr = cg_iRIC_Read_Grid2d_InterpolateWithCell(grid_handle, x, y, cellId)
引数と戻り値
grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

入力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

cellId
cellId の説明

項目

名前

cellId

入力/出力

入力

説明

セルID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

nodeids_arr
nodeids_arr の説明

項目

名前

nodeids_arr

入力/出力

出力

説明

セルを構成する格子点のIDの配列 (1から開始)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

weights_arr
weights_arr の説明

項目

名前

weights_arr

入力/出力

出力

説明

三角形を構成する頂点の値から内挿する際の重み係数の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Open

格子を開く。

この関数で開いた格子は、 cg_iRIC_Read_Grid2d_Close を使用して閉じる。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Open(fid, grid_handle, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Open(fid, grid_handle)
形式 (Python)
grid_handle = cg_iRIC_Read_Grid2d_Open(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

出力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Open_WithGridId

格子を開く。

この関数で開いた格子は、 cg_iRIC_Read_Grid2d_Close を使用して閉じる。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Open_WithGridId(fid, gid, grid_handle, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Open_WithGridId(fid, gid, grid_handle)
形式 (Python)
grid_handle = cg_iRIC_Read_Grid2d_Open_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

出力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Str_Size

構造格子のサイズ (格子のI方向とJ方向の格子点数)を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Str_Size(fid, isize, jsize, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Str_Size(fid, isize, jsize)
形式 (Python)
isize, jsize = cg_iRIC_Read_Grid2d_Str_Size(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

出力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

出力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid2d_Str_Size_WithGridId

構造格子のサイズ (格子のI方向とJ方向の格子点数)を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid2d_Str_Size_WithGridId(fid, gid, isize, jsize, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid2d_Str_Size_WithGridId(fid, gid, isize, jsize)
形式 (Python)
isize, jsize = cg_iRIC_Read_Grid2d_Str_Size_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

出力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

出力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_CellCount

格子のセルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_CellCount(fid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_CellCount(fid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_CellCount(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

格子のセルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_CellCount_WithGridId

格子のセルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_CellCount_WithGridId(fid, gid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_CellCount_WithGridId(fid, gid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_CellCount_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

格子のセルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_Cell

格子のセルで定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_Cell(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_Cell(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_Cell(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_Cell_WithGridId

格子のセルで定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_Cell_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_Cell_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_Cell_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_IFace

格子のI方向のセル境界面 (エッジ) で定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_IFace(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_IFace(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_IFace(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_IFace_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_IFace_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_IFace_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_IFace_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_JFace

格子のJ方向のセル境界面 (エッジ) で定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_JFace(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_JFace(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_JFace(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_JFace_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_JFace_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_JFace_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_JFace_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_Node

格子の格子点で定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_Node(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_Node(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_Node(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Complex_Node_WithGridId

格子の格子点で定義された複合型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Complex_Node_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Complex_Node_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Complex_Node_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalDimensionSize

次元「時刻」を持つ格子の属性の次元の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalDimensionSize(fid, name, dimname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalDimensionSize(fid, name, dimname, count)
形式 (Python)
count = cg_iRIC_Read_Grid_FunctionalDimensionSize(fid, name, dimname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimname
dimname の説明

項目

名前

dimname

入力/出力

入力

説明

次元の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

次元の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalDimensionSize_WithGridId

次元「時刻」を持つ格子の属性の次元の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalDimensionSize_WithGridId(fid, gid, name, dimname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalDimensionSize_WithGridId(fid, gid, name, dimname, count)
形式 (Python)
count = cg_iRIC_Read_Grid_FunctionalDimensionSize_WithGridId(fid, gid, name, dimname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimname
dimname の説明

項目

名前

dimname

入力/出力

入力

説明

次元の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

次元の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalDimension_Integer

次元「時刻」を持つ格子の整数型の次元の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalDimension_Integer(fid, name, dimname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalDimension_Integer(fid, name, dimname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_FunctionalDimension_Integer(fid, name, dimname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimname
dimname の説明

項目

名前

dimname

入力/出力

入力

説明

次元の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalDimension_Integer_WithGridId

次元「時刻」を持つ格子の整数型の次元の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalDimension_Integer_WithGridId(fid, gid, name, dimname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalDimension_Integer_WithGridId(fid, gid, name, dimname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_FunctionalDimension_Integer_WithGridId(fid, gid, name, dimname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimname
dimname の説明

項目

名前

dimname

入力/出力

入力

説明

次元の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalDimension_Real

次元「時刻」を持つ格子の倍精度実数型の次元の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalDimension_Real(fid, name, dimname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalDimension_Real(fid, name, dimname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_FunctionalDimension_Real(fid, name, dimname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimname
dimname の説明

項目

名前

dimname

入力/出力

入力

説明

次元の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalDimension_Real_WithGridId

次元「時刻」を持つ格子の倍精度実数型の次元の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalDimension_Real_WithGridId(fid, gid, name, dimname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalDimension_Real_WithGridId(fid, gid, name, dimname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_FunctionalDimension_Real_WithGridId(fid, gid, name, dimname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimname
dimname の説明

項目

名前

dimname

入力/出力

入力

説明

次元の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalTime

次元「時刻」を持つ格子の属性の時刻を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalTime(fid, name, time_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalTime(fid, name, time_arr)
形式 (Python)
time_arr = cg_iRIC_Read_Grid_FunctionalTime(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

time_arr
time_arr の説明

項目

名前

time_arr

入力/出力

出力

説明

時刻の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalTimeSize

次元「時刻」を持つ格子の属性の次元の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalTimeSize(fid, name, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalTimeSize(fid, name, count)
形式 (Python)
count = cg_iRIC_Read_Grid_FunctionalTimeSize(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

時刻の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalTimeSize_WithGridId

次元「時刻」を持つ格子の属性の次元の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalTimeSize_WithGridId(fid, gid, name, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalTimeSize_WithGridId(fid, gid, name, count)
形式 (Python)
count = cg_iRIC_Read_Grid_FunctionalTimeSize_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

時刻の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_FunctionalTime_WithGridId

次元「時刻」を持つ格子の属性の時刻を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_FunctionalTime_WithGridId(fid, gid, name, time_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_FunctionalTime_WithGridId(fid, gid, name, time_arr)
形式 (Python)
time_arr = cg_iRIC_Read_Grid_FunctionalTime_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

time_arr
time_arr の説明

項目

名前

time_arr

入力/出力

出力

説明

時刻の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_Cell

次元「時刻」を持つ、格子のセルで定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_Cell(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_Cell(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_Cell(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_Cell_WithGridId

次元「時刻」を持つ、格子のセルで定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_Cell_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_Cell_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_Cell_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_IFace

次元「時刻」を持つ、格子のI方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_IFace(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_IFace(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_IFace(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_IFace_WithGridId

次元「時刻」を持つ、格子のI方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_IFace_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_IFace_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_IFace_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_JFace

次元「時刻」を持つ、格子のJ方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_JFace(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_JFace(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_JFace(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_JFace_WithGridId

次元「時刻」を持つ、格子のJ方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_JFace_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_JFace_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_JFace_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_Node

次元「時刻」を持つ、格子の格子点で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_Node(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_Node(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_Node(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Integer_Node_WithGridId

次元「時刻」を持つ、格子の格子点で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Integer_Node_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Integer_Node_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Integer_Node_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_Cell

次元「時刻」を持つ、格子のセルで定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_Cell(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_Cell(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_Cell(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_Cell_WithGridId

次元「時刻」を持つ、格子のセルで定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_Cell_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_Cell_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_Cell_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_IFace

次元「時刻」を持つ、格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_IFace(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_IFace(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_IFace(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_IFace_WithGridId

次元「時刻」を持つ、格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_IFace_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_IFace_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_IFace_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_JFace

次元「時刻」を持つ、格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_JFace(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_JFace(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_JFace(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_JFace_WithGridId

次元「時刻」を持つ、格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_JFace_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_JFace_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_JFace_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_Node

次元「時刻」を持つ、格子の格子点で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_Node(fid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_Node(fid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_Node(fid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Functional_Real_Node_WithGridId

次元「時刻」を持つ、格子の格子点で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Functional_Real_Node_WithGridId(fid, gid, name, dimid, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Functional_Real_Node_WithGridId(fid, gid, name, dimid, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Functional_Real_Node_WithGridId(fid, gid, name, dimid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

dimid
dimid の説明

項目

名前

dimid

入力/出力

入力

説明

時刻のID (1 ~ 時刻の数)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_IFaceCount

格子のI方向のセル境界面 (エッジ) の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_IFaceCount(fid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_IFaceCount(fid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_IFaceCount(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

I方向のセル境界面 (エッジ) の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_IFaceCount_WithGridId

格子のI方向のセル境界面 (エッジ) の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_IFaceCount_WithGridId(fid, gid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_IFaceCount_WithGridId(fid, gid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_IFaceCount_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

I方向のセル境界面 (エッジ) の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_Cell

格子のセルで定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_Cell(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_Cell(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_Cell(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_Cell_WithGridId

格子のセルで定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_Cell_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_Cell_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_Cell_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_IFace

格子のI方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_IFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_IFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_IFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_IFace_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_IFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_IFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_IFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_JFace

格子のJ方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_JFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_JFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_JFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_JFace_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_JFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_JFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_JFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_Node

格子の格子点で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_Node(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_Node(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_Node(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Integer_Node_WithGridId

格子の格子点で定義された整数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Integer_Node_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Integer_Node_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Integer_Node_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_JFaceCount

格子のJ方向のセル境界面 (エッジ) の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_JFaceCount(fid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_JFaceCount(fid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_JFaceCount(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

J方向のセル境界面 (エッジ) の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_JFaceCount_WithGridId

格子のJ方向のセル境界面 (エッジ) の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_JFaceCount_WithGridId(fid, gid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_JFaceCount_WithGridId(fid, gid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_JFaceCount_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

J方向のセル境界面 (エッジ) の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_KFaceCount

格子のK方向のセル境界面 (エッジ) の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_KFaceCount(fid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_KFaceCount(fid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_KFaceCount(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

K方向のセル境界面 (エッジ) の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_KFaceCount_WithGridId

格子のK方向のセル境界面 (エッジ) の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_KFaceCount_WithGridId(fid, gid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_KFaceCount_WithGridId(fid, gid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_KFaceCount_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

K方向のセル境界面 (エッジ) の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_NodeCount

格子の格子点の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_NodeCount(fid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_NodeCount(fid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_NodeCount(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

格子の格子点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_NodeCount_WithGridId

格子の格子点の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_NodeCount_WithGridId(fid, gid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_NodeCount_WithGridId(fid, gid, count)
形式 (Python)
count = cg_iRIC_Read_Grid_NodeCount_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

格子の格子点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_Cell

格子のセルで定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_Cell(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_Cell(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_Cell(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_Cell_WithGridId

格子のセルで定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_Cell_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_Cell_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_Cell_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_IFace

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_IFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_IFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_IFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_IFace_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_IFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_IFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_IFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_JFace

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_JFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_JFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_JFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_JFace_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_JFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_JFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_JFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_Node

格子の格子点で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_Node(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_Node(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_Node(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_Real_Node_WithGridId

格子の格子点で定義された倍精度実数型の属性を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_Real_Node_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_Real_Node_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Grid_Real_Node_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_TriangleElements

非構造格子の三角形を構成する頂点IDの配列を読み込む。

id_arr に、セルの数 x 3 のサイズの配列を渡すと、 1, 2, 3 番目, 4, 5, 6 番目, ... にそれぞれ 1番目, 2番目の三角形を構成する頂点の ID が返される。

配列 id_arr を作成するために、先に cg_iRIC_Read_CellCount で三角形の数を調べる。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_TriangleElements(fid, id_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_TriangleElements(fid, id_arr)
形式 (Python)
id_arr = cg_iRIC_Read_Grid_TriangleElements(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

id_arr
id_arr の説明

項目

名前

id_arr

入力/出力

出力

説明

三角形を構成する頂点IDの配列 (1から開始)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_TriangleElementsSize

非構造格子の三角形を構成する頂点IDの配列に必要なサイズを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_TriangleElementsSize(fid, tsize, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_TriangleElementsSize(fid, tsize)
形式 (Python)
tsize = cg_iRIC_Read_Grid_TriangleElementsSize(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

tsize
tsize の説明

項目

名前

tsize

入力/出力

出力

説明

三角形の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_TriangleElementsSize_WithGridId

非構造格子の三角形を構成する頂点IDの配列に必要なサイズを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_TriangleElementsSize_WithGridId(fid, gid, tsize, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_TriangleElementsSize_WithGridId(fid, gid, tsize)
形式 (Python)
tsize = cg_iRIC_Read_Grid_TriangleElementsSize_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

tsize
tsize の説明

項目

名前

tsize

入力/出力

出力

説明

三角形の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Grid_TriangleElements_WithGridId

非構造格子の三角形を構成する頂点IDの配列を読み込む。

id_arr に、セルの数 x 3 のサイズの配列を渡すと、 1, 2, 3 番目, 4, 5, 6 番目, ... にそれぞれ 1番目, 2番目の三角形を構成する頂点の ID が返される。

配列 id_arr を作成するために、先に cg_iRIC_Read_CellCount で三角形の数を調べる。

形式 (FORTRAN)
call cg_iRIC_Read_Grid_TriangleElements_WithGridId(fid, gid, id_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Grid_TriangleElements_WithGridId(fid, gid, id_arr)
形式 (Python)
id_arr = cg_iRIC_Read_Grid_TriangleElements_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

id_arr
id_arr の説明

項目

名前

id_arr

入力/出力

出力

説明

三角形を構成する頂点IDの配列 (1から開始)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Integer

整数型の計算条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Integer(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Integer(fid, name, value)
形式 (Python)
value = cg_iRIC_Read_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Real

倍精度実数型の計算条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Real(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Real(fid, name, value)
形式 (Python)
value = cg_iRIC_Read_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_RealSingle

単精度実数型の計算条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_RealSingle(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_RealSingle(fid, name, value)
形式 (Python)

Python では定義されていません

引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

real

データ型 (C/C++)

float*

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_BaseIterative_Integer

グローバルに定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_BaseIterative_Integer(fid, step, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_BaseIterative_Integer(fid, step, name, value)
形式 (Python)
value = cg_iRIC_Read_Sol_BaseIterative_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

計算結果の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_BaseIterative_Real

グローバルに定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_BaseIterative_Real(fid, step, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_BaseIterative_Real(fid, step, name, value)
形式 (Python)
value = cg_iRIC_Read_Sol_BaseIterative_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

出力

説明

計算結果の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_BaseIterative_String

グローバルに定義された文字列型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_BaseIterative_String(fid, step, name, strvalue, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_BaseIterative_String(fid, step, name, strvalue)
形式 (Python)
strvalue = cg_iRIC_Read_Sol_BaseIterative_String(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

計算結果の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_BaseIterative_StringLen

グローバルに定義された文字列型の計算結果の文字列の長さを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_BaseIterative_StringLen(fid, step, name, length, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_BaseIterative_StringLen(fid, step, name, length)
形式 (Python)
length = cg_iRIC_Read_Sol_BaseIterative_StringLen(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

出力

説明

文字列の長さ

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Cell_Integer

格子のセルで定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Cell_Integer(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Cell_Integer(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Cell_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Cell_Integer_WithGridId

格子のセルで定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Cell_Integer_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Cell_Integer_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Cell_Integer_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Cell_Real

格子のセルで定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Cell_Real(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Cell_Real(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Cell_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Cell_Real_WithGridId

格子のセルで定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Cell_Real_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Cell_Real_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Cell_Real_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Count

計算結果の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Count(fid, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Count(fid, count)
形式 (Python)
count = cg_iRIC_Read_Sol_Count(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

計算結果の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Grid2d_Coords

計算結果の格子の格子点座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Grid2d_Coords(fid, step, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Grid2d_Coords(fid, step, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_Grid2d_Coords(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Grid2d_Coords_WithGridId

計算結果の格子の格子点座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Grid2d_Coords_WithGridId(fid, gid, step, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Grid2d_Coords_WithGridId(fid, gid, step, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_Grid2d_Coords_WithGridId(fid, gid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Grid2d_Open

計算結果の格子を開く。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Grid2d_Open(fid, step, grid_handle, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Grid2d_Open(fid, step, grid_handle)
形式 (Python)
grid_handle = cg_iRIC_Read_Sol_Grid2d_Open(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

出力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Grid2d_Open_WithGridId

計算結果の格子を開く。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Grid2d_Open_WithGridId(fid, gid, step, grid_handle, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Grid2d_Open_WithGridId(fid, gid, step, grid_handle)
形式 (Python)
grid_handle = cg_iRIC_Read_Sol_Grid2d_Open_WithGridId(fid, gid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

grid_handle
grid_handle の説明

項目

名前

grid_handle

入力/出力

出力

説明

格子のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Grid3d_Coords

計算結果の格子の格子点座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Grid3d_Coords(fid, step, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Grid3d_Coords(fid, step, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Read_Sol_Grid3d_Coords(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Grid3d_Coords_WithGridId

計算結果の格子の格子点座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Grid3d_Coords_WithGridId(fid, gid, step, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Grid3d_Coords_WithGridId(fid, gid, step, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Read_Sol_Grid3d_Coords_WithGridId(fid, gid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_IFace_Integer

格子のI方向のセル境界面 (エッジ) で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_IFace_Integer(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_IFace_Integer(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_IFace_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_IFace_Integer_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_IFace_Integer_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_IFace_Integer_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_IFace_Integer_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_IFace_Real

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_IFace_Real(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_IFace_Real(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_IFace_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_IFace_Real_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_IFace_Real_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_IFace_Real_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_IFace_Real_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Iteration

計算結果のループ回数の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Iteration(fid, step, iteration, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Iteration(fid, step, iteration)
形式 (Python)
iteration = cg_iRIC_Read_Sol_Iteration(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

iteration
iteration の説明

項目

名前

iteration

入力/出力

出力

説明

ループ回数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_JFace_Integer

格子のJ方向のセル境界面 (エッジ) で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_JFace_Integer(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_JFace_Integer(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_JFace_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_JFace_Integer_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_JFace_Integer_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_JFace_Integer_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_JFace_Integer_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_JFace_Real

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_JFace_Real(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_JFace_Real(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_JFace_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_JFace_Real_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_JFace_Real_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_JFace_Real_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_JFace_Real_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_KFace_Integer

格子のK方向のセル境界面 (エッジ) で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_KFace_Integer(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_KFace_Integer(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_KFace_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_KFace_Integer_WithGridId

格子のK方向のセル境界面 (エッジ) で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_KFace_Integer_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_KFace_Integer_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_KFace_Integer_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_KFace_Real

格子のK方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_KFace_Real(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_KFace_Real(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_KFace_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_KFace_Real_WithGridId

格子のK方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_KFace_Real_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_KFace_Real_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_KFace_Real_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Node_Integer

格子の格子点で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Node_Integer(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Node_Integer(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Node_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Node_Integer_WithGridId

格子の格子点で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Node_Integer_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Node_Integer_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Node_Integer_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Node_Real

格子の格子点で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Node_Real(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Node_Real(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Node_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Node_Real_WithGridId

格子の格子点で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Node_Real_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Node_Real_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Node_Real_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroupImage_Count

パーティクルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroupImage_Count(fid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroupImage_Count(fid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_ParticleGroupImage_Count(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroupImage_Count_WithGridId

パーティクルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroupImage_Count_WithGridId(fid, gid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroupImage_Count_WithGridId(fid, gid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_ParticleGroupImage_Count_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d(fid, step, groupname, x_arr, y_arr, size_arr, angle_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d(fid, step, groupname, x_arr, y_arr, size_arr, angle_arr)
形式 (Python)
x_arr, y_arr, size_arr, angle_arr = cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

size_arr
size_arr の説明

項目

名前

size_arr

入力/出力

出力

説明

サイズの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

angle_arr
angle_arr の説明

項目

名前

angle_arr

入力/出力

出力

説明

角度の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d_WithGridId

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d_WithGridId(fid, gid, step, groupname, x_arr, y_arr, size_arr, angle_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d_WithGridId(fid, gid, step, groupname, x_arr, y_arr, size_arr, angle_arr)
形式 (Python)
x_arr, y_arr, size_arr, angle_arr = cg_iRIC_Read_Sol_ParticleGroupImage_Pos2d_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

size_arr
size_arr の説明

項目

名前

size_arr

入力/出力

出力

説明

サイズの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

angle_arr
angle_arr の説明

項目

名前

angle_arr

入力/出力

出力

説明

角度の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Count

パーティクルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Count(fid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Count(fid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_ParticleGroup_Count(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Count_WithGridId

パーティクルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Count_WithGridId(fid, gid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Count_WithGridId(fid, gid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_ParticleGroup_Count_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Integer

格子のパーティクルで定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Integer(fid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Integer(fid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_ParticleGroup_Integer(fid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Integer_WithGridId

格子のパーティクルで定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Integer_WithGridId(fid, gid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Integer_WithGridId(fid, gid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_ParticleGroup_Integer_WithGridId(fid, gid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Pos2d

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Pos2d(fid, step, groupname, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Pos2d(fid, step, groupname, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_ParticleGroup_Pos2d(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Pos2d_WithGridId

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Pos2d_WithGridId(fid, gid, step, groupname, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Pos2d_WithGridId(fid, gid, step, groupname, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_ParticleGroup_Pos2d_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Pos3d

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Pos3d(fid, step, groupname, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Pos3d(fid, step, groupname, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Read_Sol_ParticleGroup_Pos3d(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Pos3d_WithGridId

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Pos3d_WithGridId(fid, gid, step, groupname, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Pos3d_WithGridId(fid, gid, step, groupname, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Read_Sol_ParticleGroup_Pos3d_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Real

格子のパーティクルで定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Real(fid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Real(fid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_ParticleGroup_Real(fid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_ParticleGroup_Real_WithGridId

格子のパーティクルで定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_ParticleGroup_Real_WithGridId(fid, gid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_ParticleGroup_Real_WithGridId(fid, gid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_ParticleGroup_Real_WithGridId(fid, gid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Count

パーティクルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Count(fid, step, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Count(fid, step, count)
形式 (Python)
count = cg_iRIC_Read_Sol_Particle_Count(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Count_WithGridId

パーティクルの数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Count_WithGridId(fid, gid, step, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Count_WithGridId(fid, gid, step, count)
形式 (Python)
count = cg_iRIC_Read_Sol_Particle_Count_WithGridId(fid, gid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Integer

格子のパーティクルで定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Integer(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Integer(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Particle_Integer(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Integer_WithGridId

格子のパーティクルで定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Integer_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Integer_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Particle_Integer_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Pos2d

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Pos2d(fid, step, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Pos2d(fid, step, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_Particle_Pos2d(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Pos2d_WithGridId

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Pos2d_WithGridId(fid, gid, step, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Pos2d_WithGridId(fid, gid, step, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_Particle_Pos2d_WithGridId(fid, gid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Pos3d

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Pos3d(fid, step, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Pos3d(fid, step, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Read_Sol_Particle_Pos3d(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Pos3d_WithGridId

パーティクルの位置を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Pos3d_WithGridId(fid, gid, step, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Pos3d_WithGridId(fid, gid, step, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Read_Sol_Particle_Pos3d_WithGridId(fid, gid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Real

格子のパーティクルで定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Real(fid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Real(fid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Particle_Real(fid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Particle_Real_WithGridId

格子のパーティクルで定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Particle_Real_WithGridId(fid, gid, step, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Particle_Real_WithGridId(fid, gid, step, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_Particle_Real_WithGridId(fid, gid, step, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_CoordinateCount

ポリゴンもしくは折れ線で定義された計算結果の頂点数の合計を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_CoordinateCount(fid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_CoordinateCount(fid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_PolyData_CoordinateCount(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

ポリゴンもしくは折れ線を構成する頂点の数の合計値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_CoordinateCount_WithGridId

ポリゴンもしくは折れ線で定義された計算結果の頂点数の合計を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_CoordinateCount_WithGridId(fid, gid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_CoordinateCount_WithGridId(fid, gid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_PolyData_CoordinateCount_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

ポリゴンもしくは折れ線を構成する頂点の数の合計値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_DataCount

ポリゴンもしくは折れ線で定義された計算結果の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_DataCount(fid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_DataCount(fid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_PolyData_DataCount(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

ポリゴンもしくは折れ線の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_DataCount_WithGridId

ポリゴンもしくは折れ線で定義された計算結果の数を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_DataCount_WithGridId(fid, gid, step, groupname, count, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_DataCount_WithGridId(fid, gid, step, groupname, count)
形式 (Python)
count = cg_iRIC_Read_Sol_PolyData_DataCount_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

count
count の説明

項目

名前

count

入力/出力

出力

説明

ポリゴンもしくは折れ線の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Integer

格子のポリゴンもしくは折れ線で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Integer(fid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Integer(fid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_PolyData_Integer(fid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Integer_WithGridId

格子のポリゴンもしくは折れ線で定義された整数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Integer_WithGridId(fid, gid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Integer_WithGridId(fid, gid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_PolyData_Integer_WithGridId(fid, gid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Pos2d

ポリゴンもしくは折れ線で定義された計算結果の頂点の座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Pos2d(fid, step, groupname, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Pos2d(fid, step, groupname, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_PolyData_Pos2d(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Pos2d_WithGridId

ポリゴンもしくは折れ線で定義された計算結果の頂点の座標を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Pos2d_WithGridId(fid, gid, step, groupname, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Pos2d_WithGridId(fid, gid, step, groupname, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Read_Sol_PolyData_Pos2d_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Real

格子のポリゴンもしくは折れ線で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Real(fid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Real(fid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_PolyData_Real(fid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Real_WithGridId

格子のポリゴンもしくは折れ線で定義された倍精度実数型の計算結果を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Real_WithGridId(fid, gid, step, groupname, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Real_WithGridId(fid, gid, step, groupname, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_PolyData_Real_WithGridId(fid, gid, step, groupname, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Type

ポリゴンもしくは折れ線で定義された計算結果の種類を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Type(fid, step, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Type(fid, step, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_PolyData_Type(fid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

種類の値の配列 (1 = ポリゴン, 2 = 折れ線)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_PolyData_Type_WithGridId

ポリゴンもしくは折れ線で定義された計算結果の種類を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_PolyData_Type_WithGridId(fid, gid, step, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_PolyData_Type_WithGridId(fid, gid, step, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Read_Sol_PolyData_Type_WithGridId(fid, gid, step, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

種類の値の配列 (1 = ポリゴン, 2 = 折れ線)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_Sol_Time

計算結果の時刻の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_Sol_Time(fid, step, time, ier)
形式 (C/C++)
ier = cg_iRIC_Read_Sol_Time(fid, step, time)
形式 (Python)
time = cg_iRIC_Read_Sol_Time(fid, step)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

step
step の説明

項目

名前

step

入力/出力

入力

説明

ステップ数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

time
time の説明

項目

名前

time

入力/出力

出力

説明

時刻

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_String

文字列型の計算条件の値を読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_String(fid, name, strvalue, ier)
形式 (C/C++)
ier = cg_iRIC_Read_String(fid, name, strvalue)
形式 (Python)
strvalue = cg_iRIC_Read_String(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Read_StringLen

文字列型の計算条件の長さを読み込む。

形式 (FORTRAN)
call cg_iRIC_Read_StringLen(fid, name, length, ier)
形式 (C/C++)
ier = cg_iRIC_Read_StringLen(fid, name, length)
形式 (Python)
length = cg_iRIC_Read_StringLen(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

出力

説明

文字列の長さ

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_Functional

倍精度関数型の境界条件の変数の値 (X, Y) を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Functional(fid, type, num, name, length, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Functional(fid, type, num, name, length, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_BC_Functional(fid, type, num, name, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_FunctionalWithName

倍精度関数型の境界条件の変数の値を書き込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Write_BC_FunctionalWithName(fid, type, num, name, paramname, length, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_FunctionalWithName(fid, type, num, name, paramname, length, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_BC_FunctionalWithName(fid, type, num, name, paramname, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_FunctionalWithName_WithGridId

倍精度関数型の境界条件の変数の値を書き込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Write_BC_FunctionalWithName_WithGridId(fid, gid, type, num, name, paramname, length, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_FunctionalWithName_WithGridId(fid, gid, type, num, name, paramname, length, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_BC_FunctionalWithName_WithGridId(fid, gid, type, num, name, paramname, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_Functional_WithGridId

倍精度関数型の境界条件の変数の値 (X, Y) を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Functional_WithGridId(fid, gid, type, num, name, length, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Functional_WithGridId(fid, gid, type, num, name, length, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_BC_Functional_WithGridId(fid, gid, type, num, name, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_Indices

境界条件が設定された要素(格子点・セル・エッジ)のインデックスのリストを書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Indices(fid, type, num, length, idx_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Indices(fid, type, num, length, idx_arr)
形式 (Python)
idx_arr = cg_iRIC_Write_BC_Indices(fid, type, num, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

length
length の説明

項目

名前

length

入力/出力

入力

説明

インデックスの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

idx_arr
idx_arr の説明

項目

名前

idx_arr

入力/出力

出力

説明

インデックスの値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考

idx_arr に渡す値は、境界条件の定義位置によって、 以下に示すように異なります。 格子点、セルでは、値2つで一つの要素を定義しているのに対し、 辺では値4つで1つの要素を定義している点にご注意下さい。

境界条件の定義位置と idx_arr の値の関係

境界条件の定義位置

idx_arr の値

格子点 (node)

(格子点1のI), (格子点1のJ)
...,
(格子点NのI), (格子点NのJ)

セル (cell)

(セル1のI), (セル1のJ)
...,
(セルNのI), (セルNのJ)

辺 (edge)

(辺1の開始格子点のI), (辺1の開始格子点のJ),
(辺1の終了格子点のI), (辺1の終了格子点のJ),
...,
(辺Nの開始格子点のI), (辺Nの開始格子点のJ),
(辺Nの終了格子点のI), (辺Nの終了格子点のJ)

cg_iRIC_Write_BC_Indices_WithGridId

境界条件が設定された要素(格子点・セル・エッジ)のインデックスのリストを書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Indices_WithGridId(fid, gid, type, num, length, idx_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Indices_WithGridId(fid, gid, type, num, length, idx_arr)
形式 (Python)
idx_arr = cg_iRIC_Write_BC_Indices_WithGridId(fid, gid, type, num, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

length
length の説明

項目

名前

length

入力/出力

入力

説明

インデックスの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

idx_arr
idx_arr の説明

項目

名前

idx_arr

入力/出力

出力

説明

インデックスの値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考

idx_arr に渡す値は、境界条件の定義位置によって、 以下に示すように異なります。 格子点、セルでは、値2つで一つの要素を定義しているのに対し、 辺では値4つで1つの要素を定義している点にご注意下さい。

境界条件の定義位置と idx_arr の値の関係

境界条件の定義位置

idx_arr の値

格子点 (node)

(格子点1のI), (格子点1のJ)
...,
(格子点NのI), (格子点NのJ)

セル (cell)

(セル1のI), (セル1のJ)
...,
(セルNのI), (セルNのJ)

辺 (edge)

(辺1の開始格子点のI), (辺1の開始格子点のJ),
(辺1の終了格子点のI), (辺1の終了格子点のJ),
...,
(辺Nの開始格子点のI), (辺Nの開始格子点のJ),
(辺Nの終了格子点のI), (辺Nの終了格子点のJ)

cg_iRIC_Write_BC_Integer

整数型の境界条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Integer(fid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Integer(fid, type, num, name, value)
形式 (Python)
cg_iRIC_Write_BC_Integer(fid, type, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_Integer_WithGridId

整数型の境界条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Integer_WithGridId(fid, gid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Integer_WithGridId(fid, gid, type, num, name, value)
形式 (Python)
cg_iRIC_Write_BC_Integer_WithGridId(fid, gid, type, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_Real

倍精度実数型の境界条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Real(fid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Real(fid, type, num, name, value)
形式 (Python)
cg_iRIC_Write_BC_Real(fid, type, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_Real_WithGridId

倍精度実数型の境界条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_Real_WithGridId(fid, gid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_Real_WithGridId(fid, gid, type, num, name, value)
形式 (Python)
cg_iRIC_Write_BC_Real_WithGridId(fid, gid, type, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_String

文字列型の境界条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_String(fid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_String(fid, type, num, name, value)
形式 (Python)
cg_iRIC_Write_BC_String(fid, type, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_BC_String_WithGridId

文字列型の境界条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_BC_String_WithGridId(fid, gid, type, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_BC_String_WithGridId(fid, gid, type, num, name, value)
形式 (Python)
cg_iRIC_Write_BC_String_WithGridId(fid, gid, type, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

type
type の説明

項目

名前

type

入力/出力

入力

説明

境界条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

境界条件の番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Complex_Functional

倍精度関数型の複合型格子属性の変数の値 (X, Y) を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Complex_Functional(fid, groupname, num, name, length, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Complex_Functional(fid, groupname, num, name, length, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Complex_Functional(fid, groupname, num, name, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Complex_FunctionalWithName

倍精度関数型の複合型格子属性の変数の値を書き込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Write_Complex_FunctionalWithName(fid, groupname, num, name, paramname, length, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Complex_FunctionalWithName(fid, groupname, num, name, paramname, length, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Complex_FunctionalWithName(fid, groupname, num, name, paramname, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Complex_Integer

整数型の複合型格子属性の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Complex_Integer(fid, groupname, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Complex_Integer(fid, groupname, num, name, value)
形式 (Python)
cg_iRIC_Write_Complex_Integer(fid, groupname, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Complex_Real

倍精度実数型の複合型格子属性の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Complex_Real(fid, groupname, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Complex_Real(fid, groupname, num, name, value)
形式 (Python)
cg_iRIC_Write_Complex_Real(fid, groupname, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Complex_String

文字列型の複合型格子属性の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Complex_String(fid, groupname, num, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Complex_String(fid, groupname, num, name, value)
形式 (Python)
cg_iRIC_Write_Complex_String(fid, groupname, num, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

num
num の説明

項目

名前

num

入力/出力

入力

説明

複合型条件のグループ番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_ErrorCode

エラーコードを書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_ErrorCode(fid, errorcode, ier)
形式 (C/C++)
ier = cg_iRIC_Write_ErrorCode(fid, errorcode)
形式 (Python)
cg_iRIC_Write_ErrorCode(fid, errorcode)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

errorcode
errorcode の説明

項目

名前

errorcode

入力/出力

入力

説明

エラーコード

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Functional

倍精度関数型の計算条件の変数の値 (X, Y) を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Functional(fid, name, length, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Functional(fid, name, length, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Functional(fid, name, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

Xの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Yの値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_FunctionalWithName

倍精度関数型の計算条件の変数の値を書き込む。変数が1つ、値が複数の関数型の読み込みに利用する。

形式 (FORTRAN)
call cg_iRIC_Write_FunctionalWithName(fid, name, paramname, length, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_FunctionalWithName(fid, name, paramname, length, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_FunctionalWithName(fid, name, paramname, length)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

paramname
paramname の説明

項目

名前

paramname

入力/出力

入力

説明

値の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

length
length の説明

項目

名前

length

入力/出力

入力

説明

条件の値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

条件の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid1d_Coords

1次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_Grid1d_Coords(fid, isize, x_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid1d_Coords(fid, isize, x_arr)
形式 (Python)
x_arr = cg_iRIC_Write_Grid1d_Coords(fid, isize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid1d_Coords_WithGridId

1次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_Grid1d_Coords_WithGridId(fid, isize, x_arr, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid1d_Coords_WithGridId(fid, isize, x_arr, gid)
形式 (Python)
x_arr, gid = cg_iRIC_Write_Grid1d_Coords_WithGridId(fid, isize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

gid
gid の説明

項目

名前

gid

入力/出力

出力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid2d_Coords

2次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_Grid2d_Coords(fid, isize, jsize, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid2d_Coords(fid, isize, jsize, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Grid2d_Coords(fid, isize, jsize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid2d_Coords_WithGridId

2次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_Grid2d_Coords_WithGridId(fid, isize, jsize, x_arr, y_arr, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid2d_Coords_WithGridId(fid, isize, jsize, x_arr, y_arr, gid)
形式 (Python)
x_arr, y_arr, gid = cg_iRIC_Write_Grid2d_Coords_WithGridId(fid, isize, jsize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

gid
gid の説明

項目

名前

gid

入力/出力

出力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid3d_Coords

3次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_Grid3d_Coords(fid, isize, jsize, ksize, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid3d_Coords(fid, isize, jsize, ksize, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Write_Grid3d_Coords(fid, isize, jsize, ksize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ksize
ksize の説明

項目

名前

ksize

入力/出力

入力

説明

K方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid3d_Coords_WithGridId

3次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_Grid3d_Coords_WithGridId(fid, isize, jsize, ksize, x_arr, y_arr, z_arr, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid3d_Coords_WithGridId(fid, isize, jsize, ksize, x_arr, y_arr, z_arr, gid)
形式 (Python)
x_arr, y_arr, z_arr, gid = cg_iRIC_Write_Grid3d_Coords_WithGridId(fid, isize, jsize, ksize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ksize
ksize の説明

項目

名前

ksize

入力/出力

入力

説明

K方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

gid
gid の説明

項目

名前

gid

入力/出力

出力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_Cell

格子のセルで定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_Cell(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_Cell(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_Cell(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_Cell_WithGridId

格子のセルで定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_Cell_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_Cell_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_Cell_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_IFace

格子のI方向のセル境界面 (エッジ) で定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_IFace(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_IFace(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_IFace(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_IFace_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_IFace_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_IFace_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_IFace_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_JFace

格子のJ方向のセル境界面 (エッジ) で定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_JFace(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_JFace(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_JFace(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_JFace_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_JFace_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_JFace_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_JFace_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_Node

格子の格子点で定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_Node(fid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_Node(fid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_Node(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Complex_Node_WithGridId

格子の格子点で定義された複合型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Complex_Node_WithGridId(fid, gid, groupname, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Complex_Node_WithGridId(fid, gid, groupname, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Complex_Node_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

複合型条件の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_Cell

格子のセルで定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_Cell(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_Cell(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_Cell(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_Cell_WithGridId

格子のセルで定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_Cell_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_Cell_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_Cell_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_IFace

格子のI方向のセル境界面 (エッジ) で定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_IFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_IFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_IFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_IFace_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_IFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_IFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_IFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_JFace

格子のJ方向のセル境界面 (エッジ) で定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_JFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_JFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_JFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_JFace_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_JFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_JFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_JFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_Node

格子の格子点で定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_Node(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_Node(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_Node(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Integer_Node_WithGridId

格子の格子点で定義された整数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Integer_Node_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Integer_Node_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Integer_Node_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_Cell

格子のセルで定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_Cell(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_Cell(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_Cell(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_Cell_WithGridId

格子のセルで定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_Cell_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_Cell_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_Cell_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_IFace

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_IFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_IFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_IFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_IFace_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_IFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_IFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_IFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_JFace

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_JFace(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_JFace(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_JFace(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_JFace_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_JFace_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_JFace_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_JFace_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_Node

格子の格子点で定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_Node(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_Node(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_Node(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Grid_Real_Node_WithGridId

格子の格子点で定義された倍精度実数型の属性を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Grid_Real_Node_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Grid_Real_Node_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Grid_Real_Node_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子属性の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

格子属性の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Integer

整数型の計算条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Integer(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Integer(fid, name, value)
形式 (Python)
cg_iRIC_Write_Integer(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_NamedGrid1d_Coords

1次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_NamedGrid1d_Coords(fid, name, isize, x_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_NamedGrid1d_Coords(fid, name, isize, x_arr)
形式 (Python)
x_arr = cg_iRIC_Write_NamedGrid1d_Coords(fid, name, isize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_NamedGrid1d_Coords_WithGridId

1次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_NamedGrid1d_Coords_WithGridId(fid, name, isize, x_arr, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_NamedGrid1d_Coords_WithGridId(fid, name, isize, x_arr, gid)
形式 (Python)
x_arr, gid = cg_iRIC_Write_NamedGrid1d_Coords_WithGridId(fid, name, isize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

gid
gid の説明

項目

名前

gid

入力/出力

出力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_NamedGrid2d_Coords

2次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_NamedGrid2d_Coords(fid, name, isize, jsize, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_NamedGrid2d_Coords(fid, name, isize, jsize, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_NamedGrid2d_Coords(fid, name, isize, jsize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_NamedGrid2d_Coords_WithGridId

2次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_NamedGrid2d_Coords_WithGridId(fid, name, isize, jsize, x_arr, y_arr, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_NamedGrid2d_Coords_WithGridId(fid, name, isize, jsize, x_arr, y_arr, gid)
形式 (Python)
x_arr, y_arr, gid = cg_iRIC_Write_NamedGrid2d_Coords_WithGridId(fid, name, isize, jsize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

gid
gid の説明

項目

名前

gid

入力/出力

出力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_NamedGrid3d_Coords

3次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_NamedGrid3d_Coords(fid, name, isize, jsize, ksize, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_NamedGrid3d_Coords(fid, name, isize, jsize, ksize, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Write_NamedGrid3d_Coords(fid, name, isize, jsize, ksize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ksize
ksize の説明

項目

名前

ksize

入力/出力

入力

説明

K方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_NamedGrid3d_Coords_WithGridId

3次元構造格子を出力する。

形式 (FORTRAN)
call cg_iRIC_Write_NamedGrid3d_Coords_WithGridId(fid, name, isize, jsize, ksize, x_arr, y_arr, z_arr, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_NamedGrid3d_Coords_WithGridId(fid, name, isize, jsize, ksize, x_arr, y_arr, z_arr, gid)
形式 (Python)
x_arr, y_arr, z_arr, gid = cg_iRIC_Write_NamedGrid3d_Coords_WithGridId(fid, name, isize, jsize, ksize)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

格子の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

isize
isize の説明

項目

名前

isize

入力/出力

入力

説明

I方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

jsize
jsize の説明

項目

名前

jsize

入力/出力

入力

説明

J方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ksize
ksize の説明

項目

名前

ksize

入力/出力

入力

説明

K方向の格子点数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

gid
gid の説明

項目

名前

gid

入力/出力

出力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Real

倍精度実数型の計算条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Real(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Real(fid, name, value)
形式 (Python)
cg_iRIC_Write_Real(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_BaseIterative_Integer

グローバルに定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_BaseIterative_Integer(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_BaseIterative_Integer(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_BaseIterative_Integer(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_BaseIterative_Real

グローバルに定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_BaseIterative_Real(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_BaseIterative_Real(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_BaseIterative_Real(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_BaseIterative_String

グローバルに定義された文字列型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_BaseIterative_String(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_BaseIterative_String(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_BaseIterative_String(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Cell_Integer

格子のセルで定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Cell_Integer(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Cell_Integer(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Cell_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Cell_Integer_WithGridId

格子のセルで定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Cell_Integer_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Cell_Integer_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Cell_Integer_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Cell_Real

格子のセルで定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Cell_Real(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Cell_Real(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Cell_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Cell_Real_WithGridId

格子のセルで定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Cell_Real_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Cell_Real_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Cell_Real_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_End

計算結果の出力終了をGUIに通知する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_End(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_End(fid)
形式 (Python)
cg_iRIC_Write_Sol_End(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Grid2d_Coords

計算結果の格子の格子点座標を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Grid2d_Coords(fid, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Grid2d_Coords(fid, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_Grid2d_Coords(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Grid2d_Coords_WithGridId

計算結果の格子の格子点座標を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Grid2d_Coords_WithGridId(fid, gid, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Grid2d_Coords_WithGridId(fid, gid, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_Grid2d_Coords_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Grid3d_Coords

計算結果の格子の格子点座標を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Grid3d_Coords(fid, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Grid3d_Coords(fid, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Write_Sol_Grid3d_Coords(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Grid3d_Coords_WithGridId

計算結果の格子の格子点座標を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Grid3d_Coords_WithGridId(fid, gid, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Grid3d_Coords_WithGridId(fid, gid, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Write_Sol_Grid3d_Coords_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_IFace_Integer

格子のI方向のセル境界面 (エッジ) で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_IFace_Integer(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_IFace_Integer(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_IFace_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_IFace_Integer_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_IFace_Integer_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_IFace_Integer_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_IFace_Integer_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_IFace_Real

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_IFace_Real(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_IFace_Real(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_IFace_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_IFace_Real_WithGridId

格子のI方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_IFace_Real_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_IFace_Real_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_IFace_Real_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Iteration

ループ回数を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Iteration(fid, iteration, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Iteration(fid, iteration)
形式 (Python)
cg_iRIC_Write_Sol_Iteration(fid, iteration)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

iteration
iteration の説明

項目

名前

iteration

入力/出力

入力

説明

ループ回数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_JFace_Integer

格子のJ方向のセル境界面 (エッジ) で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_JFace_Integer(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_JFace_Integer(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_JFace_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_JFace_Integer_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_JFace_Integer_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_JFace_Integer_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_JFace_Integer_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_JFace_Real

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_JFace_Real(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_JFace_Real(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_JFace_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_JFace_Real_WithGridId

格子のJ方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_JFace_Real_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_JFace_Real_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_JFace_Real_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_KFace_Integer

格子のK方向のセル境界面 (エッジ) で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_KFace_Integer(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_KFace_Integer(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_KFace_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_KFace_Integer_WithGridId

格子のK方向のセル境界面 (エッジ) で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_KFace_Integer_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_KFace_Integer_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_KFace_Integer_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_KFace_Real

格子のK方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_KFace_Real(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_KFace_Real(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_KFace_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_KFace_Real_WithGridId

格子のK方向のセル境界面 (エッジ) で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_KFace_Real_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_KFace_Real_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_KFace_Real_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Node_Integer

格子の格子点で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Node_Integer(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Node_Integer(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Node_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Node_Integer_WithGridId

格子の格子点で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Node_Integer_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Node_Integer_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Node_Integer_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Node_Real

格子の格子点で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Node_Real(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Node_Real(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Node_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Node_Real_WithGridId

格子の格子点で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Node_Real_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Node_Real_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Node_Real_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin

パーティクルで定義された計算結果の出力を開始する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin(fid, groupname, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin(fid, groupname)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin_WithGridId

パーティクルで定義された計算結果の出力を開始する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin_WithGridId(fid, gid, groupname, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin_WithGridId(fid, gid, groupname)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroupImage_GroupBegin_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd

パーティクルで定義された計算結果の出力を終了する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd(fid)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd_WithGridId

パーティクルで定義された計算結果の出力を終了する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd_WithGridId(fid, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd_WithGridId(fid, gid)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroupImage_GroupEnd_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d(fid, x, y, size, angle, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d(fid, x, y, size, angle)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d(fid, x, y, size, angle)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

size
size の説明

項目

名前

size

入力/出力

入力

説明

サイズの値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

angle
angle の説明

項目

名前

angle

入力/出力

入力

説明

角度

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d_WithGridId

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d_WithGridId(fid, gid, x, y, size, angle, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d_WithGridId(fid, gid, x, y, size, angle)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroupImage_Pos2d_WithGridId(fid, gid, x, y, size, angle)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

size
size の説明

項目

名前

size

入力/出力

入力

説明

サイズの値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

angle
angle の説明

項目

名前

angle

入力/出力

入力

説明

角度

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_GroupBegin

パーティクルで定義された計算結果の出力を開始する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_GroupBegin(fid, groupname, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_GroupBegin(fid, groupname)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_GroupBegin(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_GroupBegin_WithGridId

パーティクルで定義された計算結果の出力を開始する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_GroupBegin_WithGridId(fid, gid, groupname, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_GroupBegin_WithGridId(fid, gid, groupname)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_GroupBegin_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

パーティクルグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_GroupEnd

パーティクルで定義された計算結果の出力を終了する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_GroupEnd(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_GroupEnd(fid)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_GroupEnd(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_GroupEnd_WithGridId

パーティクルで定義された計算結果の出力を終了する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_GroupEnd_WithGridId(fid, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_GroupEnd_WithGridId(fid, gid)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_GroupEnd_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Integer

格子のパーティクルで定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Integer(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Integer(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Integer(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Integer_WithGridId

格子のパーティクルで定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Integer_WithGridId(fid, gid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Integer_WithGridId(fid, gid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Integer_WithGridId(fid, gid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Pos2d

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Pos2d(fid, x, y, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Pos2d(fid, x, y)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Pos2d(fid, x, y)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Pos2d_WithGridId

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Pos2d_WithGridId(fid, gid, x, y, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Pos2d_WithGridId(fid, gid, x, y)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Pos2d_WithGridId(fid, gid, x, y)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Pos3d

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Pos3d(fid, x, y, z, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Pos3d(fid, x, y, z)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Pos3d(fid, x, y, z)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

z
z の説明

項目

名前

z

入力/出力

入力

説明

Z座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Pos3d_WithGridId

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Pos3d_WithGridId(fid, gid, x, y, z, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Pos3d_WithGridId(fid, gid, x, y, z)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Pos3d_WithGridId(fid, gid, x, y, z)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

入力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

入力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

z
z の説明

項目

名前

z

入力/出力

入力

説明

Z座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Real

格子のパーティクルで定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Real(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Real(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Real(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_ParticleGroup_Real_WithGridId

格子のパーティクルで定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_ParticleGroup_Real_WithGridId(fid, gid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_ParticleGroup_Real_WithGridId(fid, gid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_ParticleGroup_Real_WithGridId(fid, gid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Integer

格子のパーティクルで定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Integer(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Integer(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Particle_Integer(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Integer_WithGridId

格子のパーティクルで定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Integer_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Integer_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Particle_Integer_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Pos2d

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Pos2d(fid, count, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Pos2d(fid, count, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_Particle_Pos2d(fid, count)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

入力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Pos2d_WithGridId

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Pos2d_WithGridId(fid, gid, count, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Pos2d_WithGridId(fid, gid, count, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_Particle_Pos2d_WithGridId(fid, gid, count)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

入力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Pos3d

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Pos3d(fid, count, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Pos3d(fid, count, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Write_Sol_Particle_Pos3d(fid, count)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

入力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Pos3d_WithGridId

パーティクルの位置を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Pos3d_WithGridId(fid, gid, count, x_arr, y_arr, z_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Pos3d_WithGridId(fid, gid, count, x_arr, y_arr, z_arr)
形式 (Python)
x_arr, y_arr, z_arr = cg_iRIC_Write_Sol_Particle_Pos3d_WithGridId(fid, gid, count)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

入力

説明

パーティクルの数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

z_arr
z_arr の説明

項目

名前

z_arr

入力/出力

出力

説明

Z座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Real

格子のパーティクルで定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Real(fid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Real(fid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Particle_Real(fid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Particle_Real_WithGridId

格子のパーティクルで定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Particle_Real_WithGridId(fid, gid, name, v_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Particle_Real_WithGridId(fid, gid, name, v_arr)
形式 (Python)
v_arr = cg_iRIC_Write_Sol_Particle_Real_WithGridId(fid, gid, name)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

v_arr
v_arr の説明

項目

名前

v_arr

入力/出力

出力

説明

計算結果の値の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_GroupBegin

ポリゴンもしくは折れ線で定義された計算結果の出力を開始する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_GroupBegin(fid, groupname, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_GroupBegin(fid, groupname)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_GroupBegin(fid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId

ポリゴンもしくは折れ線で定義された計算結果の出力を開始する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId(fid, gid, groupname, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId(fid, gid, groupname)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId(fid, gid, groupname)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

groupname
groupname の説明

項目

名前

groupname

入力/出力

入力

説明

ポリゴンもしくは折れ線のグループの名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_GroupEnd

ポリゴンもしくは折れ線で定義された計算結果の出力を終了する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_GroupEnd(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_GroupEnd(fid)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_GroupEnd(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_GroupEnd_WithGridId

ポリゴンもしくは折れ線で定義された計算結果の出力を終了する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_GroupEnd_WithGridId(fid, gid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_GroupEnd_WithGridId(fid, gid)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_GroupEnd_WithGridId(fid, gid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Integer

格子のポリゴンもしくは折れ線で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Integer(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Integer(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_Integer(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Integer_WithGridId

格子のポリゴンもしくは折れ線で定義された整数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Integer_WithGridId(fid, gid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Integer_WithGridId(fid, gid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_Integer_WithGridId(fid, gid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Polygon

計算結果としてポリゴンの形状を出力する

この関数を呼び出す前に cg_iRIC_Write_Sol_PolyData_GroupBegin, cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId を呼び出す必要がある。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Polygon(fid, numPoints, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Polygon(fid, numPoints, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_PolyData_Polygon(fid, numPoints)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

numPoints
numPoints の説明

項目

名前

numPoints

入力/出力

入力

説明

ポリゴンもしくは折れ線を構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Polygon_WithGridId

計算結果としてポリゴンの形状を出力する

この関数を呼び出す前に cg_iRIC_Write_Sol_PolyData_GroupBegin, cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId を呼び出す必要がある。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Polygon_WithGridId(fid, gid, numPoints, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Polygon_WithGridId(fid, gid, numPoints, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_PolyData_Polygon_WithGridId(fid, gid, numPoints)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

numPoints
numPoints の説明

項目

名前

numPoints

入力/出力

入力

説明

ポリゴンもしくは折れ線を構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Polyline

計算結果として折れ線の形状を出力する

この関数を呼び出す前に cg_iRIC_Write_Sol_PolyData_GroupBegin, cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId を呼び出す必要がある。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Polyline(fid, numPoints, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Polyline(fid, numPoints, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_PolyData_Polyline(fid, numPoints)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

numPoints
numPoints の説明

項目

名前

numPoints

入力/出力

入力

説明

ポリゴンもしくは折れ線を構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Polyline_WithGridId

計算結果として折れ線の形状を出力する

この関数を呼び出す前に cg_iRIC_Write_Sol_PolyData_GroupBegin, cg_iRIC_Write_Sol_PolyData_GroupBegin_WithGridId を呼び出す必要がある。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Polyline_WithGridId(fid, gid, numPoints, x_arr, y_arr, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Polyline_WithGridId(fid, gid, numPoints, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = cg_iRIC_Write_Sol_PolyData_Polyline_WithGridId(fid, gid, numPoints)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

numPoints
numPoints の説明

項目

名前

numPoints

入力/出力

入力

説明

ポリゴンもしくは折れ線を構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Real

格子のポリゴンもしくは折れ線で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Real(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Real(fid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_Real(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_PolyData_Real_WithGridId

格子のポリゴンもしくは折れ線で定義された倍精度実数型の計算結果を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_PolyData_Real_WithGridId(fid, gid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_PolyData_Real_WithGridId(fid, gid, name, value)
形式 (Python)
cg_iRIC_Write_Sol_PolyData_Real_WithGridId(fid, gid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

gid
gid の説明

項目

名前

gid

入力/出力

入力

説明

格子ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

計算結果の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

計算結果の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Start

計算結果の出力開始をGUIに通知する。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Start(fid, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Start(fid)
形式 (Python)
cg_iRIC_Write_Sol_Start(fid)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_Sol_Time

時刻を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_Sol_Time(fid, time, ier)
形式 (C/C++)
ier = cg_iRIC_Write_Sol_Time(fid, time)
形式 (Python)
cg_iRIC_Write_Sol_Time(fid, time)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

time
time の説明

項目

名前

time

入力/出力

入力

説明

時刻

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

cg_iRIC_Write_String

文字列型の計算条件の値を書き込む。

形式 (FORTRAN)
call cg_iRIC_Write_String(fid, name, value, ier)
形式 (C/C++)
ier = cg_iRIC_Write_String(fid, name, value)
形式 (Python)
cg_iRIC_Write_String(fid, name, value)
引数と戻り値
fid
fid の説明

項目

名前

fid

入力/出力

入力

説明

ファイルID

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

入力

説明

変数の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

value
value の説明

項目

名前

value

入力/出力

入力

説明

条件の値

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Check_Cancel

ユーザがソルバの実行をキャンセルしたか確認する。

形式 (FORTRAN)
call iRIC_Check_Cancel(canceled)
形式 (C/C++)
canceled = iRIC_Check_Cancel()
形式 (Python)
canceled = iRIC_Check_Cancel()
引数と戻り値
canceled
canceled の説明

項目

名前

canceled

入力/出力

出力

説明

キャンセルされていたら1、そうでなければ0。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

iRIC_Geo_Polygon_Close

ポリゴンファイルを閉じる。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Close(geo_handle, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Close(geo_handle)
形式 (Python)
iRIC_Geo_Polygon_Close(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Open

ポリゴンファイルを開く。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Open(filename, geo_handle, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Open(filename, geo_handle)
形式 (Python)
geo_handle = iRIC_Geo_Polygon_Open(filename)
引数と戻り値
filename
filename の説明

項目

名前

filename

入力/出力

入力

説明

ファイル名

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

出力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_HoleCount

ポリゴンに開いた穴の数を読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_HoleCount(geo_handle, count, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_HoleCount(geo_handle, count)
形式 (Python)
count = iRIC_Geo_Polygon_Read_HoleCount(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

穴の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_HolePointCount

ポリゴンの穴の頂点の数を読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_HolePointCount(geo_handle, holeid, count, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_HolePointCount(geo_handle, holeid, count)
形式 (Python)
count = iRIC_Geo_Polygon_Read_HolePointCount(geo_handle, holeid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

holeid
holeid の説明

項目

名前

holeid

入力/出力

入力

説明

ポリゴンの穴のID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

穴ポリゴンを構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_HolePoints

ポリゴンの穴の頂点の座標を読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_HolePoints(geo_handle, holeid, x_arr, y_arr, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_HolePoints(geo_handle, holeid, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = iRIC_Geo_Polygon_Read_HolePoints(geo_handle, holeid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

holeid
holeid の説明

項目

名前

holeid

入力/出力

入力

説明

ポリゴンの穴のID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_IntegerValue

ポリゴンの値を整数で読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_IntegerValue(geo_handle, value, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_IntegerValue(geo_handle, value)
形式 (Python)
value = iRIC_Geo_Polygon_Read_IntegerValue(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_PointCount

ポリゴンの頂点の数を読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_PointCount(geo_handle, count, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_PointCount(geo_handle, count)
形式 (Python)
count = iRIC_Geo_Polygon_Read_PointCount(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

ポリゴンを構成する頂点の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_Points

ポリゴンの頂点の座標を読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_Points(geo_handle, x_arr, y_arr, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_Points(geo_handle, x_arr, y_arr)
形式 (Python)
x_arr, y_arr = iRIC_Geo_Polygon_Read_Points(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x_arr
x_arr の説明

項目

名前

x_arr

入力/出力

出力

説明

X座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

y_arr
y_arr の説明

項目

名前

y_arr

入力/出力

出力

説明

Y座標の配列

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_Polygon_Read_RealValue

ポリゴンの値を倍精度実数で読み込む。

形式 (FORTRAN)
call iRIC_Geo_Polygon_Read_RealValue(geo_handle, value, ier)
形式 (C/C++)
ier = iRIC_Geo_Polygon_Read_RealValue(geo_handle, value)
形式 (Python)
value = iRIC_Geo_Polygon_Read_RealValue(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Close

横断測量データファイルを閉じる。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Close(geo_handle, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Close(geo_handle)
形式 (Python)
iRIC_Geo_RiverSurvey_Close(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Open

横断測量データファイルを開く。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Open(filename, geo_handle, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Open(filename, geo_handle)
形式 (Python)
geo_handle = iRIC_Geo_RiverSurvey_Open(filename)
引数と戻り値
filename
filename の説明

項目

名前

filename

入力/出力

入力

説明

ファイル名

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

const char*

データ型 (Python)

str

geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

出力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_AltitudeCount

横断線の標高データの数を読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_AltitudeCount(geo_handle, csid, count, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_AltitudeCount(geo_handle, csid, count)
形式 (Python)
count = iRIC_Geo_RiverSurvey_Read_AltitudeCount(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_Altitudes

横断線の横断形状を読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_Altitudes(geo_handle, csid, position_arr, height_arr, active_arr, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_Altitudes(geo_handle, csid, position_arr, height_arr, active_arr)
形式 (Python)
position_arr, height_arr, active_arr = iRIC_Geo_RiverSurvey_Read_Altitudes(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

position_arr
position_arr の説明

項目

名前

position_arr

入力/出力

出力

説明

標高データの位置 (0より小さい = 左岸側, 0 より大きい = 右岸側)

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

height_arr
height_arr の説明

項目

名前

height_arr

入力/出力

出力

説明

標高データの高さ

データ型 (FORTRAN)

double precision, dimension(:)

データ型 (C/C++)

double*

データ型 (Python)

numpy.array

active_arr
active_arr の説明

項目

名前

active_arr

入力/出力

出力

説明

標高データの有効/無効 (1: 有効, 0: 無効)

データ型 (FORTRAN)

integer, dimension(:)

データ型 (C/C++)

int*

データ型 (Python)

numpy.array

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_Count

横断線の数を読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_Count(geo_handle, count, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_Count(geo_handle, count)
形式 (Python)
count = iRIC_Geo_RiverSurvey_Read_Count(geo_handle)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

count
count の説明

項目

名前

count

入力/出力

出力

説明

値の数

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_Direction

横断線の向きを読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_Direction(geo_handle, csid, dirx, diry, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_Direction(geo_handle, csid, dirx, diry)
形式 (Python)
dirx, diry = iRIC_Geo_RiverSurvey_Read_Direction(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

dirx
dirx の説明

項目

名前

dirx

入力/出力

出力

説明

向きのX成分

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

diry
diry の説明

項目

名前

diry

入力/出力

出力

説明

向きのY成分

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_FixedPointL

横断線の左岸延長線のデータを読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_FixedPointL(geo_handle, csid, set, dirx, diry, index, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_FixedPointL(geo_handle, csid, set, dirx, diry, index)
形式 (Python)
set, dirx, diry, index = iRIC_Geo_RiverSurvey_Read_FixedPointL(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

set
set の説明

項目

名前

set

入力/出力

出力

説明

左岸延長線が登録されていたら1, そうでなければ0

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

dirx
dirx の説明

項目

名前

dirx

入力/出力

出力

説明

向きのX成分

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

diry
diry の説明

項目

名前

diry

入力/出力

出力

説明

向きのY成分

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

index
index の説明

項目

名前

index

入力/出力

出力

説明

左岸延長線の開始位置の標高データの番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_FixedPointR

横断線の右岸延長線のデータを読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_FixedPointR(geo_handle, csid, set, dirx, diry, index, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_FixedPointR(geo_handle, csid, set, dirx, diry, index)
形式 (Python)
set, dirx, diry, index = iRIC_Geo_RiverSurvey_Read_FixedPointR(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

set
set の説明

項目

名前

set

入力/出力

出力

説明

右岸延長線が登録されていたら1, そうでなければ0

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

dirx
dirx の説明

項目

名前

dirx

入力/出力

出力

説明

向きのX成分

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

diry
diry の説明

項目

名前

diry

入力/出力

出力

説明

向きのY成分

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

index
index の説明

項目

名前

index

入力/出力

出力

説明

右岸延長線の開始位置の標高データの番号

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_LeftShift

横断線の標高データのシフト量を読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_LeftShift(geo_handle, csid, shift, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_LeftShift(geo_handle, csid, shift)
形式 (Python)
shift = iRIC_Geo_RiverSurvey_Read_LeftShift(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

shift
shift の説明

項目

名前

shift

入力/出力

出力

説明

シフト量

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_Name

横断線の名前を文字列として読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_Name(geo_handle, csid, strvalue, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_Name(geo_handle, csid, strvalue)
形式 (Python)
strvalue = iRIC_Geo_RiverSurvey_Read_Name(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

strvalue
strvalue の説明

項目

名前

strvalue

入力/出力

出力

説明

断面の名前

データ型 (FORTRAN)

character(*)

データ型 (C/C++)

char*

データ型 (Python)

str

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_Position

横断線の中心点の座標を読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_Position(geo_handle, csid, x, y, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_Position(geo_handle, csid, x, y)
形式 (Python)
x, y = iRIC_Geo_RiverSurvey_Read_Position(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

x
x の説明

項目

名前

x

入力/出力

出力

説明

X座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

y
y の説明

項目

名前

y

入力/出力

出力

説明

Y座標

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_RealName

横断線の名前を実数値として読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_RealName(geo_handle, csid, name, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_RealName(geo_handle, csid, name)
形式 (Python)
name = iRIC_Geo_RiverSurvey_Read_RealName(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

name
name の説明

項目

名前

name

入力/出力

出力

説明

地理情報の名前

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_Geo_RiverSurvey_Read_WaterSurfaceElevation

横断線での水面標高を読み込む。

形式 (FORTRAN)
call iRIC_Geo_RiverSurvey_Read_WaterSurfaceElevation(geo_handle, csid, set, value, ier)
形式 (C/C++)
ier = iRIC_Geo_RiverSurvey_Read_WaterSurfaceElevation(geo_handle, csid, set, value)
形式 (Python)
set, value = iRIC_Geo_RiverSurvey_Read_WaterSurfaceElevation(geo_handle, csid)
引数と戻り値
geo_handle
geo_handle の説明

項目

名前

geo_handle

入力/出力

入力

説明

地理情報のハンドル

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

csid
csid の説明

項目

名前

csid

入力/出力

入力

説明

横断線ID (1から開始)

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

set
set の説明

項目

名前

set

入力/出力

出力

説明

水面標高が登録されていたら1, そうでなければ0

データ型 (FORTRAN)

integer

データ型 (C/C++)

int*

データ型 (Python)

int

value
value の説明

項目

名前

value

入力/出力

出力

説明

条件の値

データ型 (FORTRAN)

double precision

データ型 (C/C++)

double*

データ型 (Python)

float

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

iRIC_InitOption

ソルバーのオプションを指定する。

形式 (FORTRAN)
call iRIC_InitOption(option, ier)
形式 (C/C++)
ier = iRIC_InitOption(option)
形式 (Python)
iRIC_InitOption(option)
引数と戻り値
option
option の説明

項目

名前

option

入力/出力

入力

説明

指定するオプションの値

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

int

ier
ier の説明

項目

名前

ier

入力/出力

出力

説明

エラーコード。0なら成功、エラーが起きるとそれ以外。

データ型 (FORTRAN)

integer

データ型 (C/C++)

int

データ型 (Python)

(定義なし)

備考
option に指定可能な値

option の値

内容

IRIC_OPTION_CANCEL

iRIC_Check_Cancel を利用してキャンセルを検知できることをGUIに伝える。

その他の情報

Fortran プログラムでの引数の読み込み処理

iRICは、ソルバーや格子生成プログラムを起動する時、コマンドライン引数として 計算データファイルもしくは格子生成データファイルの名前を渡すため、 これを読み込む必要があります。

Fortran では、コマンドライン引数を読み込む方法がコンパイラによって異なります。 ここでは、Intel Fortran Compiler での引数の読み込み処理について説明します。

Intel Fortran Compiler

nargs()でコマンドライン引数の個数を取得し、引数がある場合、 getarg() で引数を取得します。

Intel Fortran Compiler での引数読み込み処理例
1icount = nargs()  ! コマンド名が数に含まれるので、引数が1つなら2を返す
2if ( icount.eq.2 ) then
3  call getarg(1, condFile, istatus)
4else
5  write(*,*) "Input File not specified."
6  stop
7endif

Fortran 言語で iriclib とリンクしてビルドする方法

iRIC と連携して動作するソルバー、格子生成プログラムをコンパイルするには、 iriclib とリンクする必要があります。

ソースコードのファイルが solver.f90 の時のコンパイル手順について以下に示します。 ただし、コンパイラの設定 (pathの設定など) は完了しているものとします。

Intel Fortran Compiler (Windows)

solver.f90, iric.f90, iriclib.lib を同じフォルダに置き、そこに移動して以下のコマンドを実行することで、 実行ファイル solver.exe が生成されます。

ifort iric.f90 solver.f90 iriclib.lib /MD

特別な格子属性、計算結果の名前について

iRIC では、特別な目的で用いる格子属性、計算結果について、特別な名前を用います。 開発するソルバーで、以下の目的に合致する属性を入出力する場合、ここで示す名前を使ってください。

格子属性

入力格子の属性について定義された特別な名前を 表 1881 に示します。

格子属性について定義された特別な名前

名前

説明

Elevation

格子点の標高 (単位: m) を保持する格子属性です。格子点の、実数の属性として定義します。

ソルバーで Elevation を使用する場合は、 GridRelatedCondition 要素の子要素の、 Item 要素の name 属性に指定します。caption 属性は任意に設定できます。 定義例を リスト 179 に示します。

Elevation 要素の定義例
<Item name="Elevation" caption="Elevation">
  <Definition position="node" valueType="real" default="max" />
</Item>

一方格子生成プログラムで標高情報を出力する場合、 Elevationという名前を使って出力すれば iRIC で読み込まれます。格子生成プログラムで Elavtion を出力する処理の例を リスト 180 に示します。

格子生成プログラムでの、Elevation を出力するソースコードの例
cg_iric_write_grid_real_node(fid, "Elevation", elevation, ier)

計算結果

計算結果について定義された特別な名前を 表 1882 に示します。 ここで示す名前は、 iRIClib の関数の引数に指定してください。

これらの特別な計算結果を全て出力するソルバーの例を リスト 181 に示します。

計算結果について定義された特別な名前

名前

説明

必須

Elevation

河床の標高 (単位: m)。実数の計算結果として出力します。"Elevation(m)" などのように、後ろに単位などの文字列を付加してもかまいません。

WaterSurfaceElevation

水面の標高 (単位: m)。実数の計算結果として出力します。"WaterSurfaceElevation(m)" などのように、後ろに単位などの文字列を付加してもかまいません。

IBC

計算結果の有効・無効フラグ。無効な (水がない) 領域では 0、有効な (水がある) 領域では 1 を出力します。

特別な名前の計算結果を出力するソースコードの例
call cg_iric_write_sol_node_real(fid, 'Elevation(m)', elevation_values, ier)
call cg_iric_write_sol_node_real(fid, 'WaterSurfaceElevation(m)', surface_values, ier)
call cg_iric_write_sol_node_integer(fid, 'IBC', IBC_values, ier)

CGNS ファイル、 CGNSライブラリに関する情報

CGNS ファイルフォーマットの概要

CGNSは、CFG General Notation System の略で、数値流体力学で用いられるデータを 格納するための汎用ファイルフォーマットです。 OS やCPU の種類が異なるコンピュータの間で、共通して利用することができます。 数値流体力学で用いられる標準的なデータ形式が定義されているほか、 ソルバーごとに独自の要素を追加する拡張性が備わっています。

CGNS ファイルの入出力ライブラリは cgnslib として提供されており、 以下の言語から利用することができます。

  • C, C++

  • FORTRAN

  • Python

元は Boeing 社と NASA が共同で開発しましたが、現在はオープンソースの コミュニティによって機能追加やメンテナンスが行われています。

CGNS ファイルの閲覧方法

ここでは、iRIC により作成した CGNS ファイルを HDFView を用いて 閲覧する方法を説明します。HDFView は、フリーソフトとして 公開されているソフトウェアです。

HDFView のインストール

まず、HDFViewをインストールします。HDFView のインストーラは、 以下のサイトからダウンロードできます。

https://www.hdfgroup.org/downloads/index.html

_images/hdf_webpage.png

HDF group ウェブページ

HDF のホームページから、「Current Release」の リンクをクリックします。すると、様々なファイルのダウンロード画面に 移動します。ここで、適切な (64 bit or 32 bit) プラットフォームのインストーラをクリックしてダウンロードしてください。 解凍してインストーラを実行することで、 HDFViewがインストールされます。

_images/hdf_downloadpage.png

ダウンロードページ 表示例

HDFView を利用したCGNS ファイルの閲覧

HDFViewを起動して CGNS ファイルを閲覧します。

まず、スタートメニューから HDFView を起動します。次に、以下のメニューから、 開く CGNS ファイルを選択します。

File --> Open

HDFView では、拡張子 "*.cgn" のファイルはデフォルトでは開く対象に含まれないため、 ファイルのタイプで「すべてのファイル」を指定した上で、CGNSファイルを選択して開いて下さい。 CGNS ファイルを開いた後の HDFView の画面表示例を 図 73 に示します。

_images/hdfview.png

HDFView 表示例

画面の左側には、CGNS ファイル内のツリー構造が表示されます。 ツリー構造で、閲覧したい項目を選択すると、画面右側に選択した項目の 内部のデータが表示されます。

リンク集

CGNS ファイル及び CGNS ライブラリに関する情報は、 表 1883 を参照してください。

CGNS ファイル、CGNSライブラリ関連リンク

項目

URL

ホームページ

http://cgns.sourceforge.net/

関数リファレンス

http://cgns.github.io/CGNS_docs_current/midlevel/index.html

CGNSファイルの内部構造

http://cgns.github.io/CGNS_docs_current/sids/index.html

記述例集

http://cgns.github.io/CGNS_docs_current/user/examples.html

iRIC インストーラ作成用リポジトリへの登録

はじめに

iRIC は、インストーラの作成及びオンラインアップデートのために公開するファイルの管理を、 github というウェブサービスを利用して行っています。

ソルバ開発者は、 github に最新のソルバのファイルを登録することで、以下を行なうことが できます。

  • 次回インストーラが作成される際に同梱されるソルバを更新します

  • 既に iRIC をインストールしているユーザが、 オプション -> メンテナンス 機能から、 ソルバの更新版をオンラインアップデートで入手するできるようにします

この節では、ソルバ開発者が github に最新のソルバを登録する手順を説明します。

作業の流れ

github に最新のソルバを登録するには、以下の流れで作業を行います。

  1. Subversion のクライアントのインストール (初回のみ)

  2. サーバからのフォルダの取得 (チェックアウト)

  3. 新しいファイルのコピー

  4. 新しいファイルのサーバへの登録 (コミット)

github へのファイルの登録は、 Subversion と git の2つのバージョン管理システム を使って行なうことができますが、ここでは操作の簡単な Subversion を 利用した場合の手順をご説明します。

以下で、詳しい手順を説明します。

Subversion のクライアントのインストール (初回のみ)

インストール

Subversion に関連した操作を行うためのクライアントをインストールします。 この手順では、Windows 用の Subversion クライアントである TortoiseSVN をインストールします。

以下の URL にアクセスし、 TortoiseSVN のインストーラを入手します。

https://tortoisesvn.net/downloads.html

画面上には、 32bit版 OS用と 64bit版 OS用の2つのダウンロード用ボタンがあります。お使いの環境 に合わせて適切なインストーラをダウンロードして下さい。

日本語でお使いになりたい場合は、画面の少し下にある Language packs を追加でインストールすること で、メニューが日本語になります。"Japanese" という行の "Setup" リンクをクリックして ダウンロードしてください。

インストーラがダウンロードできたら、まずは TortoiseSVN 本体、その後 Language pack の順番で インストールして下さい。

インストールが完了したら、一度 Windows を再起動します。

環境設定

インターネットに接続するのに、プロキシサーバを経由する必要がある環境では、 設定を行います。

エクスプローラで右クリックメニューから以下を選択します。

TortoiseSVN --> 設定

すると、設定ダイアログが表示されます。左側のツリービューで「ネットワーク」を選択すると、 図 74 に示すような画面が表示されますので、お使いの環境 に合わせた設定を行い、「OK」ボタンを押します。

_images/svn_setting_dialog.png

TortoiseSVN 設定ダイアログ

サーバからのフォルダの取得 (チェックアウト)

https://github.com/i-RIC/online_update.git/trunk/dev_src/packages 以下のフォルダのうち、更新したいソルバが含まれているフォルダをチェックアウトします。

例えば、 FaSTMECH なら以下のフォルダをチェックアウトします。

https://github.com/i-RIC/online_update.git/trunk/dev_src/packages/solver.fastmech

以下では、 FaSTMECH のフォルダを取得する際の例を示します。

フォルダの作成

サーバから取得したファイルを保存するためのフォルダを作成します。

この例では、e:tmpfastmech にフォルダを作成します。

サーバからのフォルダの取得

TortoiseSVN を利用して、サーバからフォルダを取得します。

上記で作成したフォルダをエクスプローラで選択し、右クリックメニューから以下を選択します。

SVN チェックアウト

すると、 図 75 に示すダイアログが表示されます。

_images/svn_checkout_dialog1.png

ファイルのチェックアウト用ダイアログ

「リポジトリのURL」欄に、以下の URL を入力します。

https://github.com/i-RIC/online_update.git/trunk/dev_src/packages

その後、その右にある「...」ボタンを押します。すると、 図 76 に示すダイアログが表示されます。

_images/svn_checkout_dialog2.png

ファイルのチェックアウト用ダイアログ (フォルダの選択)

このダイアログで、自分が更新したいソルバが含まれているフォルダ (今回の例なら "solver.fastmech") を選択し、「OK」ボタンを押します。 すると、「リポジトリのURL」 が更新されます。

図 75 に示すダイアログで、 「リポジトリのURL」「チェックアウト先のディレクトリ」が正しく設定されている ことを確認したら、「OK」ボタンを押します。すると、 図 77 に示すようなダイアログが 表示され、フォルダ内のファイルの取得が始まります。

_images/svn_checkout_progress_dialog.png

ファイルの取得進捗ダイアログ

ファイルの取得が完了すると、エクスプローラでは 図 78 に示すように表示されます。 チェックアウトされたファイルの横には、チェックマークのついたアイコンが表示されます。

_images/svn_explorer_example1.png

ファイルのチェックアウト後のエクスプローラ表示例

新しいファイルのコピー

チェックアウトしたフォルダに、インストーラに同梱したいファイルをコピーします。 ファイルをコピーすると、ファイルの横のアイコンが以下のようになります。

  • 上書きされたファイルの横には、「!」マークのついたアイコンが表示されます

  • 新しくコピーされたファイルの横には、アイコンにマークが表示されません

新しくコピーされたファイルをサーバに送信するには、ファイルを右クリックして、 右クリックメニューから以下を選択します。

TortoiseSVN --> 追加

追加を行うと、ファイルの横に「+」マークが表示されます。

"Fastmech.exe" を上書きし、 "newdll.dll" を追加した後のエクスプローラの表示例を 図 79 に示します。

_images/svn_explorer_example2.png

新しいファイルをコピーした後のエクスプローラ表示例

ご注意

ソルバの更新をする時は、ソルバの実行ファイルなどを更新するだけでなく、 definition.xml に記述されたバージョン番号も更新してください。 これは、バージョン番号が変わっていないと、 iRIC メンテナンスが ファイルが更新されていることを認識できないためです。

バージョン番号は definition.xmlSolverDefinition 要素で、 version という 名前の属性で指定されています。

新しいファイルのサーバへの登録 (コミット)

新しいファイルを、サーバへ登録します。

上記でファイルを登録したフォルダをエクスプローラで選択し、右クリックメニューから 以下を選択します。

SVN コミット

すると、図 80 に示すダイアログが表示されます。

_images/svn_commit_dialog.png

新しいファイルのコミット用ダイアログ

更新したいファイルが全てチェックされていることを確認したら、更新に関する ログを追記して、「OK」ボタンを押します。

図 81 が表示されますので、ユーザ名とパスワードを入力して、 「OK」ボタンを押します。

_images/svn_auth_dialog.png

認証ダイアログ

ソルバの登録に使用する ユーザ名とパスワードについては、 iRIC の管理者にお問い合わせ下さい。

ご利用にあたって

  • 本ソフトウェアを利用した成果を用いて論文、報告書、記事等の出版物を作成する場合は、 本ソフトウェアを使用したことを適切な位置に示してください。

  • iRICサイトで提供している河川の地形データなどはサンプルデータであり、 実際のものとは異なる場合があります。あくまでもテスト用としてご試用下さい。

  • ご感想、ご意見、ご指摘は http://i-ric.org にて受け付けております。