Page 1 of 1

SPH splash, conversion to grid script needed?

Posted: Fri Aug 16, 2013 1:57 pm
by kimgar
just wondering if the script converting SPH particles to grid based particles is still the way to go if you want foam and splashes with a SPH sim?

Re: SPH splash, conversion to grid script needed?

Posted: Fri Aug 16, 2013 3:00 pm
by FlorianK
Go to Help > Demo Scenes > Graph > Hyflip_Splash

Press Ctrl + F2 to open the Graphs window. There are two Graphs, the first one is pretty straightforward, showing how to add particles from another source (here: Splash) to a domain. This system should also work for other particle sources than Splash.

Re: SPH splash, conversion to grid script needed?

Posted: Fri Aug 16, 2013 4:28 pm
by kimgar
excellent, thanks florian, i need to try this.
the script way also works fine, but the splash behaviour seems very different, also if i can skip the conversion step; that's a bonus!

Re: SPH splash, conversion to grid script needed?

Posted: Mon Aug 19, 2013 11:01 am
by kimgar
hmm, i've got some trouble finding the right node to pick up particles from a a standard emitter.
i changed the original 'getHybridoSplash' to a 'getStandardEmitter' node, but RF outputs :

WARNING: [getStandardEmitter] Node 'Circle01' is not of expected class

any tips on what is the correct node to use?

Re: SPH splash, conversion to grid script needed?

Posted: Mon Aug 19, 2013 12:49 pm
by tsn
kimgar wrote:any tips on what is the correct node to use?
RealFlow's Python class for standard particle emitters is get_PB_Emitter(string). If you want to get all SPH emitters then you can use get_PB_Emitters().

Re: SPH splash, conversion to grid script needed?

Posted: Mon Aug 19, 2013 1:02 pm
by kimgar
yes, i've used that in the batch script, but this time i am trying to tweak the hyflip_splash example.
i can't seem to find a get_PB_Emitter node in the simulation flow graph?

Re: SPH splash, conversion to grid script needed?

Posted: Mon Aug 19, 2013 1:11 pm
by kimgar
nevermind, a restart fixed it, getStandardEmitter works now :)

Re: SPH splash, conversion to grid script needed?

Posted: Mon Aug 19, 2013 1:28 pm
by tsn
Ah, I see. Thought you're talking about Python nor graphs. Anyway, good to read that it's working now.

Re: SPH splash, conversion to grid script needed?

Posted: Mon Aug 19, 2013 3:18 pm
by kimgar
the graph version is hard to control but gives great splashes.
the batch script is easy to control, but doesn't give any splashes. hmm.

scratch that, i just forgot to align the splash box