Hi Tobias,
  This can alternatively be done by making u to be a discontinuous field and projecting your expression.

On Tuesday, 18 October 2016, Schwedes, Tobias <t.schwedes14@imperial.ac.uk> wrote:

Hi all,


I would like to assign different values of some function u on subdomains of a 2-D domain. More precisely, I want to have u equal to 1 for y > x and equal to 0 otherwise. For that reason I guess one needs to be able to define subdomains. Besides the Issue on


https://github.com/firedrakeproject/firedrake/issues/723


I didn't find any helpful information online. Can someone help out please? I attached the fenics version of what I want, hoping that might help!


All the best,

Tobias



--
http://www.imperial.ac.uk/people/colin.cotter

www.cambridge.org/9781107663916