Dolfin Cell from ufc_cell
Asked by
Jehanzeb
Hi,
In my python code, I need access to the cell size (say, circumradius, largest length or something similar). I am doing the following:
class my_func(
def __init_
self.mesh = mesh
def eval_cell(self, values, x, ufc_cell):
dolfin_cell = Cell(self.mesh, ufc_cell.index)
print dolfin_
values[0] = 0
Is this the right way to do it? I am concerned that the ufc_cell.index may not equate to the index of the dolfin cell in the mesh. Secondly, I am not sure what diameter() gives me. Is the diameter of the circumcircle?
Thanks,
-Jehanzeb
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Garth Wells
- Solved:
- Last query:
- Last reply:
To post a message you must log in.