@kamensky , I get the following error:

fridge_mesh is the mesh I am currently using.

TypeError Traceback (most recent call last)

~/skeleton.py in

15

16 u_normalized = Function(FunctionSpace(fridge_mesh,“CG”,1))

—> 17 u_normalized.vector()[:] = u_normalized

18

19 u2_normalized = Function(FunctionSpace(fridge_mesh,“CG”,1))

TypeError: **setitem**(): incompatible function arguments. The following argument types are supported:

1. (self: dolfin.cpp.la.GenericVector, arg0: slice, arg1: float) → None

2. (self: dolfin.cpp.la.GenericVector, arg0: slice, arg1: dolfin.cpp.la.GenericVector) → None

3. (self: dolfin.cpp.la.GenericVector, arg0: slice, arg1: numpy.ndarray[numpy.float64]) → None

4. (self: dolfin.cpp.la.GenericVector, arg0: numpy.ndarray[numpy.int32], arg1: float) → None

5. (self: dolfin.cpp.la.GenericVector, arg0: numpy.ndarray[numpy.int32], arg1: numpy.ndarray[numpy.float64]) → None

Invoked with: <dolfin.cpp.la.PETScVector object at 0x7fa3f01c78b0>, slice(None, None, None), Coefficient(FunctionSpace(Mesh(VectorElement(FiniteElement(‘Lagrange’, tetrahedron, 1), dim=3), 14), FiniteElement(‘Lagrange’, tetrahedron, 1)), 52)