Datatype for polygon running on mesh points This can either be a single closed polygon, or any positive number of open polygon segments (but not both simultaneously). The polgon must be sufficiently well defined, such that only up to two adjacent points can be uniquely determined for each point.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | allocatable, dimension(:) | :: | ki_seg |
Index of initial point of polygon segment |
Initialises polygon in mesh
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(inout) | :: | self |
Instance of type |
||
| class(equilibrium_t) | :: | equi |
Equilibrium |
|||
| type(mesh_cart_t), | intent(in) | :: | mesh |
Mesh |
||
| integer, | intent(in), | dimension(:) | :: | inds |
Indices (on mesh) of polygon |
|
| logical, | intent(in), | optional | :: | dir_counterclockwise |
If true (=default) the direction of the polygons is set counter-clockwise otherwise it is clockwise |
|
| integer, | intent(in), | optional | :: | dbgout |
Debug output level |
Returns tru if polygon is closed (periodic)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
Returns total number of polygon points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
Returns number of segements
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
Returns number of points of segment
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
||
| integer, | intent(in), | optional | :: | iseg |
Number of segment (default 1) |
Returns mesh index of point of segement
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | ks |
Index on segment For closed polygon this is treated periodically For open segments zero is returned |
||
| integer, | intent(in), | optional | :: | iseg |
Number of segment (default 1) |
Displays information on polygon_in_mesh
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
Writes polygon_in_mesh to netcdf file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(in) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | fgid |
Netcdf file or group id |
Reads polygon_in_mesh from netcdf file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(polygon_in_mesh_t), | intent(inout) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | fgid |
Netcdf file or group id |