Would it be possible to add a function to quickly enable conversion of a field between being defined on elements and vertices?
E.g. defining the x coordinates on an element rather than vertex in matlab is:
x_el = mean(md.mesh.x(md.mesh.elements),2);
Converting velocity from being defined on elements to vertices in matlab is:
vel_vert = averaging(md, vel_el, 0);
Would it be possible to add a function to quickly enable conversion of a field between being defined on elements and vertices?
E.g. defining the x coordinates on an element rather than vertex in matlab is:
x_el = mean(md.mesh.x(md.mesh.elements),2);Converting velocity from being defined on elements to vertices in matlab is:
vel_vert = averaging(md, vel_el, 0);