Mantaflow Gas domain: 'use adaptive time steps' doesn't seem to adapt. #74062

Closed
opened 2020-02-21 04:43:29 +01:00 by Mark Spink · 38 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86

Blender Version
Broken: version: 2.83 (sub 4), branch: master, commit date: 2020-02-20 12:28, hash: d95e9c7cf8
Worked: (optional)

Short description of error
['Use Adaptive Time Steps' setting in the Domain settings only seems to change when the minimum value is raised, as in it does not seem to 'adapt' between the set minimum and maximum values entered.]

Exact steps for others to reproduce the error
[Bake the attached blend with 'Use Adaptive Time Steps' disabled, then again with it enabled and set to minimum=1, maximum=8, it will look the same, with visible steps in the smoke/fire trail every frame, then bake again with 'Use Adaptive Time Steps' minimum increased to 2, you should see the 2 steps in the smoke every frame.
Then again with the minimum set to 3, looks useable by then, and not much different from using a minimum of 4 for this sim.
It looks like this-
Mantaflow_AdaptiveTimesteps.JPG

And here's the blend-
Mantaflow_AdaptiveTimeSteps.blend I put the maximum time steps down to a more reasonable 8, but it still only seems to use the minimum number of time steps regardless.
So it looks to me like the solver is not 'adapting' much, definitely not in this instance anyway.]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86 **Blender Version** Broken: version: 2.83 (sub 4), branch: master, commit date: 2020-02-20 12:28, hash: `d95e9c7cf8` Worked: (optional) **Short description of error** ['Use Adaptive Time Steps' setting in the Domain settings only seems to change when the minimum value is raised, as in it does not seem to 'adapt' between the set minimum and maximum values entered.] **Exact steps for others to reproduce the error** [Bake the attached blend with 'Use Adaptive Time Steps' disabled, then again with it enabled and set to minimum=1, maximum=8, it will look the same, with visible steps in the smoke/fire trail every frame, then bake again with 'Use Adaptive Time Steps' minimum increased to 2, you should see the 2 steps in the smoke every frame. Then again with the minimum set to 3, looks useable by then, and not much different from using a minimum of 4 for this sim. It looks like this- ![Mantaflow_AdaptiveTimesteps.JPG](https://archive.blender.org/developer/F8355666/Mantaflow_AdaptiveTimesteps.JPG) And here's the blend- [Mantaflow_AdaptiveTimeSteps.blend](https://archive.blender.org/developer/F8355672/Mantaflow_AdaptiveTimeSteps.blend) I put the maximum time steps down to a more reasonable 8, but it still only seems to use the minimum number of time steps regardless. So it looks to me like the solver is not 'adapting' much, definitely not in this instance anyway.] [Based on the default startup or an attached .blend file (as simple as possible)]
Author

Added subscriber: @marks-4

Added subscriber: @marks-4

Added subscriber: @SlyNine

Added subscriber: @SlyNine

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @StephenHamacek

Added subscriber: @StephenHamacek

Glad to see this, explains why I haven't had any luck with that feature yet.

Glad to see this, explains why I haven't had any luck with that feature yet.

Another issue is, when time steps are set to a value greater than one and adding noise up-res I get this in both smoke and Smoke+fire in the latest alpha 2.83

No Noise.png

With Noise.png

Another issue is, when time steps are set to a value greater than one and adding noise up-res I get this in *both* smoke and Smoke+fire in the latest alpha 2.83 ![No Noise.png](https://archive.blender.org/developer/F8363079/No_Noise.png) ![With Noise.png](https://archive.blender.org/developer/F8363073/With_Noise.png)
Author

@SlyNine I'm not seeing that in 2.83Alpha-
Mantaflow_AdaptiveTimestepsNoise.JPG
This build-
V2.83.JPG
This is baked with minimum=3 'adaptive time steps' and noise baked on top. Are you using 2.82 release version?

Re the Feb 21 build of 2.83Alpha:
I also get a lot (most times I try in fact) of crash-on-load crashes in this build, trying to load previous build Mantaflow scenes.
I had to append all the objects into a new scene to actually load this scene, I could not load the scene without an instant crash. It loaded fine into the previous build. (I didn't test 'adaptive time steps' with this build yet)

@SlyNine I'm not seeing that in 2.83Alpha- ![Mantaflow_AdaptiveTimestepsNoise.JPG](https://archive.blender.org/developer/F8363601/Mantaflow_AdaptiveTimestepsNoise.JPG) This build- ![V2.83.JPG](https://archive.blender.org/developer/F8363604/V2.83.JPG) This is baked with minimum=3 'adaptive time steps' and noise baked on top. Are you using 2.82 release version? Re the Feb 21 build of 2.83Alpha: I also get a lot (most times I try in fact) of crash-on-load crashes in this build, trying to load previous build Mantaflow scenes. I had to append all the objects into a new scene to actually load this scene, I could not load the scene without an instant crash. It loaded fine into the previous build. (I didn't test 'adaptive time steps' with this build yet)

Both 2.82 (if I import a scene baked in 2.83) and 2.83

Its a bit different than the other issue. In that it can take a lot more spread between frames to make it appear sometimes. I'll try to get a few more examples when I get a chance.

Both 2.82 (if I import a scene baked in 2.83) and 2.83 Its a bit different than the other issue. In that it can take a lot more spread between frames to make it appear sometimes. I'll try to get a few more examples when I get a chance.
Author

Hello, it looks like this issue has, very nearly, been fixed in the March 2nd build. The smoke looks smooth (almost completely) with time steps appearing to adapt between 1 & 8, and without the bake time being very slow.

2020-03-03 12-10-07.mp4

I say 'very nearly' fixed, as you can still see a small gap/change in the smoke/fire, at the actual position of the mesh on each frame.
This scene was ok crash-wise for 'free data' & re-bake, but, as you can see at the end, this scene gives you a total crash when you attempt to playback in 'rendered' view mode. (see my comments in #73232 & #72214 re crashes and other issues with this (March 3rd) build.

Hello, it looks like this issue has, very nearly, been fixed in the March 2nd build. The smoke looks smooth (almost completely) with time steps appearing to adapt between 1 & 8, and without the bake time being very slow. [2020-03-03 12-10-07.mp4](https://archive.blender.org/developer/F8384335/2020-03-03_12-10-07.mp4) I say 'very nearly' fixed, as you can still see a small gap/change in the smoke/fire, at the actual position of the mesh on each frame. This scene was ok crash-wise for 'free data' & re-bake, but, as you can see at the end, this scene gives you a total crash when you attempt to playback in 'rendered' view mode. (see my comments in #73232 & #72214 re crashes and other issues with this (March 3rd) build.

Sorry it took me so long to get back to this. With March 4th version I'm still getting the same issues. Looking at your picture it doesn't look like you had the minimum set above one in the domain. I've attached more pictures.

Version.jpg

Blender Noise issue No Noise.jpg

Blender Noise issue.jpg

Blender Noise issue No Noise 2.jpg

Blender Noise issue 2.jpg

Blender Noise issue No Noise 3.jpg

Blender Noise issue 3.jpg

Blender Noise issue No Noise 4.jpg

Blender Noise issue 4.jpg

Sorry it took me so long to get back to this. With March 4th version I'm still getting the same issues. Looking at your picture it doesn't look like you had the minimum set above one in the domain. I've attached more pictures. ![Version.jpg](https://archive.blender.org/developer/F8387481/Version.jpg) ![Blender Noise issue No Noise.jpg](https://archive.blender.org/developer/F8387462/Blender_Noise_issue_No_Noise.jpg) ![Blender Noise issue.jpg](https://archive.blender.org/developer/F8387464/Blender_Noise_issue.jpg) ![Blender Noise issue No Noise 2.jpg](https://archive.blender.org/developer/F8387466/Blender_Noise_issue_No_Noise_2.jpg) ![Blender Noise issue 2.jpg](https://archive.blender.org/developer/F8387468/Blender_Noise_issue_2.jpg) ![Blender Noise issue No Noise 3.jpg](https://archive.blender.org/developer/F8387470/Blender_Noise_issue_No_Noise_3.jpg) ![Blender Noise issue 3.jpg](https://archive.blender.org/developer/F8387472/Blender_Noise_issue_3.jpg) ![Blender Noise issue No Noise 4.jpg](https://archive.blender.org/developer/F8387474/Blender_Noise_issue_No_Noise_4.jpg) ![Blender Noise issue 4.jpg](https://archive.blender.org/developer/F8387476/Blender_Noise_issue_4.jpg)
Author

@SlyNine Agreed, if you set the minimum above 1 now it's broken with noise, but what I'm saying is that with the recent builds you don't see the huge stairsteps between frames anymore with minimum steps, like the image in my original report above, so something is definitely better. As in min=1 max=whatever, now looks better than min=2 or 3 used to. But I agree completely that if you raise the minimum it doesn't look too clever.

Here's min=1 with the March 3rd build-
AdaptiveDisolve_Min1.JPG
You can still 'see' where the sphere is on every frame, and the fire trail is noticeably brighter/thicker for the last frame throughout the frame range, but it's nowhere near as bad as it was initially.

@SlyNine Agreed, if you set the minimum above 1 now it's broken with noise, but what I'm saying is that with the recent builds you don't see the huge stairsteps between frames anymore with minimum steps, like the image in my original report above, so something is definitely better. As in min=1 max=whatever, now looks better than min=2 or 3 used to. But I agree completely that if you raise the minimum it doesn't look too clever. Here's min=1 with the March 3rd build- ![AdaptiveDisolve_Min1.JPG](https://archive.blender.org/developer/F8390554/AdaptiveDisolve_Min1.JPG) You can still 'see' where the sphere is on every frame, and the fire trail is noticeably brighter/thicker for the last frame throughout the frame range, but it's nowhere near as bad as it was initially.

Added subscriber: @AndrewPrice

Added subscriber: @AndrewPrice

Ohh it's a bug! That explains why setting CFL to a low value creates chaos: it wasn't increasing the steps automatically!

CFL.mp4

This is a really important bug to fix. Can't make a decent explosion without it.

Ohh it's a bug! That explains why setting CFL to a low value creates chaos: it wasn't increasing the steps automatically! [CFL.mp4](https://archive.blender.org/developer/F8396211/CFL.mp4) This is a really important bug to fix. Can't make a decent explosion without it.
Sebastián Barschkis was assigned by Gottfried Hofmann 2020-03-16 19:16:43 +01:00

Added subscriber: @GottfriedHofmann

Added subscriber: @GottfriedHofmann

I can confirm the original issue in blender-2.83-f06a6e92bc5e-linux64.

I can confirm the original issue in blender-2.83-f06a6e92bc5e-linux64.

Added subscriber: @derekbarker

Added subscriber: @derekbarker

Im having the issue in 2.83 (sub 9), branch: master, commit date: 2020-03-17 20:42, hash: dc2df8307f

Though it seems we can get better results using sub stepping on the emitter object than adjusting the timesteps

Sub steps 4 with time step min 1 - max 1, Very quick simulation

blender_bMdgCBqw5A.png

Sub steps 0 with time step min 1 - max 1

blender_dMT4pYb4qi.png

Sub steps 0 with time step min 4 - max 4 : Takes forever to simulate, You can see the turbulence force is much more apparent in this one though i'm not sure its behaving properly

blender_ukqLIK8583.png

Im having the issue in 2.83 (sub 9), branch: master, commit date: 2020-03-17 20:42, hash: dc2df8307f Though it seems we can get better results using sub stepping on the emitter object than adjusting the timesteps Sub steps 4 with time step min 1 - max 1, Very quick simulation ![blender_bMdgCBqw5A.png](https://archive.blender.org/developer/F8413885/blender_bMdgCBqw5A.png) Sub steps 0 with time step min 1 - max 1 ![blender_dMT4pYb4qi.png](https://archive.blender.org/developer/F8413890/blender_dMT4pYb4qi.png) Sub steps 0 with time step min 4 - max 4 : Takes forever to simulate, You can see the turbulence force is much more apparent in this one though i'm not sure its behaving properly ![blender_ukqLIK8583.png](https://archive.blender.org/developer/F8413894/blender_ukqLIK8583.png)
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Subframe handling has been improved with D7256. Can this be closed?

Subframe handling has been improved with [D7256](https://archive.blender.org/developer/D7256). Can this be closed?
Author

Sorry guys: I'm up to my neck with a promo & a music promo at the moment (50 clips to key and match-move for the music promo!) hopefully in a week or so I'll be back in Blender for the background plates so I'll be able to look at Mantaflow etc.

Sorry guys: I'm up to my neck with a promo & a music promo at the moment (50 clips to key and match-move for the music promo!) hopefully in a week or so I'll be back in Blender for the background plates so I'll be able to look at Mantaflow etc.

In #74062#902057, @JacquesLucke wrote:
Subframe handling has been improved with D7256. Can this be closed?

Sorry to say, but it seems even more broken for me. This is today's (April 2nd) release. Can you please confirm you have it working?

Subframes still broken0000-0060.mkv

2.83 April 2nd.png

> In #74062#902057, @JacquesLucke wrote: > Subframe handling has been improved with [D7256](https://archive.blender.org/developer/D7256). Can this be closed? Sorry to say, but it seems even more broken for me. This is today's (April 2nd) release. Can you please confirm you have it working? [Subframes still broken0000-0060.mkv](https://archive.blender.org/developer/F8444288/Subframes_still_broken0000-0060.mkv) ![2.83 April 2nd.png](https://archive.blender.org/developer/F8444289/2.83_April_2nd.png)

Added subscriber: @deadpin

Added subscriber: @deadpin

The buildbot version does not have Jacques's fix. You either need to build yourself or wait ~7 more hours from now for a new daily build. Please always include your build hash when commenting about a particular build as I'm only guessing you're using the buildbot right now.

The buildbot version does not have Jacques's fix. You either need to build yourself or wait ~7 more hours from now for a new daily build. Please always include your build hash when commenting about a particular build as I'm only guessing you're using the buildbot right now.

In #74062#902381, @deadpin wrote:
The buildbot version does not have Jacques's fix. You either need to build yourself or wait ~7 more hours from now for a new daily build. Please always include your build hash when commenting about a particular build as I'm only guessing you're using the buildbot right now.

Got it, you're correct. Thanks.

> In #74062#902381, @deadpin wrote: > The buildbot version does not have Jacques's fix. You either need to build yourself or wait ~7 more hours from now for a new daily build. Please always include your build hash when commenting about a particular build as I'm only guessing you're using the buildbot right now. Got it, you're correct. Thanks.

blender-2.83-d0d20de183f1-windows64 - I just want to make sure that (d0d20de183) is the hash. Sorry for the noob question.

I'm still getting an issue when adding noise.

image.png

Without noise

2.83 d0d20de183f1 2.png

With noise

2.83 d0d20de183f1.png

blender-2.83-d0d20de183f1-windows64 - I just want to make sure that (d0d20de183f1) is the hash. Sorry for the noob question. I'm still getting an issue when adding noise. ![image.png](https://archive.blender.org/developer/F8451827/image.png) Without noise ![2.83 d0d20de183f1 2.png](https://archive.blender.org/developer/F8451830/2.83_d0d20de183f1_2.png) With noise ![2.83 d0d20de183f1.png](https://archive.blender.org/developer/F8451833/2.83_d0d20de183f1.png)
Member

I see, I can reproduce the issue when activating noise.

2020-04-07 10-54-38.mp4

I see, I can reproduce the issue when activating noise. [2020-04-07 10-54-38.mp4](https://archive.blender.org/developer/F8454344/2020-04-07_10-54-38.mp4)

Ah, I know what the issue is. It's a bit difficult to explain: The emission for noise is only happening with the inflow from the last adaptive frame of the base simulation. That's why toward the end of the frame there is correct noise smoke/fire.

I'll commit a fix for this very soon.

Ah, I know what the issue is. It's a bit difficult to explain: The emission for noise is only happening with the inflow from the last adaptive frame of the base simulation. That's why toward the end of the frame there is correct noise smoke/fire. I'll commit a fix for this very soon.

Ahhh. Just as I expected. It's something to do with the flux capacitor.

In any case. Thank you! 🎉 🎉 🎉

Ahhh. Just as I expected. It's something to do with the flux capacitor. In any case. Thank you! 🎉 🎉 🎉

c2cb87f897 should fix the issue with the noise. ff2c67d7e8 makes sure that there is no simulation before the first frame (was happening when using a high value in the "Adaptive Time-steps Minimum").

c2cb87f8976b should fix the issue with the noise. ff2c67d7e8ed makes sure that there is no simulation before the first frame (was happening when using a high value in the "Adaptive Time-steps Minimum").

blender-2.83-(1239cab11f)-windows64

That seems to have fixed that issue.

I'm not sure if this is an issue or not. I assumed turning the CFL up would make them blender together more.

CFL at 4 CFL4.jpg 2.83 d0d20de183f1 2 CFL4.png0000-0036.mp4

CFL at 8 CFL8.png 2.83 d0d20de183f1 2 CFL8.png0000-0036.mp4

blender-2.83-(1239cab11ff9)-windows64 That seems to have fixed that issue. I'm not sure if this is an issue or not. I assumed turning the CFL up would make them blender together more. CFL at 4 ![CFL4.jpg](https://archive.blender.org/developer/F8458399/CFL4.jpg) [2.83 d0d20de183f1 2 CFL4.png0000-0036.mp4](https://archive.blender.org/developer/F8458412/2.83_d0d20de183f1_2__CFL4.png0000-0036.mp4) CFL at 8 ![CFL8.png](https://archive.blender.org/developer/F8458401/CFL8.png) [2.83 d0d20de183f1 2 CFL8.png0000-0036.mp4](https://archive.blender.org/developer/F8458413/2.83_d0d20de183f1_2__CFL8.png0000-0036.mp4)

That's correct behavior: A lower CFL value will make the solver perform more simulation steps per frame. And thus the flow in between frames will be more smooth.

That's correct behavior: A lower CFL value will make the solver perform more simulation steps per frame. And thus the flow in between frames will be more smooth.

blender-2.83-(1239cab11f)-windows64

The only other odd behavior i've noticed is the speed of simulation. It seems some aspects of the simulation are fixed (so much per step)

Here I set the time scale to 0.01 and changed the minimum domain time-steps to 1 and 20 to exaggerate the effect as much as possible.

This is with the time steps set to 1 2.83 d0d20de183f1 2 Timesteps1.png0000-0036.mp4

This is with the time steps set to 20 2.83 d0d20de183f1 2 Timesteps20.png0000-0036.mp4

blender-2.83-(1239cab11ff9)-windows64 The only other odd behavior i've noticed is the speed of simulation. It seems some aspects of the simulation are fixed (so much per step) Here I set the time scale to 0.01 and changed the minimum domain time-steps to 1 and 20 to exaggerate the effect as much as possible. This is with the time steps set to 1 [2.83 d0d20de183f1 2 Timesteps1.png0000-0036.mp4](https://archive.blender.org/developer/F8459451/2.83_d0d20de183f1_2__Timesteps1.png0000-0036.mp4) This is with the time steps set to 20 [2.83 d0d20de183f1 2 Timesteps20.png0000-0036.mp4](https://archive.blender.org/developer/F8459453/2.83_d0d20de183f1_2__Timesteps20.png0000-0036.mp4)

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

I see, can confirm the behavior. It looks like that issue is similar to #73837.

In your example, the global vorticity is disabled (set to 0.0) but there is some "Flame vorticity". Can you try setting that to 0.0 too? Doing so should make the results look more alike.
With more timesteps the vorticity forces seem to accumulate resulting in more turbulent smoke/fire.

I see, can confirm the behavior. It looks like that issue is similar to #73837. In your example, the global vorticity is disabled (set to 0.0) but there is some "Flame vorticity". Can you try setting that to 0.0 too? Doing so should make the results look more alike. With more timesteps the vorticity forces seem to accumulate resulting in more turbulent smoke/fire.

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'

It seems all problems around this issue have been resolved, so closing the report. Thanks everyone!

It seems all problems around this issue have been resolved, so closing the report. Thanks everyone!

Nice! Thanks Sebastian. I'm yet to test it myself, but good to see another one marked as resolved.

Nice! Thanks Sebastian. I'm yet to test it myself, but good to see another one marked as resolved.

Thank you Sebastian! I never did get around to testing that last bit. But the main issues seem resolved.

Thank you Sebastian! I never did get around to testing that last bit. But the main issues seem resolved.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
10 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#74062
No description provided.