mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
test case for leftdom==rightdom in geom2d
This commit is contained in:
parent
79542999f5
commit
6b30ec0b7c
13
tests/pytest/test_geom2d.py
Normal file
13
tests/pytest/test_geom2d.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
from netgen.geom2d import SplineGeometry
|
||||||
|
|
||||||
|
|
||||||
|
def test_leftdom_equals_rightdom():
|
||||||
|
geo = SplineGeometry()
|
||||||
|
pnts = [(0,0), (1,0), (2,0), (2,1), (1,1), (0,1)]
|
||||||
|
gp = [geo.AppendPoint(*p) for p in pnts]
|
||||||
|
lines = [(0,1,0), (1,2,0), (2,3,0), (3,4,0), (4,5,0), (5,0,0), (1,4,1)]
|
||||||
|
for p1, p2, rd in lines:
|
||||||
|
geo.Append(["line", p1, p2], leftdomain=1, rightdomain=rd)
|
||||||
|
|
||||||
|
mesh = geo.GenerateMesh()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user