F04_field_output

模块定位

F04_field_output 是场输出层。它把本 rank 的局部场写为 ASCII 或 binary 文件, 支持一维 packed、三维 cell-centered,以及 grid-defined 到 cell-centered 的 8 点平均输出。

文件角色

文件

角色

mod_F04_field_output.f90

模块包装器,include 全部场输出例程。

sub_F04_field_output_1d_dat.f90

将一维 packed 场写成 ASCII 文件。

sub_F04_field_output_1d_bin.f90

将一维 packed 场写成 binary stream 文件。

sub_F04_field_output_3d_dat.f90

将 3D cell-centered 场写成 ASCII 文件。

sub_F04_field_output_3d_bin.f90

将 3D cell-centered 场写成 binary stream 文件。

sub_F04_field_output_3d_grid_dat.f90

对 grid-defined 场做 8 点平均后写 ASCII cell-centered 值。

sub_F04_field_output_3d_grid_bin.f90

对 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 Roles

File

Role

mod_F04_field_output.f90

Module wrapper including all field output routines.

sub_F04_field_output_1d_dat.f90

Write a packed 1D field to ASCII files.

sub_F04_field_output_1d_bin.f90

Write a packed 1D field to binary stream files.

sub_F04_field_output_3d_dat.f90

Write a 3D cell-centered field to ASCII files.

sub_F04_field_output_3d_bin.f90

Write a 3D cell-centered field to binary stream files.

sub_F04_field_output_3d_grid_dat.f90

Average a grid-defined field to cell centers and write ASCII values.

sub_F04_field_output_3d_grid_bin.f90

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.