merged the gmsh meshes (2/3D) into a single mesh, updated other files to support this
This commit is contained in:
@@ -77,6 +77,7 @@ class grid(object):
|
||||
|
||||
log.debug("simplex vert indicies: %s" % simplex.verts)
|
||||
R = self.create_mesh(simplex.verts)
|
||||
log.debug("R:\n%s", R)
|
||||
|
||||
log.debug('total attempts before finding simplex: %d' % attempts)
|
||||
return R
|
||||
@@ -92,7 +93,7 @@ class grid(object):
|
||||
q = [self.q[i] for i in indicies]
|
||||
return grid(p, q)
|
||||
|
||||
def get_simplex_and_nearest_points(self, X, extra_points = 3, simplex_size = 3):
|
||||
def get_simplex_and_nearest_points(self, X, extra_points = 3):
|
||||
"""
|
||||
this returns two grid objects: R and S.
|
||||
|
||||
@@ -101,6 +102,7 @@ class grid(object):
|
||||
S is S_j from baker's paper : some verts from all point that are not the
|
||||
simplex
|
||||
"""
|
||||
simplex_size = self.dim + 1
|
||||
log.debug("extra verts: %d" % extra_points)
|
||||
log.debug("simplex size: %d" % simplex_size)
|
||||
|
||||
@@ -234,12 +236,13 @@ class cell(object):
|
||||
return interp.grid.simplex.contains(X, [G.verts[i] for i in self.verts])
|
||||
|
||||
def __str__(self):
|
||||
neighbors = [str(i.name) for i in self.neighbors]
|
||||
return '<cell %s: verts: %s neighbors: [%s]>' %\
|
||||
# neighbors = [str(i.name) for i in self.neighbors]
|
||||
return '<cell %s: verts: %s neighbor count: %s>' %\
|
||||
(
|
||||
self.name,
|
||||
self.verts,
|
||||
", ".join(neighbors)
|
||||
len(self.neighbors),
|
||||
# ", ".join(neighbors)
|
||||
)
|
||||
|
||||
__repr__ = __str__
|
||||
|
||||
Reference in New Issue
Block a user