Solve a variational form containing two unknowns

Dear all,

In my variational form, there are two unknowns and according to some literature I need to solve these two unknowns simultaneously. Can we do this in Fenics? I know how to solve a variational form containing one unknown, but I have no idea how to solve a variational form containing two unknowns using Fenics.

I appreciate any help.

Of course, see for example,

Stokes demo solving for pressure and velocity
Cahn Hilliard demo Solving for two variables arising from an operator splitting

1 Like