expression_test


expression_test, a FENICS script which investigates some simple uses of the Expression() function and Expression objects.

The Expression() function is a convenient way to take a formula, as a quoted string, and turn it into an object that can be evaluated, plotted, projected into a finite element space, or used to define a "form".

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

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

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

mesh_test, a FENICS script which explores mesh objects.

Source Code:


Last revised on 12 November 2018.