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

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

Graph: Create Scene simulation folders (revised 17/10/2014)

This graph helps to order your sims in folders related to your name scene.

To use it , plug it in the SimulationPre folder in the Simulation Flow Panel.

It has a little problem in the updating cache process, so it is possible when you open the scene next time you will need to execute the graph clicking on the “Execute Graph” button before update the cache in order refresh the global variable with the name of the scene.

This graph is similar to the old  script IDOC Subversion script.

 

 

 

 

 

 

 

screenshot.45

 

 

 

 

 

 

 

 

 

 

 

 

 

screenshot.53

October 16, 2014 Posted by | Graph, Pipeline | , | Leave a comment

Graph: Adding Age Channel to Domain Particles

Domain particles in RealFlow does not contain any channel to allocate the age value, but this does not mean that you cannot  calculate it. This graph adds a new channel called “age”. It is very useful to do operations with particles like filtering and transferring, deleting or even changes particle properties as we will see in futures graphs. If you open the compress file from the link you will find two folders, the SimulationPre folder contains two graph files that have to be plugged into the SimulationPre folder, in the same order of their names. Inside the StepsPre folder there is another graph file that must be plugged to the StepsPre folder.
screenshot_age1

 

screenshot_age2                       screenshot_age3             screenshot_age4

October 15, 2014 Posted by | Graph, Tips | , | Leave a comment