Datasets:

License:
NumFEM_Eval / 33.py
papakuku's picture
Upload 76 files
76cb30c verified
Raw History Blame Contribute Delete
263 Bytes
from numpy import empty, ndarray
def get_shape_line2(xi: ndarray) -> tuple[ndarray, ndarray]:
N = empty(2)
dNdxi = empty(shape=(1, 2))
N[0] = 0.5 * (1.0 - xi)
N[1] = 0.5 * (1.0 + xi)
dNdxi[0, 0] = -0.5
dNdxi[0, 1] = 0.5
return N, dNdxi