|
subroutine | mod_grid_generator::initialize_grid_generator (coordg_fx, coordg_fy, coordg_fz) |
| Allocate 3 directional grids.
|
|
subroutine | mod_grid_generator::grid_generate_regular (cell_range, coordinate_range, coordg) |
| Generate a regular grid. More...
|
|
subroutine | mod_grid_generator::grid_generate_chebyshev (cell_range, coordinate_range, coordg) |
| Generate a Chebyshev grid. More...
|
|
subroutine | mod_grid_generator::grid_generate_exponential (cell_range, coordinate_range, expansion_ratio, coordg) |
| Generate an exponential grid from the expansion ratio. More...
|
|
subroutine | mod_grid_generator::grid_generate_exponential2 (cell_range, coordinate_range, first_step, reverse, coordg) |
| Generate an exponential grid from the first step. More...
|
|
subroutine | mod_grid_generator::read_grid_dimensions_from_file (filename) |
| Create a grid from a file. More...
|
|
subroutine | mod_grid_generator::create_grid_from_file (coordg_fx, coordg_fy, coordg_fz, filename) |
| Create a grid from a file. More...
|
|
subroutine | mod_grid_generator::complete_grid_structure (coordg_fx, coordg_fy, coordg_fz) |
| Compute coordinates and spatial steps using global face coordinates. More...
|
|
subroutine | mod_grid_generator_refined_grid::complete_grid_structure_refined_grid () |
| Compute coordinates and spatial steps of the refined grid using the main grid.
|
|
subroutine mod_grid_generator::grid_generate_exponential |
( |
integer, dimension(2), intent(in) |
cell_range, |
|
|
double precision, dimension(2), intent(in) |
coordinate_range, |
|
|
double precision, intent(in) |
expansion_ratio, |
|
|
double precision, dimension(:), intent(inout) |
coordg |
|
) |
| |
The expansion ratio is defined as the ratio of the last step over the first step
length = l
┌──┬────┬─ ─ ─ ─┬───────┐
Δ1 Δ2 Δn
The spacial steps are determined by
\[
\Delta_i = l \dfrac{1-q}{1-q^n}q^{i-1}
\]
where \( q = \frac{\Delta_n}{\Delta_1}^{\frac{1}{n-1}} \)
- Parameters
-
[in] | cell_range | cell range of the sub-grid (e.g. [3,6] means from cell 3 to cell 6) |
[in] | coordinate_range | coordinate range of the sub_grid (e.g. [1.0,2.0] means from 1.0 to 2.0) |
[in] | expansion_ratio | ratio of the last step over the first step |
[in,out] | coordg | face coordinates along a given axis |
subroutine mod_grid_generator::grid_generate_exponential2 |
( |
integer, dimension(2), intent(in) |
cell_range, |
|
|
double precision, dimension(2), intent(in) |
coordinate_range, |
|
|
double precision, intent(in) |
first_step, |
|
|
logical, intent(in) |
reverse, |
|
|
double precision, dimension(:), intent(inout) |
coordg |
|
) |
| |
length = l
┌──┬────┬─ ─ ─ ─┬───────┐
Δ1 Δ2 Δn
The spacial steps are determined by
\[
\Delta_i = \Delta_1 k^{i-1}
\]
The common ratio k is determinate by solving the following equation using a Newton-Raphson algorithm.
\[
\Delta_1 \dfrac{1-k^n}{1-k} = l
\]
- Parameters
-
[in] | cell_range | cell range of the sub-grid (e.g. [3,6] means from cell 3 to cell 6) |
[in] | coordinate_range | coordinate range of the sub_grid (e.g. [1.0,2.0] means from 1.0 to 2.0) |
[in] | first_step | first step of the exponential mesh (also last_step if reverse is set to .true.) |
[in] | reverse | the first step becomes the last step if this flag is set to .true. |
[in,out] | coordg | face coordinates along a given axis |