Invalid coefficient type for derivative

As your energy is non-linear wrt u, you should not use a TrialFunction, but a Function, i.e.

u = dolfinx.fem.Function(VFS)
1 Like