This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Coordinates of a Facet

0 votes

Hello.
I'm trying to retrieve the local entity of a facet referenced to a cell by its coordinates. But I can't find in the documentation a way of retrieve the coordinates of the points of a Facet object, only of a Cell.

For example, I have:

facets_coordinates = np.array([[1,2],[3,4],[5,6]]) #List of coordinates of interest
cell_list = [c for c in cells(mesh)]
for c in cell_list:
c_index = c.index()
for f in facets(c):
f_index = f.index(c)
#Something for check if coordinates of f in facets_coordinates

Is there a way of doing this?

asked Oct 22, 2015 by DFN FEniCS Novice (120 points)
...