Skip to content

Commit

Permalink
add documentation info
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickscholz committed Nov 8, 2024
1 parent e66b2b2 commit 3bd217d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tripyview/sub_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2265,6 +2265,20 @@ def compute_boundary_edges(e_i):
#
# ___COMPUTE LIST/ARRAY NODE_IN_ELEM____________________________________________
def compute_nod_in_elem2D(n2dn, e_i, do_arr=False):
"""
--> compute element indices list that contribute to cetain vertice
Parameters:
:n2dn: int, number of vertices
:e_i: np.array([n2de x 3]), elemental array
:do_arr: bool (default=False) shut output be list or numpy array
Returns:
:nod_in_elem2D:
"""
t1=clock.time()
# allocate list of size n2dn, create independent empty lists for each entry,
nod_in_elem2D = [[] for _ in range(n2dn)]
Expand Down

0 comments on commit 3bd217d

Please sign in to comment.