Fluids

Fluids

I made a repository for color maps for CFD Post and Fluent!

    • JamesWright
      Subscriber

      tl;dr:


      Rainbow colormaps are bad. I created two GitHub Repositories for better color map choices, courtesy of Kenneth Moreland. They are fluent_colormaps and cfdpost_colormaps for Fluent and CFD Post, respectively.

      If any ANSYS reps see this, it'd be super nice if these could be officially implemented into new ANSYS versions!

      If you have any questions or comments, please let me know!


      Why not just use Rainbow like everyone else?


      Generally, Rainbow is used as the color map for visualization, even though it has been proved to be quite poor for data visualization on a number of different levels. Information on this can be seen on Kenneth Moreland's website


      Here's an example of a SBES (hybird RANS-LES) simulation result at a single time step. The domain is axisymmetric with flow going right to left:



      It can easily be seen that the brighter blue is drowning out the smaller scale turbulence. The use of a better color map can improve this dramatically:



      There are dozens of other color map choices that are an improvement on the standard rainbow. I've compiled a imgur album of examples so that you can easily see the different options.


       

    • Rob
      Ansys Employee

      Nice images. You do know that you can change the colour map in Fluent? 

    • JamesWright
      Subscriber

      Yes, but it's fairly tedious to do it manually. The GitHub repo has a function that can load and unload color maps without having to type it out one color space at a time.

    • Rob
      Ansys Employee

      Not really, you just change the scale setting. I'll flag the thread to DEV as it's a good idea. 

    • JamesWright
      Subscriber

      To be clear, I'm talking about the process of entering in new values to make a custom color map. Changing the color scale to one that's already in the system is quite simple. But a custom one would require that you enter in each 3 number color point on the scale one-by-one.

    • Keyur Kanade
      Ansys Employee

      I think this is available in ANSYS EnSight. But unfortunately EnSight is not available in student version. 

    • JamesWright
      Subscriber

      I think this is available in ANSYS EnSight



      Think what is available in EnSight? I'm running an research academic license, so I might have access to EnSight.

    • DrAmine
      Ansys Employee

      Nice post!

    • Karthik R
      Administrator

      Hello,


      This is nice suggestion.


      Regarding Keyur's comment on ANSYS EnSight and about available color maps, please have a look at the following post. It explains how to get to changing the color palette on EnSight. Please note that ANSYS EnSight is not available for the student version.


      https://forum.ansys.com/forums/topic/ensight-hot-iron-palette-from-an-image/


      Thanks again for your inputs.


      Best Regards,


      Karthik

    • Rob
      Ansys Employee

      You can also use a journal to create the scales: not necessarily trivial but I don't know how much effort you put into the other images.  


      As an aside, the feature is on the "to consider" list for Fluent next year: thanks for the suggestion. 

    • JamesWright
      Subscriber

      Once I found the script for adding the colormaps, I simply made a quick Python script to turn the csv's on Kenneth Moreland's website into the correct file format, so it didn't take very long. Also makes it much easier to add new colormaps in the future if they come about.


       


      That's great to hear! I'd love to keep up with the ideas progress if that's possible!

    • Rob
      Ansys Employee

      As a user the only way will be to read the release notes: they're about the first entry in the list in the documentation.  Unless we're testing internally we may only find out about a feature a few weeks before release during out update training. 


      Alternatively, keep watching the careers page, apply & get through the process and maybe get access to the pre-release software! 

    • JamesWright
      Subscriber

      Alternatively, keep watching the careers page, apply & get through the process and maybe get access to the pre-release software!



      I'll keep that in mind! It'll be a few years before I finish up with school (doctorate), but I'll definitely be looking here when the times comes.

Viewing 12 reply threads
  • You must be logged in to reply to this topic.