Assign colors to temperatures

Post processing utility for Elmer
Post Reply
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Assign colors to temperatures

Post by mzenker »

Hi,

I want to visualize a temperature distribution in ElmerPost, in a way that
* areas below 99 °C
* areas between 99 and 101 °C
* areas above 101 °C
can be clearly distinguished. For example, I would imagine that the color red is reserved for the range between 99 and 101 °C. I have seen that I can edit the colormap, but I do not understand how I can assign a colormap range to a temperature range.

Thank you for a helpful hint,

Matthias
Juha
Site Admin
Posts: 357
Joined: 21 Aug 2009, 15:11

Re: Assign colors to temperatures

Post by Juha »

Hi,

well there is a direct scaling of the variable values to colormap indices

index = (entries-1)*max(min((f-fmin)/(fmax-fmin),1),0)+1

(or something like that). The fmax & fmin values you can change form the
"Color Scale" panel (hit the "Keep" button first, then change values), by
default these are computed from the dataset.

BR, Juha
Post Reply