As your energy is non-linear wrt u
, you should not use a TrialFunction
, but a Function
, i.e.
u = dolfinx.fem.Function(VFS)
As your energy is non-linear wrt u
, you should not use a TrialFunction
, but a Function
, i.e.
u = dolfinx.fem.Function(VFS)