Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media
.gitignore
Makefile
README.md
automated-shape-derivates.md
pipe2d.geo
pipe2d.msh
pipe2dopt.py
pipe2dsolve.py

README.md

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

source /path/to/firedrake/bin/activate

The code can then be run using

python3 pipe2dsolve.py

To run the full shape optimisation code, execute

python3 pipe2dopt.py
You can’t perform that action at this time.