Module implementing polar grid The polar grid has dimension (nrho, ntheta) with uniform grid spacing rho is the radial coordinate as prescribed by the equilibrium theta is the geometric poloidal angle
Returns toroidal angle phi
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Gets rhopol_min
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Gets rhopol_max
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Gets nrho
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Gets ntheta
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Gets drho
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Gets dtheta
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Computes rho at point ip
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | ip |
Radial grid index |
Computes rho at point ip
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | jp |
Poloidal grid index |
Computes total area of flux surface Assumes axisymmetry
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
||
| class(equilibrium_t), | intent(inout) | :: | equi |
Equilibrium |
||
| integer, | intent(in) | :: | ip |
Radial grid index |
Computes the volume of flux surface Radial extent of [rho-drho/2, rho + drho/2]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
||
| class(equilibrium_t), | intent(inout) | :: | equi |
Equilibrium |
||
| integer, | intent(in) | :: | ip |
Radial grid index |
Displays information for polar grid
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(inout) | :: | self |
Instance of the type |
||
| class(equilibrium_t), | intent(inout) | :: | equi |
Equilibrium |
||
| real(kind=FP), | intent(in) | :: | phi |
Toroidal angle |
||
| integer, | intent(in) | :: | nrho |
Number of radial grid points |
||
| integer, | intent(in) | :: | ntheta |
Number of poloidal grid points |
Writes information about the polar_grid_t
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
||
| class(equilibrium_t), | intent(inout) | :: | equi |
Equilibrium |
||
| integer, | intent(in) | :: | fgid |
File or group id number of existing Netcdf4 file |
Reads information about the polar_grid_t
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(inout) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | fgid |
File or group id number of existing Netcdf4 file |
Displays information for polar grid
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polar_grid_t), | intent(in) | :: | self |
Instance of the type |
Frees memory associated with polar_grid_t
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(polar_grid_t), | intent(inout) | :: | self |
Instance of the type |
Polar grid
| final :: destructor |
| procedure, public :: initialize => initialize_polar_grid | |
| procedure, public :: get_phi | |
| procedure, public :: get_rhopol_min | |
| procedure, public :: get_rhopol_max | |
| procedure, public :: get_nrho | |
| procedure, public :: get_ntheta | |
| procedure, public :: get_drho | |
| procedure, public :: get_dtheta | |
| procedure, public :: get_rho | |
| procedure, public :: get_theta | |
| procedure, public :: fluxsurf_area | |
| procedure, public :: fluxsurf_vol | |
| procedure, public :: display => display_polar_grid | |
| procedure, public :: write_netcdf => write_netcdf_polar | |
| procedure, public :: read_netcdf => read_netcdf_polar |