コード例 #1
0
 def _fd(pts):
     rect = shape.rectangle(pts, p1=[-1, -0.6], p2=[1, 0.6])
     circle = shape.circle(pts, r=0.3)
     return shape.dist_diff(rect, circle)
コード例 #2
0
 def _fh(pts):
     return 0.05 + 0.05 * shape.circle(pts, r=0.3)
コード例 #3
0
 def _fd(pts):
     """ shape function """
     return shape.circle(pts, pc=[0, 0], r=1.)
コード例 #4
0
 def _fd(pts):
     return shape.dist_diff(shape.circle(pts, r=0.7),
                            shape.circle(pts, r=0.3))
コード例 #5
0
ファイル: demo_distmesh2d.py プロジェクト: liubenyuan/pyEIT
 def _fh(pts):
     return 0.05 + 0.05 * shape.circle(pts, r=0.3)
コード例 #6
0
 def _fd(pts):
     """ _fd must centered at [0, 0] """
     ellipse = shape.ellipse(pts, pc=[0, -0.6], ab=[1, 1.5])
     circle = shape.circle(pts, pc=[0, 0], r=1)
     return shape.dist_intersect(ellipse, circle)
コード例 #7
0
ファイル: demo_distmesh2d.py プロジェクト: liubenyuan/pyEIT
 def _fd(pts):
     return shape.ddiff(shape.rectangle(pts, p1=[-1, -0.6], p2=[1, 0.6]),
                        shape.circle(pts, r=0.3))
コード例 #8
0
ファイル: demo_distmesh2d.py プロジェクト: liubenyuan/pyEIT
 def _fd(pts):
     return shape.ddiff(shape.circle(pts, r=0.7),
                        shape.circle(pts, r=0.3))
コード例 #9
0
ファイル: demo_distmesh2d.py プロジェクト: liubenyuan/pyEIT
 def _fd(pts):
     """ shape function """
     return shape.circle(pts, pc=[0, 0], r=1.)
コード例 #10
0
ファイル: demo_distmesh2d.py プロジェクト: liubenyuan/pyEIT
 def _fd(pts):
     """ _fd must centered at [0, 0] """
     return shape.dintersect(shape.ellipse(pts, pc=[0, -0.6], ab=[1, 1.5]),
                             shape.circle(pts, pc=[0, 0], r=1))
コード例 #11
0
ファイル: demo_distmesh2d.py プロジェクト: liubenyuan/pyEIT
 def _fd(pts):
     # return d2d.dcircle(pts, pc=[0, 0], r=1.)
     return shape.ddiff(shape.circle(pts, r=0.7),
                        shape.circle(pts, r=0.3))