evanrudefx Posted May 11, 2018 Share Posted May 11, 2018 Hey, I have been struggling to get a nice swirling motion in slower moving pyro smoke simulations. In Maya fluids I had an option called swirl witch worked beautifully. I found an old post addressing this issue, but it seems to have died before arriving at a good solution: http://forums.odforce.net/topic/23132-smoke-swirl-vorticity-with-smoke-solver/ Here is a simulation I did in Maya using the swirl attribute. https://youtu.be/Ifd6FJ2oHIc In houdini I have been using disturbance but I don't seem to get the results I want. Disturbance doesn't really seem to add swirl but more turbulent detail. For example, look at this sim I found on vimeo. You can see the disturbance start overpower the simulation towards the end, it doesn't really add a swirling motion. https://vimeo.com/220668349 What is a good Idea to get nice swirls? Thanks 2 Quote Link to comment Share on other sites More sharing options...
Martin47 Posted May 11, 2018 Share Posted May 11, 2018 Look at the "Confinement" parameter in the Shape tab of the Pyro solver, is based on the Gas Vortex Confinement dop. is a starting point. in other hand, you can create some vorticles forces advecting particles. look at this thread plenty of pyro info and some examples i guess 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted May 11, 2018 Author Share Posted May 11, 2018 I tried messing around with that setting, but it did not seem to do too much. Ill try it again tho. Quote Link to comment Share on other sites More sharing options...
bunker Posted May 13, 2018 Share Posted May 13, 2018 you can also use the gasvortexboost DOP 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted May 16, 2018 Author Share Posted May 16, 2018 the patterns caused by all these nodes seem to be turbulence patterns not circular swirl motion Quote Link to comment Share on other sites More sharing options...
Martin47 Posted May 16, 2018 Share Posted May 16, 2018 (edited) Take a look at this file. SeedVorticles.hipnc as i mention before, you can inject some particles that will be use as a vortex seed (Vorticles = Vortex-Particles). The process will be: Create a source to apply the vortex forces Apply Forces Update the Velocity field Advect the vorticles to move accordingly to velocity field So houdini comes with a Microsolver called "Gas vorticle Geometry", this MS create a bunch of points on a fixed volume that match your fluid object, each with a magnitude and radius, Then "Gas vorticles forces" applies a Paddlewheel-like force to each point and updates the velocity field based on a Confinement Strength. Finally in the advection step "Gas advect" MS, moves the points according to the velocity field to track the fluid movement and preserve the position of each vortex. btw there is a shelf tool under "Container Tools" tab called Seed vorticles that make all setup for you. ( i never seen that before ) its not the best explanation but i hope you find it usefull. Cheers! Edited May 16, 2018 by Martin47 wrong file 1 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted May 16, 2018 Author Share Posted May 16, 2018 1 hour ago, Martin47 said: Take a look at this file. SeedVorticles.hipnc as i mention before, you can inject some particles that will be use as a vortex seed (Vorticles = Vortex-Particles). The process will be: Create a source to apply the vortex forces Apply Forces Update the Velocity field Advect the vorticles to move accordingly to velocity field So houdini comes with a Microsolver called "Gas vorticle Geometry", this MS create a bunch of points on a fixed volume that match your fluid object, each with a magnitude and radius, Then "Gas vorticles forces" applies a Paddlewheel-like force to each point and updates the velocity field based on a Confinement Strength. Finally in the advection step "Gas advect" MS, moves the points according to the velocity field to track the fluid movement and preserve the position of each vortex. btw there is a shelf tool under "Container Tools" tab called Seed vorticles that make all setup for you. ( i never seen that before ) its not the best explanation but i hope you find it usefull. Cheers! MVP : ) thanks 1 Quote Link to comment Share on other sites More sharing options...
sebkaine Posted May 17, 2018 Share Posted May 17, 2018 (edited) I don't think that you will have the exact same thing as Maya Fluid swirl parameter , by default. If i remember correctly from my maya days , swirl just - take the velocity grid - analyse it to isolate area of high curl - multiply velocity vector of the grid by the input set in swirl in the isolated area. In houdini we do add swirl with all method mention above, aka confinment microsolver and vorticles but i think you will not be able to replicate the exact same thing as swirl. I have set a dumb scene with all methods and you are right it does add at some point curl noise to the vel grid. it is not just a dumb multiplicator. You could try to play with all methods, i find vorticles to slow down sims a little bit. I agree with bunker from what i have see the closest thing to maya swirl would be to start from vortex boost confinment. But a simplify version of it where you just compute curl with gaz analysis isolate the area you want and then use this as a mask to multiply your initial grid would be sufficient to replicate maya swirl. Cheers E confinment_test.hiplc Edited May 17, 2018 by sebkaine 1 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted May 17, 2018 Author Share Posted May 17, 2018 All good answers- The vorticles seem to be closest to for me, but motion-wise Ill have to mess around to get something as nice as the swirl attribute. Quote Link to comment Share on other sites More sharing options...
sebkaine Posted May 17, 2018 Share Posted May 17, 2018 (edited) i reopen maya and check inside houdini microsolver. if you look inside gaz vortex confinement solver you see that the logic is extremelly close to what i describe for maya. i think i would start from that instead of vortex boost if i was trying to replicate it. confinment in houdini is close to what you get in maya with high details solved on and a decent rez, you get those extra swirl. but replicate the maya swirl behavior when high density grid is off would need some custom work. i find that confinement when you use high rez introduce a lot of parasite motion. one way is to use the exact same logic but as a post process to displace your sim. basically you compute the confinement but you don't add it to the velocity in the grid, you use it to advect your density along the confinment vector, like a sort of displacement. this logic of advecting extra detail is also there when you use uprez node on the shelf, but it is a 2 step process. i recommand to watch those 2 videos to better understand pyro, they are great https://vimeo.com/42988999 https://vimeo.com/119694897 Edited May 17, 2018 by sebkaine 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted July 11, 2018 Author Share Posted July 11, 2018 does seed vorticles work with resizing containers? I tried adding the vorticle field to the extra fields to resize in gas resize fluid dynamic node and it didnt work. Do i just need to make the container initially big enough? Quote Link to comment Share on other sites More sharing options...
Popular Post Pazuzu Posted July 12, 2018 Popular Post Share Posted July 12, 2018 (edited) I'm working on something related to art direct the swirly motion of gases; Its an implementation of a custom buoyancy model that let you art direct very easily the general swirly motion of gases without using masks, vorticles, temperature sourcing to have more swirly motion in specific zones, etc. Also it gets rid of the "Mushroom effect" for free with a basic turbulence setup. Here are some example previews. Some with normal motion, others with extreme parameters values to stress the pipeline. For the details is just a simple turbulence + a bit of disturbance in the vel field, nothing complex, because of this the sims are very fast (for constant sources: average voxel count 1.8 billions, vxl size 0.015, sim time 1h:40min (160 frames), for burst sources, vxl size 0.015, sim time 0h:28min). I'm working on a vimeo video to explain more this new buoyancy model that I'm working on. I hope you like it! Cheers, Alejandro constantSource_v004.mp4 constantSource_v002.mp4 burstSource_v004.mp4 constantSource_v001.mp4 burstSource_v002.mp4 burstSource_v003.mp4 burstSource_v001.mp4 constantSource_v003.mp4 Edited July 13, 2018 by Pazuzu 7 4 Quote Link to comment Share on other sites More sharing options...
Martin47 Posted July 12, 2018 Share Posted July 12, 2018 18 hours ago, Pazuzu said: I'm working on a vimeo video to explain more this new buoyancy model that I'm working on. you rock, man!. Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted July 12, 2018 Author Share Posted July 12, 2018 Thanks, I am still struggling so I will check this out!! Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted July 20, 2018 Author Share Posted July 20, 2018 I dont understand how you get such nice movement with pyro using disturbance or turbulence. I have tried all the micro solvers and they produce weird results too. Obviously I exaggerated the motion,but you can see none of them really seem to create a swirling motion like maya fluids. First photo is the patter disturbance creates, the second is turbulence and third is gas vortex equalizer. It seems easy (sometimes) to tell what software was used to create a simulation based off its look. Maya fluids has its look, fume has its look and now I notice pyros look. Look at all these sims, they don't have swirling motion like maya fluids, they have turbulent patterns instead. Either that or really small swirl from gas confinement. take a look at this album, you can tell what I am talking about by the pattern seen in these simulations. https://vimeo.com/album/5305665 It seems really hard to get motion like this: https://vimeo.com/141476011 only using disturbance any turbulance. Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted July 20, 2018 Author Share Posted July 20, 2018 so I am slowly solving this : ) part of my trouble is I was using a gas wind. Using a fan force affecting only part of the velocity allows for better swirls. I still wish there was a better way to control swirl tho Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted July 20, 2018 Author Share Posted July 20, 2018 I guess I'll keep updating my progress, here is where i am at now: I still have that pattern tho : ( https://drive.google.com/file/d/15Ow6igaLXkfRdotvpJkyNBvLtNO4qc29/view?usp=sharing 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted August 1, 2018 Author Share Posted August 1, 2018 (edited) still working on a good solution, but here is something else that I tried that works a bit better. I added gas vortex confinement,but kept the values low (around 1 - 2). I plugged that into a gas repeat solver. That seems to work much better than using confinement and turning up the scale. Also added more sub steps on the dopnet. That seems to just create a lot of small swirl. This isn't perfect buts its getting away from disturbance patterns https://drive.google.com/file/d/1UNp13Arv7sv7XiWhF82A5OTH_CWhTME1/view?usp=sharing Edited August 1, 2018 by ejr32123 2 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted August 1, 2018 Author Share Posted August 1, 2018 one more : ) gas match field and analysis to create scalar field getting length of velocity. Use that as control field for disturbance and turbulence. that + what I did above gives this: https://drive.google.com/open?id=13dfeWw2tefsNJ-NSSWJo9w3M9wQHsUEZ 5 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted February 6, 2019 Author Share Posted February 6, 2019 For anyone that is interested: here is a tutorial on the best method I found to get nice motion. I figured I would post this since I still get messaged about this thread. https://youtu.be/DLSmz9HOKlE 7 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.