Sample code for shape optimisation in Firedrake
The code presented here requires the Firedrake finite element library. On Mac or Linux, installing Firedrake is as easy as
curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/master/scripts/firedrake-install python3 firedrake-install
(see here for details). On Windows 10, Firedrake can be used using the Windows Subsystem for Linux. Detailed Instructions can be found here. Firedrake is unlikely to work on older versions of Windows.
Once Firedrake has been set up, it needs to be activated using
The code can then be run using
To run the full shape optimisation code, execute