Ask Your Question

Revision history [back]

You can define the following Python function:

def dotnabla(A, B):
    nabla = E.metric().connection()
    return nabla(B).contract(A)

which evaluates $(\vec{A}\cdot\vec{\nabla})\vec{B}$ as the contraction $A^j\nabla_j B^i$.