Jump to content

Accessing the pressure scalar field in Pyro


Mozzarino

Recommended Posts

You can try putting "pressure" as the control field for your turbulence. Then you can work with the ramp so you can control where it will be working (high pressure or low pressure areas). Visualize it so you'll have a better visual feedback to understans what's happening.

Cheers!

  • Like 2
Link to comment
Share on other sites

@merlino once again, thanks for the valuable info!

I'll share a more advanced setup I managed to create by diving a bit deeper:

In SOP level I assigned float values to points and created a vdb from points with said "mult" volume primitive. Then I used the sopscalarfield node to read those values and in the gasfieldwrangle I multiplied my "press" scalar field (created by copying the values of the pressure field) with the "mult" scalar field values. 

This way, I can use "press" field as a control field for any gas force such as disturbance... And the "mult" field serves as a mask for the "press" field.

Watchout for the "Default Operation" default value, as it is "Set Initial" and, in case you have an animated volume you may want to swap to "Set Always". Otherwise it won't update the field.

 

Dop_Scalar_Fields.JPG

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...