You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/docs/couple-your-code/couple-your-code-defining-mesh-connectivity.md
+149-1Lines changed: 149 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,12 @@ For surface coupling in 2D, mesh connectivity boils down to defining edges betwe
14
14
For volume coupling in 2D, mesh connectivity boils down to defining triangles and / or quads between vertices. In 3D, you need to define tetrahedra introduced in version `2.5.0`.
15
15
16
16
All kind of connectivity can be built up directly from vertices. Triangles and quads also allow us to define them using edge IDs.
If you do not configure any features in the preCICE configuration that require mesh connectivity, all these API functions are [no-ops](https://en.wikipedia.org/wiki/NOP_(code)). Thus, don't worry about performance. If you need a significant workload to already create this connectivity information in your adapter in the first place, you can also explicitly ask preCICE whether it is required:
The API function `isMeshConnectivityRequired` is only supported since v2.3.
42
93
{% endwarning %}
@@ -52,6 +103,12 @@ Quads are only supported since v2.1. For older version, the methods only exist a
52
103
{% endwarning %}
53
104
54
105
The following code shows how mesh connectivity can be defined in our example. For sake of simplification, let's only define one triangle and let's assume that it consists of the first three vertices.
Copy file name to clipboardExpand all lines: pages/docs/couple-your-code/couple-your-code-gradient-data.md
+58-1Lines changed: 58 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,12 @@ This feature is available since version 2.4.0.
11
11
12
12
When using `nearest-neighbor-gradient` mapping, we require coupling data and additional gradient data. We have seen in [Step 3](couple-your-code-mesh-and-data-access.html) how to write data to the mesh.
13
13
Now, we will learn how to write gradient data to the mesh. For this purpose, we use the following API method:
Let's consider an example for writing block vector gradient data corresponding to the vector data `v0 = (v0x, v0y) , v1 = (v1x, v1y), ... , vn = (vnx, vny)` differentiated in spatial directions x and y.
24
39
The values are passed as following:
25
40
@@ -31,12 +46,18 @@ The values are passed as following:
0 commit comments