Requesting complete code corresponding to demo problem posted on Fenics site

Dear All

The homepage of FeniCShttps://fenicsproject.org/ 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:
https://fenicsproject.org/olddocs/dolfin/latest/python/demos.html
In particular, you could have a look at:
https://fenicsproject.org/olddocs/dolfin/latest/python/demos/stokes-iterative/demo_stokes-iterative.py.html
or if you want something slightly more advanced (using optimization)
http://www.dolfin-adjoint.org/en/latest/documentation/stokes-bc-control/stokes-bc-control.html
http://www.dolfin-adjoint.org/en/latest/documentation/stokes-shape-opt/stokes_problem.html
or DG methods:
https://bitbucket.org/nate-sime/dolfin_dg/src/master/demo/dolfin/stokes/

1 Like