MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / AddEdgeEls

Function AddEdgeEls

python/TensorProductTools.py:11–16  ·  view source on GitHub ↗
(p1, dx, facenr, n, pids,mesh)

Source from the content-addressed store, hash-verified

9
10
11def AddEdgeEls (p1, dx, facenr, n, pids,mesh):
12 for i in range(n):
13 base = p1 + i*dx
14 pnum = [base, base+dx]
15 elpids = [pids[p] for p in pnum]
16 mesh.Add (Element1D(elpids,index=1))
17
18def SegMesh(n,x0,x1,periodic=False):
19 mesh = Mesh(dim=1)

Callers 1

SegMeshFunction · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected