Turbulence particle system with opposite inflows

93 views
Skip to first unread message

Torstein Sørnes

unread,
Apr 26, 2017, 3:52:02 AM4/26/17
to mantaflow Forum
I'm attempting to model inflows at opposite ends of a room. 
It seems to me that doing both 
turb.synthesize(flags, octaves, k, switchLength, scale, velInflowL)
turb.synthesize(flags, octaves, k, switchLength, scale, velInflowR) 
if velInflowL and velInflowR are in opposite directions may not be a good idea. 

Is the best solution to have two different particle systems? 
If so, is it possible to view both systems (in GUI) at once?

Also, is it possible to hide (all) particle systems so that the particles doesn't hide the velocity field?

Thank you 

tsoer

unread,
Apr 26, 2017, 9:03:14 AM4/26/17
to mantaflow Forum
If found out that it's possible to hide all part. systems by just creating an empty one and viewing it using Alt+B. 

Still unsure how to add opposite inflow bias.

Nils Thuerey

unread,
Apr 26, 2017, 10:28:59 AM4/26/17
to mantaflow Forum
Hi, yes - a second, empty particle system is a good idea. Alternatively, cycling through the pdata-fields with 'b' should say "off" at some point, and not show any particles...

The mantaflow UI always shows the first instance of each object btw.. So the first mesh, the first scalar grid, etc. in your scene file will show up. If you create a dummy object first, you can effectively turn the display off.

For inflows I'd recommend setting "inflow" flags and velocity on the border with a shape object (shape.applyToGrid). For a single phase flow, those have to be divergence free, though. So two inflows on either side will just be cancelled out in the pressure solve...

Cheers,
-> Nils
Reply all
Reply to author
Forward
0 new messages