3d_data_uneven/structure.h マニュアル

(The documentation of 3d_data_uneven/structure.h)

Last Update: 2025/11/28


3d_data_uneven/structure.hでは 3d_data_unevenヘッダファイルパッケージで主に用いる構造体が定義されている。 各構造体の定義を以下に示す。
Structures mainly used in 3d_data_uneven header file package are defined in 3d_data_uneven/structure.h. Definitions of individual structures are shown below.

◆目次(Table of contents)



◆struct irregular3Dnodes型構造体 (A struct irregular3Dnodes-type structure)

格子点配置を表現するための構造体である。 以下のメンバから成る。
A structure to represent a configuration of grid nodes. This structure is composed of the following members.

型
Type
メンバ名
Name of member
メンバの意味
Meaning of member
int L \(x\)方向の格子セルの個数。
The number of grid cells along the \(x\)-direction.
int M \(y\)方向の格子セルの個数。
The number of grid cells along the \(y\)-direction.
int N \(z\)方向の格子セルの個数。
The number of grid cells along the \(z\)-direction.
double ∗ x 格子点の\(x\)座標を昇順に並べた配列(要素数:\(L+1\))。
An array composed of the \(x\)-coordinates of \(L+1\) grid nodes in an ascending order.
double ∗ y 格子点の\(y\)座標を昇順に並べた配列(要素数:\(M+1\))。
An array composed of the \(y\)-coordinates of \(M+1\) grid nodes in an ascending order.
double ∗ z 格子点の\(z\)座標を昇順に並べた配列(要素数:\(N+1\))。
An array composed of the \(z\)-coordinates of \(N+1\) grid nodes in an ascending order.


◆struct irregular3Ddata_node型構造体 (A struct irregular3Ddata_node-type structure)

位置の関数として表される量の格子点での値を表現するための構造体である。 以下のメンバから成る。
A structure to represent the values of a quantity that is a function of position at the locations of grid nodes. This structure is composed of the following members.

型
Type
メンバ名
Name of member
メンバの意味
Meaning of member
struct irregular3Dnodes ∗ nodes 格子点配置を表す構造体。 同一の格子点配置を複数のデータセットで用いることを想定し、 メモリの節約やデータセット間での格子点配置の整合性チェックの手間を減らすため 外部で定義した格子点配置データへのアドレス参照としている。 例えば
struct irregular3Dnodes node_locations;
struct irregular3Ddata_node data1,data2;
data1.nodes=&node_locations;
data2.nodes=&node_locations;
のように与えれば2つのデータセットdata1, data2に対して 格子点配置を表す共通の変数node_locationsを利用できる。
A structure that represents a configuration of grid nodes. The address of the structure defined outside is referred because the same configuration of grid nodes is supposed to be used for multiple datasets; the reference to the address reduces the requirements of memory and consistency checks for the configurations. For example, a common variable node_locations that represents a configuration of grid nodes can be shared by two datasets data1 and data2 as follows:
struct irregular3Dnodes node_locations;
struct irregular3Ddata_node data1,data2;
data1.nodes=&node_locations;
data2.nodes=&node_locations;
double ∗∗∗ values 各格子点での値を並べた3次元配列 (要素数:\((L+1)\times(M+1)\times(N+1)\))。
A 3-D array of \((L+1)\times(M+1)\times(N+1)\) components composed of the value at each grid node.


◆struct irregular3Ddata_cell型構造体 (A struct irregular3Ddata_cell-type structure)

位置の関数として表される量の格子セルでの値を表現するための構造体である。 以下のメンバから成る。
A structure to represent the values of a quantity that is a function of position in grid cells. This structure is composed of the following members.

型
Type
メンバ名
Name of member
メンバの意味
Meaning of member
struct irregular3Dnodes ∗ nodes 格子点配置を表す構造体。 アドレス渡しにしているのは struct irregular3Ddata_node型構造体と同様の理由である。
A structure that represents a configuration of grid nodes. The address is used for the same reason to a struct irregular3Ddata_node-type structure.
double ∗∗∗ values 各格子セルでの値を並べた3次元配列 (要素数:\(L\times M\times N\))。
A 3-D array of \(L\times M\times N\) components composed of the value in each grid cell.