Jump to content

Gas microsolvers performance vs Sop solver


Juraj

Recommended Posts

Hi,

I was wondering which nodes to use when working in Dops. Some tasks can be done in Gas microsolvers and Sop solver as well. Which way is faster / more efficient? For example when I want to compute gradient of a field I can use volume analysis sop or gas analysis dop. Also when combining fields I can use gas linear combination or use gas field vop. Another example is advecting particles by vel field - it can be done by gas advect, or in sop solver.

 

Gas microsolvers are designed specifically for some operation - does it mean that they are faster?

 

Thanks,

Juraj

Edited by Juraj Tomori
Link to comment
Share on other sites

Microsolvers are faster.

Gas analysis is going to give you the data you want efficiently, so defo use those. If there's not a micro solver for what you want, try gasFieldVop, or a wrangle. Last resort is sop solver.

Of course it's up to you. I'll still use sop solvers quite a lot as it's easier to do some things even if it's less efficient, but they CAN be quite a lot slower as you scale up the quality. Depends on what you're doing.

So a gasAnalysis of the gradient will be much faster than a sop solver with a volumeAnalysis calculating the gradient inside.

I have no proof of this, but you could run the performance monitor and test it. Post your results.

Link to comment
Share on other sites

I've done simple setup: advecting particles by pyro sim, computing gradient of density field and trasferring gradient to particles, normalizing gradient attribute on particles.

 

Sop solver setup: Volumeanalysis (compute gradient), Attribfromvolume (transer gradient to particles), Attribvop (normalize)

 

Gas microsolvers setup: Gasmatchfield (create grad field by density), Gasanalysis (compute gradient), Gasfieldtoparticle (transfer to particles), Geometryvop (normalize)

 

Simulation length: 50 frames

Sop solver took 5.122 seconds

Gas microslovers took 3.992 seconds

 

Difference in simulation time is not big probably because of not many simulation frames and low resolution of volumes and low number of particles. But even now microsolvers setup is a little bit faster. If I cranked up all those settings difference would be greater. Also some microsolvers can run on gpu, so it would increase difference I guess.

 

Another thing crossed my mind: is it possible to modify fields in Sop solver? I can import fields into Sop solver using Dop Import but how can I export it back to Dop network?

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