The values $b_i$ and $c_i$ are constants determined by the geometry of the triangle. Therefore, the $\mathbf{B}$-matrix is constant within a single element and does not vary with $x$ or $y$. This simplifies the computation of the stiffness matrix $\mathbf{K}_e$ because $\mathbf{B}^T \nu \mathbf{B}$ remains constant and only needs to be multiplied by the area of the triangle.
The $\mathbf{B}$-matrix is therefore constant within a single element and does not vary with $x$ or $y$. This simplifies the computation of the stiffness matrix $\mathbf{K}_e$ because $\mathbf{B}^T \nu \mathbf{B}$ remains constant and only needs to be multiplied by the area of the triangle.
**Question 4: Shape functions**
Investigate the shape functions for the element with index 10 in the mesh. Use the `get_shape_functions_T3` function defined in the notebook to find expressions for the shape functions in that element and check that they satisfy the shape function properties.
- What are the coordinates of the nodes of element 10?
...
...
@@ -231,11 +196,12 @@ To find indices of the three nodes use connectivity[10]
use the indices to get the coordinates from the nodes:
Node indices of element 10: [132 256 257]
Coordinates of the nodes of element 10: [[0.20846317 0.9231442 0. ]
Coordinates of the nodes of element 10:
[[0.20846317 0.9231442 0. ]
[0.17655435 0.9593241 0. ]
[0.15351043 0.91631447 0. ]]
2. shape functions
2. shape functions
The get_shape_functions_T3 outputs the cooefcietns for each shape function in the form:
...
...
@@ -245,7 +211,7 @@ Coordinates of the nodes of element 10: [[0.20846317 0.9231442 0. ]
These coeffients are stored in an array coeffs
Thes coeffients define the shape functions
Shape function N_1(x, y) = 6.57856187723133 + 19.49565546710987 * x + -10.44548414598946 * y
Shape function N_1(x, y) = 6.57856187723133 + 19.49565546710987 * x + -10.44548414598946 * y
Shape function N_2(x, y) = -22.349512454627504 + -3.0958196475143356 * x + 24.909301124585856 * y
Shape function N_3(x, y) = 16.770950577396174 + -16.399835819595534 * x + -14.463816978596396 * y