2024 Help

First go with Flow

Container

Download icon tank.7z

Here's a receptacle to use for this experiment. You can replace it with your own object, if you prefer. Make sure the object you use is centred (F2) and a closed object - no un-merged polys or 1- or 2-pt polygons.

Once loaded, go to the FX Tools tab and select LW Flow at the bottom of this menu.

Flow_1stGo-1.png

Choose Add item from the dropdown menu at the top left of the Flow panel. On the Physics tab, select **Kinematic ** from the Body type menu. Your tank should go orange.

Flow_1stGo-2.png

Last thing, change the Default Presets to Watery.

Emitter

Add a null and call it Emitter (or Splash, Spray, Hose - you could even leave it as Null). Lift it up a bit and move nearer one end of the tank. In the Flow panel, use the Add item dropdown and add the null. Still in the Physics tab, change the Body type to Emitter. Your null should have a foghorn shape attached.

Flow_1stGo-3.png

Rotate your emitter so that it's facing in a good direction for spraying into the tank.

Flow_1stGo-4.png

Testing the spray

First, save your scene so far. Now, before we do anything, let's surface our liquid.

Surfacing

It's best to define your liquid's surface before simulating, otherwise you might up with a surface per frame. I just want a watery liquid, so I've left the Colour alone; turned the Roughness down to 5 %; Transparency to 95 % and the Transmittance colour to blue. I've left the other things as default. Now, back to your regularly scheduled programme - Testing the spray.

Testing the spray 2

The next thing to do is hit the Run button. You should be in Preview mode. This will run through your simulation. It will not stop at the scene end you have defined (120 frames by default), but just keep going. You should see a splash from your null, but nothing else.

Flow_1stGo-5.png

To get more liquid, you need to up the Count at the lower left of the Flow window. Here, we've made our count 100,000.

Flow_1stGo-6.png

You can add further zeroes, but you will receive this warning:

Flow_1stGo-7.png

If you get this warning, got to the Preferences tab and increase the Max particle count.

Flow_1stGo-8.png

Problems?

You might have parts of your liquid escaping the tanks. Like so:

Flow_1stGo-9.png

There are several solutions, but the easiest for your first go is to visit the Simulation tab in the Flow panel. Increase the Collision distance variable a bit. You shouldn't increase it too much or your liquid will float over your tank, a bit like water on a hydrophobic surface.

Flow_1stGo-10.png

Baking

You have been playing in Preview mode, now's the time to finalise our simulation. At the top of the Flow window, switch the mode to Bake. In the Preferences tab, make sure there's a directory set for the Fluid output folder. When you hit Run, you will receive the following warning:

Flow_1stGo-11.png

Hit Continue to start your baked simulation. It will take a lot longer than Preview mode, but once you have baked you will be able to use the usual Layout transport controls to play your scene back.

Conclusion

We have barely scratched the surface of Flow's capabilities here. There will be a second tutorial coming soon with more in-depth control explanations.

Flow_1stGo-12.png
Last modified: 23 October 2024