Regression: Increased instability in fire simulation due to changes of default values #126924
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#126924
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: macOS-14.6.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Pro 1.2
Blender Version
Broken version: 4.3.0 Alpha, branch: main, commit date: 2024-08-29 06:55, hash:
e82ba8d4951e
Broken version: 4.2
Worked: 4.1.1
Short description of error
The default CFL number for fluid, smoke, and fire simulations was decreased in
9a0a75eff0
.This has lead to increased instability in some common simulation settings.
Exact steps for others to reproduce the error
Run this test in 4.1.1 and 4.2 or new:
Object -> Quick Effects -> Quick Smoke
Pyhsics properties
tab change theFlow type
tofire
and fuel to2.0
This was caused by the decrease of the default CFL number on the simulation domain from 4.0 to 2.0 in
9a0a75eff0
.Not quite sure what instability means. Visually it seems very similar in 4.1 and main. Can you explain bit more in detail what the difference is?
The stability issue I was refering too was that with a CFL of 2 with this configuration, the fire from the sphere would kind of shoot out in all directions and the simulation steps per frame would increase due to this complexity resulting in the baking slowing down.
CFL 2.jpg
is a workbench render of the simulation at frame 100 with this configuration. Notice that the fire is spreading out in most directions.Where as when the CFL was 4, it felt more stable (the fire always generally went upwards, and the simulation steps per frame didn't drastically increase due to the complexity).
CFL 4.jpg
is a workbench render of the simulation at frame 100 with this configuration. Notice that the fire is generally going up.Hi, can indeed confirm. Not sure if we should raise the priority? Easy to fix from UI but might take significant time for someone to figure out the root cause of the difference.
Increased instability in fire simulation due to changes of default valuesto Regression: Increased instability in fire simulation due to changes of default values@Bartosz-Kosiorek @brecht /
I have a suspicion that there's more going on here than just "The default value changed, resulting in instability under common situations". I think the simulations have a bunch of issues/inconsistencies and this just exposes one of them, but to my knowledge the simulation systems are not well maintained so I'm not sure if it will be addressed.
Ok, now I can reproduce.
It's weird though, I have saved .blend file for 4.1 and main with different cache paths to prevent contamination and the behavior is identical between 2 versions.
Hi @Alaska
Please try to increase the "Timesteps Maximum" to 8 and next to 16.
Please provide the screenshots with comparison between those values.
How it is impacting baking time?
Leaving CFL at 2 and increasing the timesteps maximum just makes it worse. More fire shoots out in unexpected directions faster, and because the number of time steps Blender tries to computes increases, the baking time increases. I don't believe screenshots are neccesary here.
I'm concerned there might be more going on here than "the new default is less than ideal". Here's why:
What the new default CFL value does is it forces more time steps to be taken during the simulation. In theory this is more accurate and it points to the old behaviour actually being wrong and the new behaviour being more correct.
But if you force an increased number of time steps (by increasing the min time steps value) under normal circumstances (Fuel = 1.0, or even 0.5), you get the same general effect. Fire starts shooting out in unexpected directions. I have created a grid of tests where you can see this happen in the video attached to this message.
So I believe one of two things are happening:
That's a common Mantaflow problem: stability issues with high temporal resolution.
Use
Quick Liquid
on the default cube and setTimesteps Maximum
andMinimum
to 25. This results in a domain filling expansion where the higher the timesteps, the expansion happens earlier and expands more quickly.On APIC, with 100 timesteps, it does other weird things before exploding such as falling slowly with strings of fluid.
Plain smoke seems to also need high spatial resolution to get it to break. Here it is at 256 resolution and 100 timesteps.
Here is fire with 256 resolution and 100 timesteps (using
Quick Smoke
and changing the emitter to smoke+fire) (It looks really cool when the instability kicks in).Here is fire at 1 timestep.
Thanks @Fernando-Alcala for such analysis.
Do you know if commercial plugins also has similar instability?
Flip Fluid Demo download:
https://github.com/rlguy/Blender-FLIP-Fluids/releases/tag/v0.8.1
@Bartosz-Kosiorek Hi, this is a developer of the FLIP Fluids liquid simulation addon. This addon does not have this type of issue with increased timesteps. Typically, increasing timesteps or reducing CFL results in smoother and more stable motion within the addon simulator.
Apologies in advance if this contribution is off-topic to the discussion.
FLIP Fluids does not have instability, but it does have excessive damping at high timestepping.
Here is 1 timestep
Here is 100 timesteps