sucking gas into a point in the sim, messing with divergence

   7679   2   1
User Avatar
Member
237 posts
Joined: July 2005
Offline
the question…..

Hey Girls ans Guys..

I am making a gas sim that sucks dust into a vortex and down a magical
hole. I have made a volume of vectors in sops that behaves its self
and sucks particles into the hole in an elegant way. When i use a gas
field vop that samples the sop vector field and adds it to the the
velocity it looks cool, the dust/ smoke just swerls around the centre
without crunching in as i need it to. I believe the divergence is
keeping the gas from compressing or even exiting the sim.

If the answer is to change divergence, I have not tyred to mess with
divergence yet so i would appreciate pointers on how to tackle that.
any ideas would be appreciateed.

the answer ….

I've been doing some of this recently. You are correct about compression.
Houdini won't let its density fields become compressed. Use Negative
Divergence to counter act this. Basically, create a ball of negative value
where you want the smoke to suck into and name it divergence. You can play
with the value of the ball to create faster and slower speeds.


Add a scalar feild called divergence, there already is one
call it extraDiv or something, now extraDiv exists and in the gasfieldvop i import divergence and add extraDiv to divergence, then export the new divergence.

and the File

Here is a file I made with a Little advice from Jacob Clark of gas being sucked with divergence.

Attachments:
sucking_gas_v01_rk.hip (654.9 KB)

Robert Kelly
User Avatar
Member
8551 posts
Joined: July 2007
Offline
there is actually shelf tool for that
it's called Expand from Objects
it will create Source Volume DOP which modifies divergence, the default is for expansion, but if you set Scale Source Volume to negative values it will compress
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
237 posts
Joined: July 2005
Offline
Isnt that always the way solve the problem then find out that there is already a tool for it.
Robert Kelly
  • Quick Links