I am interested in solving some mechanical problems with spatially varying material properties in FEniCSx. In the tutorials, these properties are captured using Discontinuous Constant functions (DG0). I can understand the benefit of using a discontinuous function (especially if you have truly discontinuous properties). However, I’m not sure why a specific restriction to cell-wise constant functions is used. Is this just because the tutorials were using domains with discontinuous properties? If you have a material with e.g. linearly varying properties, would it not make sense to use a DG1 function? Is there a specific reason to use constant functions that I am missing?
Thanks!