Input/Output routines for native hexahedral mesh files.
This module handles the parsing of the ASCII-based native mesh format used by the solver. It reads node coordinates, cell connectivity, face metrics, and boundary patches from the directory specified in the case parameters.
Orchestrates the reading of all mesh components from a directory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | mesh_dir |
Path to the directory containing |
||
| type(mesh_t), | intent(inout) | :: | m |
The mesh structure to populate. |
Helper to safely add a face to a cell's local face list.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mesh_t), | intent(inout) | :: | m | |||
| integer, | intent(in) | :: | cell_id | |||
| integer, | intent(in) | :: | face_id |
Builds the cell-to-face mapping by inverting the face owner/neighbor data.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(mesh_t), | intent(inout) | :: | m |
Reads cell definitions from cells.dat.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename | |||
| type(mesh_t), | intent(inout) | :: | m |
Reads face metrics and owner/neighbor connectivity from faces.dat.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename | |||
| type(mesh_t), | intent(inout) | :: | m |
Reads boundary patch definitions and face lists from patches.dat.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename | |||
| type(mesh_t), | intent(inout) | :: | m |
Reads periodic link data from periodic.dat if it exists.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename | |||
| type(mesh_t), | intent(inout) | :: | m |
Reads node coordinates from points.dat.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename | |||
| type(mesh_t), | intent(inout) | :: | m |