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

Function add_seg

python/meshes.py:413–417  ·  view source on GitHub ↗
(i, j, os)

Source from the content-addressed store, hash-verified

411
412 def AddSurfEls(p1, dxi, nxi, deta, neta, facenr):
413 def add_seg(i, j, os):
414 base = p1 + i*dxi + j*deta
415 pnum = [base, base+os]
416 elpids = [pids[p] for p in pnum]
417 netmesh.Add(Element1D(elpids, index=facenr))
418 for i in range(nxi):
419 for j in [0,neta]:
420 add_seg(i,j,dxi)

Callers 1

AddSurfElsFunction · 0.85

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected