F04_field_output
模块定位
F04_field_output 是场输出层。它把本 rank 的局部场写为 ASCII 或 binary 文件,
支持一维 packed、三维 cell-centered,以及 grid-defined 到 cell-centered 的 8 点平均输出。
文件 |
角色 |
|---|---|
模块包装器,include 全部场输出例程。 |
|
将一维 packed 场写成 ASCII 文件。 |
|
将一维 packed 场写成 binary stream 文件。 |
|
将 3D cell-centered 场写成 ASCII 文件。 |
|
将 3D cell-centered 场写成 binary stream 文件。 |
|
对 grid-defined 场做 8 点平均后写 ASCII cell-centered 值。 |
|
对 grid-defined 场做 8 点平均后写 binary cell-centered 值。 |
调用注意
1d 和 3d 例程按调用方提供的数据原样写出;3d_grid 例程会改变数据含义,
输出的是 cell-centered 平均值而不是原始节点值。需要保留原始节点场时,应使用 1d 或 3d 路径自行打包/指定范围。
Module Role
F04_field_output is the field output layer. It writes the current rank’s
local field as ASCII or binary files and supports packed 1D, 3D cell-centered,
and grid-defined-to-cell-centered 8-point average outputs.
File |
Role |
|---|---|
Module wrapper including all field output routines. |
|
Write a packed 1D field to ASCII files. |
|
Write a packed 1D field to binary stream files. |
|
Write a 3D cell-centered field to ASCII files. |
|
Write a 3D cell-centered field to binary stream files. |
|
Average a grid-defined field to cell centers and write ASCII values. |
|
Average a grid-defined field to cell centers and write binary values. |
Calling Notes
1d and 3d routines write the caller-provided data directly. 3d_grid
routines change the data semantics: the output is the cell-centered average,
not the original nodal field. If the original nodal field must be preserved,
pack it or provide its bounds through the 1d or 3d paths.