RealFlow Wisdom

RealFlow blog: Tips, Technics and Scripting.

Mixing fluids by Graphs and RenderKit

This time I bring a new method to mix fluids with using Graphs in RealFlow.

Thanks to the help of Alex Ribao from Next Limit I would like to share this graph to mix two fluids using the temperature channel of the fluids. This idea is not mine I took it from Thomas Schlick https://rftoolfactory.wordpress.com/2015/01/21/fluid-blending/, but instead of using py script we use Graphs that is faster in calculations in some cases.

screenshot.101

Capture from Realflow2015 (beta)

This a pretty simple scene of two fluids, yo can set different properties, as viscosity, density, etc. Even using this method I think you could do it more complex and mix properties between fluids.

But firstly I would like to prevent you that exist some tricky things in this method that we have been aware. By default liquid emitters have not temperature channel so to create them we have to switch them to Gas  and we should set the temperature to 0 for one and to 1 for the other and switch again to Liquid, so we had the channels created.

Once done this we only need to load the Graph to the stepPre slot in the Simulation Graph.

screenshot.103

The graph is quite simple, the particles from both emitters are loaded and read positions and temperatures, then through creating a distance field the particles transfer the temperatures between them and these are updated. The mixed area can be controlled with the CellSize node, although you can add extra control in the rendering process too. For rendering, this time I used Arnold through RenderKit, now I am testing the workflow with Maxwell and will try in VRay too. This are the connections for Arnold.

screenshot.106

Advertisements

June 3, 2015 Posted by | Uncategorized | , , | Leave a comment

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 22,000 views in 2012. If each view were a film, this blog would power 5 Film Festivals

Click here to see the complete report.

December 31, 2012 Posted by | Uncategorized | Leave a comment

Script to set random color to all nodes.

I did this stupid script to set random colors to all nodes in the scene to avoid the sad default grey,  recommended for scenes with a lot of geometry objects.

September 2, 2011 Posted by | GUI, Scripting, Uncategorized | , | 6 Comments