### Value of the function n each cell?

13

views

0

Dear all,

in the following code,

mesh = UnitSquareMesh(4, 4)

V = FunctionSpace(mesh, "DG", 0)

u = Function(V)

u1 = x[0] +x[1]

u = project(u1, V)

How can I get the value of u on each cell of mesh?

Any help is highly appreciated.

Best,

Amireh

in the following code,

mesh = UnitSquareMesh(4, 4)

V = FunctionSpace(mesh, "DG", 0)

u = Function(V)

u1 = x[0] +x[1]

u = project(u1, V)

How can I get the value of u on each cell of mesh?

Any help is highly appreciated.

Best,

Amireh

Community: FEniCS Project

Please login to add an answer/comment or follow this question.