Load an internally generated mesh
The predefined meshes are illustrated in the following configuration snippet:
-- use the predefined full cube
mesh = { predefined = 'cube',
-- for a single element in Z-direction use slice:
-- predefined = 'slice',
-- for just a line (single element in Y and Z) use line:
-- predefined = 'line',
-- If you set the refinementLevel to 0, a single element will
-- be created with treeID=1 on level 1, with the bounding cube
-- redefined such, that the element fills the original
-- specification for the bounding cube.
-- The line can also be generated with an arbitrary number of
-- elements instead of a level. In this case the length refers
-- to the overall length of the given elements not the extent of
-- the cube. Periodicity is assumed in X direction as well.
-- To create the line with a certain number of elements set the
-- element_count instead of the refinementLevel. If both are
-- given, the element_count overrules the refinementLevel.
-- for a line with boundary conditions line_bounded:
-- predefined = 'line_bounded'
-- Like line, but needs to have `element_count` given, not
-- `refinementLevel`. This mesh defines boundary conditions in the
-- X direction as west (on the left) and east (on the right), that
-- then need to be defined in the solver configuration.
-- origin of the cube
origin = {0.,0.,0.},
-- length of the cube
length = 10.,
-- refinement level to resolve the cube
refinementLevel = 4 }
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(treelmesh_type), | intent(out) | :: | me | Structure to load the mesh to |
||
type(flu_State) | :: | conf | Directory containing the mesh informations |
|||
integer, | intent(in) | :: | thandle | Handle for the table to read the description of the mesh from. |
||
integer, | intent(in) | :: | myPart | Partition to use on the calling process (= MPI Rank in comm) |
||
integer, | intent(in) | :: | nParts | Number of partitions, the mesh is partitioned into (= Number of MPI processes in comm). |
||
integer, | intent(in) | :: | comm | MPI Communicator to use |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=40), | private | :: | meshtype | ||||
real(kind=rk), | private | :: | origin(3) | ||||
real(kind=rk), | private | :: | length | ||||
integer, | private | :: | elementcount | ||||
integer, | private | :: | level | ||||
integer, | private | :: | sub_handle | ||||
integer, | private | :: | iError | ||||
integer, | private | :: | i | ||||
integer, | private | :: | orig_err(3) |