Requesting complete code corresponding to demo problem posted on Fenics site

Dear All

The homepage of FeniCS contains an example problem which considers three spheres immersed in a 3D channel and subjected to Stokes flow.

Could you please share the complete code which was used for the solution of this problem? I want to know how the velocity and pressure conditions are specified for the problem. I am new to Fenics and trying to learn by going through code segments and executing them.

Thank You
Warm Regards

Im not sure if the problem illustrated by the code on the main page is in the source repository. However, you can find plenty of documented demos at:
In particular, you could have a look at:
or if you want something slightly more advanced (using optimization)
or DG methods:

1 Like