Jump to content

rest2 in pyrosolver - what is it used for?


pclaes

Recommended Posts

I'm looking into the pyrosolver and working my way through the different sections, learning and trying to understand what is going on. I'm following some other papers on fluids and solvers as well to better understand the parallel between the microsolvers and the equations.

I don't fully understand how the rest2 field works in relation to the rest.

From the help file it states:

Dual Rest Fields: Creates a rest2 field that is reset in a leapfrog fashion with the main rest field, allowing one to run long sims without popping.

I see how the Gas Intermittent Solve can reset the rest fields every n frames, but where does the interpolation between the two rest fields take place - if there is interpolation at all. Or is this at shader level :blink: ?

Link to comment
Share on other sites

I see how the Gas Intermittent Solve can reset the rest fields every n frames, but where does the interpolation between the two rest fields take place - if there is interpolation at all. Or is this at shader level :blink: ?

It's created for (and used by) the shader as a way to avoid the distortions that normally occur to any texture whose parameterization is based on the rest attribute (because the rest attribute distorts along with the rest of the fluid). The initialization of both fields (rest and rest2) is staggered in time and the shader continually interpolates between them.

See this thread for a little more information.

Link to comment
Share on other sites

Ahh, now I see! Thanks a lot. That info should become part of the docs - either on the shader or the pyrosolver. Or we could add it to the wiki too. Really clear explanation you did in that other thread.

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...