Skip to content

Commit

Permalink
add figures again
Browse files Browse the repository at this point in the history
  • Loading branch information
project-fluxo-old committed Nov 22, 2023
1 parent 9db3cea commit 54d43a3
Showing 1 changed file with 39 additions and 10 deletions.
49 changes: 39 additions & 10 deletions docs/documentation/userguide/meshformat.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ name: tab:mesh_file_attributes
| Ngeo $\geq 1$ | INTEGER | Polynomial degree $N_{geo}$ of element mapping, used to determine the number of nodes per element |
| nElems | INTEGER | Total number of elements in mesh |
| nSides | INTEGER | Total number of sides (or element faces) in file |
| nEdges? | INTEGER | Total number of edges in file |
| nNodes | INTEGER | Total number of nodes in file |
| nEdges? | INTEGER | Total number of entries in the EdgeInfo array |
| nNodes | INTEGER | Total number of entries in the VertexInfo array |
| nUniqueSides | INTEGER | Total number of geometrically unique sides in the mesh |
| nUniqueEdges? | INTEGER | Total number of geometrically unique edges in the mesh |
| nUniqueNodes | INTEGER | Total number of geometrically unique nodes in the mesh |
Expand Down Expand Up @@ -132,7 +132,7 @@ name: tab:elem_info
| | |
| :--- | :--- |
| Name in file: | **ElemInfo** |
| Type: | INTEGER, Size: Array(1:6,1:**nElems**$^*$) |
| Type: | INTEGER, Size: Array(1:10,1:**nElems**$^*$) |
| Description: | Array containing elements, one element per row, **row number is elemID**. |
```

Expand All @@ -141,12 +141,12 @@ However, this way, each processor has a defined, non overlapping, range of side
operations, minimizing the need of communication between processors.


| | *Element Type* | *Zone* | *offsetIndSIDE* | *lastIndSIDE* | *offsetIndNODE* | *lastIndNODE* |
| - | - | - | - | - | - | - |
| 1 | 116 | 1 | 0 | 5 | 0 | 6 |
| 2 | 118 | 1 | 5 | 11 | 6 | 14 |
| 3 | 104 | 2 | 11 | 15 | 14 | 18 |
| 4 | 115 | 2 | 15 | 20 | 18 | 23 |
| | *Element Type* | *Zone* | *offsetIndSIDE* | *lastIndSIDE* | *offsetIndNODE* | *lastIndNODE* |*offsetIndEDGE* | *lastIndEDGE* |*offsetIndVERTEX* | *lastIndVERTEX* |
| - | - | - | - | - | - | - | - | - | - | - |
| 1 | 116 | 1 | 0 | 5 | 0 | 6 | 0 | ??? | 0 | ??? |
| 2 | 118 | 1 | 5 | 11 | 6 | 14 | ??? | ??? | ??? | ??? |
| 3 | 104 | 2 | 11 | 15 | 14 | 18 | ??? | ??? | ??? | ??? |
| 4 | 115 | 2 | 15 | 20 | 18 | 23 | ??? | ??? | ??? | ??? |

The example mesh {numref}`fig:exmesh` with 4 elements is summarized in table {numref}`tab:elem_info_array`.

Expand All @@ -160,6 +160,8 @@ name: tab:elem_info_array
| *Zone*: | Element group number. |
| *offsetIndSIDE/lastIndSIDE*: | Each element has a range of sides in the **SideInfo** array. |
| *offsetIndNODE/lastIndNODE*: | Each element has a range of node coordinates in the **NodeCoords** array and **GlobalNodeIDs** array for unique indices. |
| *offsetIndEDGE/lastIndEDGE*: | Each element has a range of edges in the **EdgeInfo** array. |
| *offsetIndVERTEX/lastIndVERTEX*: | Each element has a range of edges in the **VertexInfo** array. |
```

The range and the size are always defined as: *Range=[offset+1,last], Size=last-offset*
Expand Down Expand Up @@ -220,7 +222,34 @@ name: tab:side_info_array
| 10*nbLocSide+Flip*: | first digit : local side of the connected neighbor element$\in[1,\dots,6]$, last digit: Orientation between the sides (flip $\in [0,\dots,4]$), see Section {ref}`userguide/meshformat:Element Connectivity`. |
| *BCID*: | Refers to the row index of the Boundary Condition List in **BCNames**/**BCType** array ($\in[1,\dots\text{\texttt{nBCs}}]$). $=0$ for inner sides. Note that $\neq 0$ for periodic and inner boundary conditions, while nbElemID and nbLocSide+Flip are given, see Section {ref}`userguide/meshformat:Boundary Conditions`. |
```
### Vertex Information (VertexInfo)

#### Edge Information (EdgeInfo)

```{table} Side Information
---
name: tab:edge_info
---
| | |
| :--- | :--- |
| Name in file: | **EdgeInfo** |
| Type: | INTEGER, Size: Array(1:?,1:**nEdges**$^*$) |
| Description: | Side array, all information of one element is a set of all element sides (CGNS ordering, \rf{fig:CGNS}). |
| | *offsetIndSIDE/lastIndSIDE*in **ElemInfo** refers to the row index of one set of element sides. |
```


```{figure} figures/2d_edge_vertex_connectivity_example.jpg
---
name: fig:exmesh2d
width: 800px
align: center
---
Example 2D mesh with periodic BC, local, unique node IDs and **FEMVertexID** (circles,ellipses) and local, unique edge IDs and their FEMEdgeIDs (trapezoid)
#### Vertex Information (VertexInfo)
The **VertexInfo** array includes the `FEMVertexID` of each local element vertex in the same order as the CGNS corners as well as the `offsetIndVertexConnect` and the `lastIndVertexConnect`
which refer to the corresponding position in the additional **VertexConnectInfo** array. Here, the `nbElemID` as well as the `localNodeID` in the corresponding `nbElemID` are saved. Therefore, the multiplicity is given as `multiplicity = lastIndVertexConnect- offsetIndVertexConnect + 1.`
Expand Down

0 comments on commit 54d43a3

Please sign in to comment.