The grid module contains the grid definition (locations of the grid points) as well as procedures to load these from a file.
Read the grid file and initialize the grid
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(filetype), | intent(in) | :: | files | Files' name and handler |
||
type(nodetype), | intent(out), | dimension(:,:,:), allocatable | :: | nodes | Grid points |
|
type(controltype), | intent(in) | :: | control | Control parameters |
||
type(boundarytype), | intent(inout) | :: | bc | boundary conditions and fixed values |
||
type(extent), | intent(out) | :: | dims | Extent of the domain:imx,jmx,kmx |
Extract the grid size from the grid file header
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_handler | (input)file handling unit |
||
type(extent), | intent(out) | :: | dims | Extent of the domain:imx,jmx,kmx |
Use the grid file to populate the grid points.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file_handler | (input)file handling unit |
||
type(nodetype), | intent(out), | dimension(-2:dims%imx+3,-2:dims%jmx+3,-2:dims%kmx+3) | :: | nodes | Grid points |
|
type(extent), | intent(in) | :: | dims | Extent of the domain:imx,jmx,kmx |