Mantaflow not calculating volume correctly for liquids [due to Adaptive Time Steps?] #77510

Open
opened 2020-06-06 14:36:27 +02:00 by Ignatz · 11 comments

System Information
Operating system: Windows 7 Pro 64-bit
Graphics card: Nvidia GeForce GTX 1060 6gb

Blender Version
Broken: version 2.83.0

Created Mantaflow liquid simulation.

Inflow object flowing into small tub (collision object) and from there into a larger tub below (collision object)

Small tub fills in something like 70 frames and then overflows into larger tub below which fills up in another 100 frames.

This cannot be. The larger tub is something like six to eight times the volume of the smaller tub and would not fill up this fast.

In my opinion, Mantaflow is calculating the flow so that there is an equal Z-axis fill rate, but this is totally incorrect with regard to volume.

mantaflow volume bug.blend

mantaflow volume bug.mp4

**System Information** Operating system: Windows 7 Pro 64-bit Graphics card: Nvidia GeForce GTX 1060 6gb **Blender Version** Broken: version 2.83.0 Created Mantaflow liquid simulation. Inflow object flowing into small tub (collision object) and from there into a larger tub below (collision object) Small tub fills in something like 70 frames and then overflows into larger tub below which fills up in another 100 frames. This cannot be. The larger tub is something like six to eight times the volume of the smaller tub and would not fill up this fast. In my opinion, Mantaflow is calculating the flow so that there is an equal Z-axis fill rate, but this is totally incorrect with regard to volume. [mantaflow volume bug.blend](https://archive.blender.org/developer/F8586860/mantaflow_volume_bug.blend) [mantaflow volume bug.mp4](https://archive.blender.org/developer/F8586861/mantaflow_volume_bug.mp4)
Author

Added subscriber: @ignatz

Added subscriber: @ignatz
Author

As I continue to think about this problem it suddenly struck me that Mantaflow has evidently multiplied the number of liquid particles.

Witness the relatively small particle stream from the inflow object... relative to the huge amount of flow when the small box overflows.

As I continue to think about this problem it suddenly struck me that Mantaflow has evidently multiplied the number of liquid particles. Witness the relatively small particle stream from the inflow object... relative to the huge amount of flow when the small box overflows.
Member

Added subscribers: @sebbas, @JacquesLucke, @lichtwerk

Added subscribers: @sebbas, @JacquesLucke, @lichtwerk
Member

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

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

This is indeed unexpected.
I assume this has to do with Use Adaptive Time Steps (turning that off yields more predictable results)?

CC @sebbas
CC @JacquesLucke

I would assume this is a bug, will let others decide though...

This is indeed unexpected. I assume this has to do with Use `Adaptive Time Steps` (turning that off yields more predictable results)? CC @sebbas CC @JacquesLucke I would assume this is a bug, will let others decide though...
Philipp Oeser changed title from Mantaflow not calculating volume correctly for liquids to Mantaflow not calculating volume correctly for liquids [due to Adaptive Time Steps?] 2020-06-11 15:46:06 +02:00
Author

Philipp, you are correct. Turning off 'Adaptive Time Steps' does yield a result that is more correct relative to the volumes of the containers versus the fluid flow.

It would appear that the 'Adaptive Time Steps' option is allowing an unexpected multiplication of the fluid particles.

The multiplication of fluid particles could be interesting in some situations, but definitely not when the user is trying to obtain results that more closely match the real world.

I am assuming that the 'adaptive time steps' has some other benefit for the calculation of the simulation, but I would make particle multiplication a separate option on its own.

Philipp, you are correct. Turning off **'Adaptive Time Steps'** does yield a result that is more correct relative to the volumes of the containers versus the fluid flow. It would appear that the 'Adaptive Time Steps' option is allowing an unexpected multiplication of the fluid particles. The multiplication of fluid particles could be interesting in some situations, but definitely not when the user is trying to obtain results that more closely match the real world. I am assuming that the 'adaptive time steps' has some other benefit for the calculation of the simulation, but I would make particle multiplication a separate option on its own.
Member

It seems to produce fairly different results in 2.90 compared to 2.83, can you confirm that? Also it does not leak in the same way in 2.90 for me.

It seems to produce fairly different results in 2.90 compared to 2.83, can you confirm that? Also it does not leak in the same way in 2.90 for me.
Member

In #77510#951634, @JacquesLucke wrote:
It seems to produce fairly different results in 2.90 compared to 2.83, can you confirm that? Also it does not leak in the same way in 2.90 for me.

Yep, sorry was only testing 2.83, 2.90 has totally different results, but nonetheless the discrepancy remains.
In 2.90, I get ~260 frames to fill up the top box and ~360 frames to fill up the bottom box [which is unexpected]

> In #77510#951634, @JacquesLucke wrote: > It seems to produce fairly different results in 2.90 compared to 2.83, can you confirm that? Also it does not leak in the same way in 2.90 for me. Yep, sorry was only testing 2.83, 2.90 has totally different results, but nonetheless the discrepancy remains. In 2.90, I get ~260 frames to fill up the top box and ~360 frames to fill up the bottom box [which is unexpected]
Member

I cannot explain this difference either. @sebbas, do you know what is causing the simulations to be that different?

I cannot explain this difference either. @sebbas, do you know what is causing the simulations to be that different?
Member

I think I misunderstood the problem last time.

In #77510#951647, @lichtwerk wrote:
In 2.90, I get ~260 frames to fill up the top box and ~360 frames to fill up the bottom box [which is unexpected]

I can reproduce it. It seems quite wrong, but might be a hard to fix problem, not sure. I'll set this as a bug for now. Maybe @sebbas has to reclassify this as a known issue at some point.

I think I misunderstood the problem last time. > In #77510#951647, @lichtwerk wrote: > In 2.90, I get ~260 frames to fill up the top box and ~360 frames to fill up the bottom box [which is unexpected] I can reproduce it. It seems quite wrong, but might be a hard to fix problem, not sure. I'll set this as a bug for now. Maybe @sebbas has to reclassify this as a known issue at some point.

Mantaflow (fluid simulator) has no active developer at the moment. Moving those bugs as known issues so at least other users can find their issues already reported.

Mantaflow (fluid simulator) has no active developer at the moment. Moving those bugs as known issues so at least other users can find their issues already reported.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:47 +01:00
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
No Assignees
4 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#77510
No description provided.