How should i go about emitting density into a fluid container with velocity. Ideally i want emission speed and direction as well as density/sec. will i have to use an expression to setAttr the velocity? if so is there a simple way to to this in the region of my emitter?
tom
Think of it like emitting dye or milk into a tank of water. The emitters add density but do not affect velocity directly. The simulation is an incompressible fluid like water and what you are adding is colored markers of the flow. This is quite different from the particle simulation which is like throwing sand into air. You can add a directional force with a spherical volume bound at the emitter location, but it is like putting a propeller in the water tank... the flow will swirl around, but not necessarily go in a particular direction. Another thing you can do is paint the flow(velocity) into the grid directly. If the velocity is a static rather than dynamic grid then the flow path you painted will persist over time.
Duncan
thanks duncan, thats pretty much as i understood it. Now ive got my system set up based on one of thewind tunnelexamples i.e an expression with a setFluidAttr command to insert velocity and density where i want it.
The problem now is that i dont seem to be able to cache the results of my simulation.. (no errors are reported..)
I can create a cache in a fluid that uses an emitter, but i can`t cache the wind tunnel example scenes..
I just tried a test.. no problems caching any of the wind tunnel scenes. Make sure you have the right grids to cache enabled in the option box( i.e. the grids that contribute to rendering ). Note that the pressure values do not cache, so the windTunnelPressure preset will not show changing color after caching( one could show speed instead, if color was driven by that and the velocity grid was cached ).
Duncan
ah ha.. i didn`t check the grids cache options (read density/velocity etc) should have been the first thing i checked. doh.
caches working fine
cheers duncan