SPH splash, conversion to grid script needed?

Post Reply
kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

SPH splash, conversion to grid script needed?

Post by kimgar » Fri Aug 16, 2013 1:57 pm

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?

User avatar
FlorianK
Posts: 238
Joined: Fri Jun 11, 2010 9:56 am
Location: Cologne, Germany

Re: SPH splash, conversion to grid script needed?

Post by FlorianK » Fri Aug 16, 2013 3:00 pm

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.

kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Re: SPH splash, conversion to grid script needed?

Post by kimgar » Fri Aug 16, 2013 4:28 pm

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!

kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Re: SPH splash, conversion to grid script needed?

Post by kimgar » Mon Aug 19, 2013 11:01 am

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?

User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Re: SPH splash, conversion to grid script needed?

Post by tsn » Mon Aug 19, 2013 12:49 pm

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().
Thomas Schlick | Next Limit Technologies

kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Re: SPH splash, conversion to grid script needed?

Post by kimgar » Mon Aug 19, 2013 1:02 pm

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?

kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Re: SPH splash, conversion to grid script needed?

Post by kimgar » Mon Aug 19, 2013 1:11 pm

nevermind, a restart fixed it, getStandardEmitter works now :)

User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Re: SPH splash, conversion to grid script needed?

Post by tsn » Mon Aug 19, 2013 1:28 pm

Ah, I see. Thought you're talking about Python nor graphs. Anyway, good to read that it's working now.
Thomas Schlick | Next Limit Technologies

kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Re: SPH splash, conversion to grid script needed?

Post by kimgar » Mon Aug 19, 2013 3:18 pm

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

Post Reply