Let's say I have
mesh = UnitIntervalMesh(1) Q3 = FunctionSpace(mesh, 'CG', 3) v = TestFunction(Q3) R = assemble(v*dx)
Is R the vector such that $$R[i] = \int_{x_{i-1}}^{x_{i+1}}{\phi_i(x)dx}$$ where $\phi_i$ is the basis function at node i?
Yes, that is correct. You can view the resulting vector (and confirm it yourself) with:
print R.array()