13.07.2015 Views

Controlling Fluid Simulations with Custom Fields in Houdini Master ...

Controlling Fluid Simulations with Custom Fields in Houdini Master ...

Controlling Fluid Simulations with Custom Fields in Houdini Master ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 18: The node tree for the dierent steps for the advect by curve simulationas described <strong>in</strong> (5.3.2).1. Dene a few custom sop vector elds to hold to custom dened volumesfrom sops, such as the density source (the little sphere), the custom densityof the curve, the tangent velocity and the gradient velocity (which will becalculated at a later step).2. Calculate noise by den<strong>in</strong>g new custom elds <strong>with</strong> the Gas Match Fieldmicrosolver, a scalar noise_eld and a vector noise_vel eld and denethe noise <strong>in</strong> the noise_eld <strong>in</strong>side of a Gas Field Vop us<strong>in</strong>g an Anti-Aliased Flow Noise vop. By us<strong>in</strong>g a Gas Analysis microsolver we cancalculate the gradient of the noise_eld and store it <strong>in</strong> the noise_vel.3. Calculate the gradient of the blurred density of the curve. Create a newtemporary eld to store the blurred_custom_density us<strong>in</strong>g a Gas MatchField, match<strong>in</strong>g the custom density eld of the curve. Copy the custom_density<strong>in</strong>to the blur_custom_density us<strong>in</strong>g a Gas Calculate. Blurthe blur_custom_density eld us<strong>in</strong>g a Gas Blur. Calculate the gradientof the blur_custom_density and store the result <strong>in</strong> the gradient_velocity.F<strong>in</strong>ally normalize the gradient_vel us<strong>in</strong>g a Gas Analysis. The resultantforce will appear to be always po<strong>in</strong>t<strong>in</strong>g towards the helix shape.4. Add the forces to density. By us<strong>in</strong>g Gas Calculate nodes, the variouscustom velocity elds can be premultiplied by higher values for a morepowerful eect and added to the velocity eld.The simulation can get unstable when too much force is added, so it can beuseful to add a low velocity damp on the pyrosolver, or even turn on speedlimits.A few stages of the simulation can be seen <strong>in</strong> Figure (19).28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!