Generate a predefined line with a given number of elements
This serves as an simple grid generation for performance or scaling analysis without being obliged to use Seeder. You have to specify the generic grid parameters in the lua file instead of the mesh folder
mesh = { predefined='line', -- or: 'line_bounded'
origin = {0.,0.,0.},
length = 10.,
elementcount = 6 }
You have to specify the shape 'line', a bounding box origin, its length and the number of elements, which results in different amount elements in the grid.\n The result of this routine is mainly the treeID list with the additional lists for saving the properties. The generated line will be a line of elementcount elements along the X-Axis with periodicity in all directions.
It is also possible to generate a mesh with boundary conditions in the X direction (west and east), by using the predefined 'line_bounded'. In this case these two boundary conditions need to be provided in the solver configuration.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(treelmesh_type), | intent(out) | :: | me | Mesh to generate |
||
real(kind=rk), | intent(in) | :: | origin(3) | Corner of the cube |
||
real(kind=rk), | intent(in) | :: | length | Length of cube |
||
integer, | intent(in) | :: | elementcount | Number of elements in the line |
||
integer, | intent(in) | :: | myPart | Partition of the caller (starts with 0) |
||
integer, | intent(in) | :: | nParts | Number of partitions |
||
integer, | intent(in) | :: | comm | communicator to be used |
||
character(len=*), | intent(in) | :: | predefined | Label describing the internal mesh. |
||
character(len=*), | intent(in) | :: | bclabel | Label describing the boundary conditions to set for this mesh. |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | level | ||||
integer(kind=long_k), | private | :: | firstID | ||||
integer(kind=long_k), | private | :: | lastID | ||||
integer(kind=long_k), | private | :: | share | ||||
integer, | private | :: | remainder | ||||
integer, | private | :: | iPart | ||||
integer, | private | :: | iElem | ||||
integer, | private | :: | coord(4) | ||||
integer, | private | :: | lastcoord | ||||
integer, | private | :: | xbound_pad |