I am trying to model mixed formulation for hyperelasticity with mean dilatation formulation. The mean dilatation procedure is based on an arbitrary volume V, which after discretization will inevitably become the volume of each element. For example;
So, it is need to done in element level rather than performing in material level. How can it be done in FEniCS ? Currently I am trying to model this averaging over element by DG=0, but i am not sure if it works as same. Thanks.
But I do not think that it is applicable for a function in mixed formulation. It changes the ufl type of the quantity. So I cannot use it in the free energy form.
I guess you can try to use cell_avg on the sub function J in the mixed-form function. For instance if J is the zero-th component of this function, then