Module to describe geometrical objects in Seeder.
The sdr_spatialObj_type is used to build up a list of all geometric objects to be considered in the mesh generation. They serve as a pointer to more detailed descriptions of the actual geometrical representation.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | parameter | :: | point | = | 1 | |
| integer, | public, | parameter | :: | line | = | 2 | |
| integer, | public, | parameter | :: | triangle | = | 3 | |
| integer, | public, | parameter | :: | box | = | 4 | |
| integer, | public, | parameter | :: | periodicPlane | = | 5 | |
| integer, | public, | parameter | :: | sphere | = | 6 | |
| integer, | public, | parameter | :: | cylinder | = | 7 | |
| integer, | public, | parameter | :: | spacerInterwoven | = | 8 | |
| integer, | public, | parameter | :: | ellipsoid | = | 9 |
initialize the dynamic array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type), | intent(out) | :: | me | |||
| integer, | intent(in), | optional | :: | length |
truncate the array, meaning cut off the trailing empty entries
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me |
empty the entries without changing arrays
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me |
destroy the dynamic array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type), | intent(inout) | :: | me |
insert an element at a given position
adds the value to a given position inside the growing array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val | |||
| integer, | intent(in) | :: | pos | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
adds the values starting from a given position inside the growing array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val(:) | |||
| integer, | intent(in) | :: | pos | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
append a value to the dynamic array and return its position.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val(:) | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
increase the size of the container for the array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| integer, | intent(in), | optional | :: | pos | ||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
This data type describes a geometric object generically.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | attribute_position | Position of the attribute in the list of attributes, this object should be attached to. |
|||
| integer, | private | :: | geometry_primitive | What kind of geometric primitive is this object? |
|||
| integer, | private | :: | primitive_position | Position in the list of correspoding primitive. |
growing array type for type(sdr_spatialobj_type)
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | nvals | = | 0 | ||
| integer, | private | :: | containersize | = | 0 | ||
| type(sdr_spatialObj_type), | private, | allocatable | :: | val(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type), | intent(out) | :: | me | |||
| integer, | intent(in), | optional | :: | length |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type), | intent(inout) | :: | me |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me |
adds the value to a given position inside the growing array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val | |||
| integer, | intent(in) | :: | pos | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
adds the values starting from a given position inside the growing array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val(:) | |||
| integer, | intent(in) | :: | pos | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| type(sdr_spatialObj_type), | intent(in) | :: | val(:) | |||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(grw_spatialobjarray_type) | :: | me | ||||
| integer, | intent(in), | optional | :: | pos | ||
| integer, | intent(in), | optional | :: | length | optional length to expand the array |