Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are simulations where you have to Imagine a scene, where you have to simulate 100 frames to wait until the fluid particles have settled or have reached a certain point in space. These 100 frames will not be used, because the really interesting part starts at frame 101. Instead of deleting the surplus files and struggle with offsets, you can create an initial state from the last frame. When "Use Initial State" is enabled this saved state will be shown at frame 0 and be used as a starting point for the next simulation cycle. Now you have exactly the frames you really need, because the previous frames will be overwritten at cache time.

Other, typical fields of applications are, for example

  • the creation of puddles (see below) in conjunction with the "Crown" daemon
  • emitters and daemons like "Spline" and "DSpline"
  • calm fluid surfaces.
  • filled tanks and containers.

 

Image Added

 

Creating an initial state is a matter of a few clicks:

  • Simulate (click on the timeline's "Play" button)
  • Go to Scene > Cache and specify the "Cache Folder" where the initial state will be saved.
  • Stop the simulation at any time and press "Create Initial State under Fluid > Fluid.
  • Set “Use Initial State” to “Yes” if necessary.
  • Rewind the timeline to frame 0 – the initial state is shown.
  • Simulate.

Creating a Puddle

Start with a cube and attach a "Collider" tag with the following settings – high "Friction" prevents the particles from spreading out, a low "Bounce" value avoids "elastic" particles:

  • Add a "Sphere" emitter. Enable "Fill sphere", set "Speed" to 0, and "Randomness" to 0.2.
  • Go to Fluid > Fluid, and enter 100 for "Resolution" and 2 for "Surface Tension",
  • Create a "Gravity" daemon.
  • Next, create a "Drag" daemon and animate its "Drag Strength" from 0 to 400.0 between frame 0 and 200. This helps to slow down the fluid and make it rest.
  • Simulate for 250 - 300 frames.

You will observe that the particles slow down and create a circular puddle. The puddle's diameter and height depends on how fast the particles are being decelerated.

Once the particles have come to rest you can create an initial state as described above. This state can then be used for further simulations, but please disable or remove the "Drag" daemon.