| View previous topic :: View next topic |
| Author |
Message |
mzigaib Houdini Expert
Joined: 02 Apr 2008 Posts: 356 Location: Sâo Paulo

|
Posted: Thu Mar 15, 2012 3:06 pm GMT Post subject: Elastic effect on flip fluids on H12 |
|
|
In H11 I had a option to make my fluid leastic on H12 this is gone is there a way to achieve this effect on H12?
_________________ http://www.vimeo.com/17790588 |
|
| Back to top |
|
 |
jason_iversen Houdini Guru

Joined: 02 Sep 2002 Posts: 5283 Location: r+h, los angeles

|
Posted: Thu Mar 15, 2012 3:34 pm GMT Post subject: |
|
|
Amazingly enough we are just needing to do this myself and you may notice the viscoelastic stuff is still only working for SPH fluids - there is no way to wire up the Gas Elasticity DOP and have it work. Even though it's named "Gas", it operates on SPH particles and not fields.
Currently I am trying to get some results with a small amount of viscosity and some surface tension (wire in a Gas Surface Tension into the FLIP Solver). This might work for some parts of some shots, but some elastic behaviour would be very much appreciated.
_________________ jason iversen, fx supervisor @ r+h, http://www.odforce.net
https://plus.google.com/103473736257525043693 |
|
| Back to top |
|
 |
mzigaib Houdini Expert
Joined: 02 Apr 2008 Posts: 356 Location: Sâo Paulo

|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Thu Mar 15, 2012 10:01 pm GMT Post subject: |
|
|
+1 Love this about sph, and would love it for Flip.
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
jlait Developer

Joined: 03 Jul 2002 Posts: 1302 Location: Toronto

|
Posted: Fri Mar 16, 2012 8:34 am GMT Post subject: |
|
|
The problem with the SPH elasticity is that it was some stiff forces that required a higher order integrator to be stable.
It is possible with a lot of node surgery to get them to work with FLIP - Nick had them working here with the old FLIP Solver. You have to open up the FLIP solver and wire into the gas integrator a force-update version of the elastic forces.
I think the right way for viscoelastic for FLIP is with the Gas Strain Force & Gas Strain Integrate style approach, as per "A Method for Animating Viscoelastic Fluids". You'll have to move the strains between particles and fields in a sensible way.
We've not had a chance to experiment ourselves with this to see how it shakes out, however. But in theory all the nodes are there.
|
|
| Back to top |
|
 |
josh3light Socialite
Joined: 20 Feb 2008 Posts: 88 Location: New York

|
Posted: Fri Mar 16, 2012 8:52 am GMT Post subject: |
|
|
I have recently attempted to use the gas strain force and gas strain integrate also, however I couldn't get any understandable results out of it.
If you guys have any example file, at all, of any way to use it, it would be a great place to start experimenting from.
|
|
| Back to top |
|
 |
mzigaib Houdini Expert
Joined: 02 Apr 2008 Posts: 356 Location: Sâo Paulo

|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Tue Mar 20, 2012 4:08 pm GMT Post subject: |
|
|
File attached with it working. Didn't have to do too much... had to increase substeps on the flip solver to get it to be a bit more stable... pretty neat stuff!
| Description: |
|
 Download |
| Filename: |
H12_Flip_Elastic.hip |
| Filesize: |
1.06 MB |
| Downloaded: |
858 Time(s) |
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
mzigaib Houdini Expert
Joined: 02 Apr 2008 Posts: 356 Location: Sâo Paulo

|
|
| Back to top |
|
 |
alejandro Houdini Expert

Joined: 01 Jun 2006 Posts: 385 Location: Bogota

|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Tue Mar 20, 2012 10:46 pm GMT Post subject: |
|
|
No Prob. Thanks to jeff for pointing me in the right direction (hope that's how it should actually be set up). I think mixed with the new viscosity we should be able to create some really nice stuff.
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
asnowcappedromance Houdini Expert
Joined: 15 Jul 2009 Posts: 489 Location: Vancouver

|
Posted: Wed Mar 21, 2012 1:30 am GMT Post subject: |
|
|
good work Ian!
Now the only thing missing is to be able to create plasticity with fluids?!
I had no luck achieving this, at some point cranking up the viscosity/density settings doesn't really harden the fluid anymore. So is this somehow possible in H12?
_________________ http://vimeo.com/user2522760
Manuel Tausch
Senior FX TD - Rhythm & Hues Vancouver |
|
| Back to top |
|
 |
jlait Developer

Joined: 03 Jul 2002 Posts: 1302 Location: Toronto

|
Posted: Wed Mar 21, 2012 9:08 am GMT Post subject: |
|
|
That setup looks good for strain. The only big thing missing is the strain isn't being rotated by the velocity field. So if you have a blob that is stretched in X, then rotated 90 degrees, it will still try to restore along the X axis. Gas Velocity Stretch is supposed to fix this, but it is a pretty subtle thing.
It's also a bit not-FLIP like because you are keeping a field from frame to frame. A proper FLIP approach would be to store the strain attribute on the particles and rebuild it from there. This gets a bit tricky, however. But with proper extrapolation you could probably avoid the damping you are currently getting. Without any viscosity, the fluid should keep jiggling forever, while as you see it quickly settles in your example.
As for things not properly seizing up with large viscosities... Have you tried increasing the particle radius scale on the flip object? The default 1.2 is good for splashy sims, but results in lots of underresolved ballistic particles. These particles also have effective zero viscosity. So if you are seeing drips off the edges of your model, try setting the particle radius scale to 2.0. This ensures all particles are resolved (but introduces viscosity) so they should stay together better.
|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Wed Mar 21, 2012 9:41 am GMT Post subject: |
|
|
Thanks for the tips, Jeff! I'll play with it some more and see what I come up with.
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
johner Houdini Expert
Joined: 11 Jul 2006 Posts: 303 Location: Austin, TX

|
Posted: Wed Mar 21, 2012 2:22 pm GMT Post subject: |
|
|
Nice work figuring the strain stuff out, Ian. I think you might still be missing advection of the strain matrix, and as Jeff points out, that's tricky with FLIP since ideally the particles represent the entire state of the simulation at any given time.
I put together a little FLIP elasticity asset that uses the Strain DOPs and FLIP/PIC for advecting the strain matrix, storing the strain in attributes on the particles. The substepping requirement for the explicit GasStrainIntegrate DOP makes it pretty expensive, as does GasParticleToField on a matrix attribute, but it might be useful in some contexts. Also, in my tests it seems like adding a small amount of viscosity helps damp / stabilize the elasticity force.
There may be a bug in Gas Velocity Stretch's handling of matrices, so at the moment I've got that DOP bypassed within the OTL (and offhand I'm not sure the rotation works with a FLIP-style update anyway).
| Description: |
|
 Download |
| Filename: |
flipelasticity.otl |
| Filesize: |
11.38 KB |
| Downloaded: |
784 Time(s) |
| Description: |
|
 Download |
| Filename: |
viscoelastic.hip |
| Filesize: |
1007.29 KB |
| Downloaded: |
799 Time(s) |
| Description: |
|
 Download |
| Filename: |
viscoelastic_teapot.mp4 |
| Filesize: |
669.06 KB |
| Downloaded: |
1017 Time(s) |
Last edited by johner on Thu Mar 22, 2012 1:07 pm GMT; edited 1 time in total |
|
| Back to top |
|
 |
alejandro Houdini Expert

Joined: 01 Jun 2006 Posts: 385 Location: Bogota

|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Wed Mar 21, 2012 5:41 pm GMT Post subject: |
|
|
Awesome. Thanks Johner! Makes my life easier. I just got to the point where it was 'working' and was like, COOL. Having it track with the particles makes sense... was going to look into that later, but now I don't have to.
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
mzigaib Houdini Expert
Joined: 02 Apr 2008 Posts: 356 Location: Sâo Paulo

|
|
| Back to top |
|
 |
johner Houdini Expert
Joined: 11 Jul 2006 Posts: 303 Location: Austin, TX

|
Posted: Wed Mar 21, 2012 6:54 pm GMT Post subject: |
|
|
I should have mentioned, if you're wondering what those obscure Alpha and Gamma parameters represent on the GasStrainIntegrate DOP, they're from this paper (which is actually somewhat readable as these things go):
http://graphics.berkeley.edu/papers/Goktekin-AMF-2004-08/
The paper and video there both have some demonstrations of different parameter values.
|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Thu Mar 22, 2012 12:01 am GMT Post subject: |
|
|
Yeah, found that link after Jeff mentioned the paper earlier. Good stuff, but still a bit over my head. I understand what I'm reading, just not the formulas themselves. Thanks again for all your work on the flip solver.
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
johner Houdini Expert
Joined: 11 Jul 2006 Posts: 303 Location: Austin, TX

|
Posted: Thu Mar 22, 2012 1:14 pm GMT Post subject: |
|
|
After re-reading that paper, I updated (only) the parameter labels on the OTL above.
So:
Elastic Modulus - the strength of the elasticity effect
Plastic Yield Limit / formerly Gamma - the strain limit at which plastic flow occurs. A high value means little plastic flow (fluid is mostly elastic and always tries to return to original shape), low value means plastic flow can occur when norm of the strain matrix (think total deformation) is above this limit.
Plastic Flow Rate / formerly Alpha - how quickly the fluid will flow when strain is beyond the yield limit. A low value (or zero) will imply mostly elastic behaviour no matter the yield limit; a high value means the fluid will flow quickly once past the plastic yield limit.
|
|
| Back to top |
|
 |
Pari Lurker
Joined: 12 May 2012 Posts: 4 Location: Bournemouth

|
Posted: Sat May 12, 2012 4:06 am GMT Post subject: |
|
|
Thanks a million for this asset!! I have used this in my project at Bournemouth University..Do check it out
https://vimeo.com/42005320
I had some tracking issues hence the jitter..but H12 is awesome! Thanks again!
|
|
| Back to top |
|
 |
Solitude Houdini Adept
Joined: 27 Mar 2009 Posts: 206 Location: Vancouver

|
Posted: Sat May 12, 2012 2:28 pm GMT Post subject: |
|
|
Great work, Pari. That looks awesome!
_________________ Ian Farnsworth |
|
| Back to top |
|
 |
Pari Lurker
Joined: 12 May 2012 Posts: 4 Location: Bournemouth

|
Posted: Sat May 12, 2012 3:53 pm GMT Post subject: |
|
|
Thanks!
|
|
| Back to top |
|
 |
mzigaib Houdini Expert
Joined: 02 Apr 2008 Posts: 356 Location: Sâo Paulo

|
|
| Back to top |
|
 |
|