domain
Generate a Region by "Subtraction"


domain, a FENICS code which which creates a region starting with a circle, and then "subtracting" a rectangle and smaller circle.

Note that I have installed FENICS using Docker, and so to run this script I issue the commands:

  1. cd $HOME/fenicsproject/domain
  2. fenicsproject run
  3. python3 domain.py
  4. exit

Licensing:

The GNU LGPL license.

Reference:

  1. Hans Petter Langtangen, Anders Logg,
    Solving PDEs in Python - The FEniCS Tutorial Volume 1.

Source Code:


Last revised on 18 October 2018.