Calculate curl of a vector field in Python and plot it with matplotlib
In the first answer,
from sympy.physics.vector import ReferenceFrame
from sympy.physics.vector import curl
R = ReferenceFrame('R')
F = R[1]**2 * R[2] * R.x - R[0]*R[1] * R.y + R[2]**2 * R.z
G = curl(F, R)
Now he prints G, obtains the expressions for the components of the curl field, manually and assigns them as
u = 0
v = y**2
w = -2*y*z - y
How to obtain, u,v,w directly from G, instead how manually printing and assigning? What is G? Can we convert it into a string ? I don't want to plot, I just want the expressions for the components of the curl.