Vector component in Python Calculator

Is there a possibility to select a vector component (or scalar, if you want) for processing in Python Calculator filter? In Calculator it’s possible through the special notation, for example to work with X component of displacement I need to type Displacement_X. The same thing does not work for Python Calculator.

What I need to do is to calculate the gradient of Displacement X component. What would be the correct expression for that? Thank you.

You can access the 0-th component of an array named Normals with Normals[:,0].

Hello,

I tried to access the first component of a tensor named sigma. But when I try this: sigma[0,0].rename("sigma[0,0]", "xx"), I get AttributeError: 'Indexed' object has no attribute 'rename'
Can you please tell me how I can rename arrays of a tensor?

Thank you so much!