We have moved the forum to https://forum.ngsolve.org. This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.
Is there an easy way to define a piecewise coefficient function? I want to use it in defining mass matrices for my fem scheme:
\int \sigma(x)*u*v dx
where sigma(x) will be zeros for a range of values in the space im integrating over.