neperfepx / neper

Polycrystal generation and meshing
http://neper.info
GNU General Public License v3.0
199 stars 53 forks source link

Add smooth mesh coloring from element values #373

Open rquey opened 2 years ago

rquey commented 2 years ago

Is your feature request related to a problem? Please describe.

To color a mesh from element data (stress equivalent, etc.), the only possibility is to use -dataeltcol, which produces a uniform color inside elements, and therefore color "jumps" from one element to the next.

Describe the solution you'd like

It should be made possible to get smooth colors when the color is defined from element data, just as in the case where color is defined from node data (displacement, velocity, ...).

This is a relatively easy problem, for which we can determine the node values that produce the correct element values based on finite element interpolation to the element centroids. It first needs #372 to be resolved.