Store nodal and mesh values in csv file

hello everyone, I want to store the nodal and mesh values in csv file.

ie (coor, u_nodal_values) in csv file.

but I have difficulties, I am a beginner, your suggestions will help me a lot. THANK YOU

mesh =RectangleMesh(Point(0, 0), Point(145, 45), nx, ny,'left')

V = FunctionSpace(mesh, ‘P’, 1)

u_nodal_values = u1.vector().get_local()

coor = mesh.coordinates()

See: Save the result of mpirun in a numpy array - #2 by dokken