Fluid: Outflow geometry is not working #75758

Closed
opened 2020-04-15 20:25:12 +02:00 by Yusuke Yasui · 17 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-13 17:13, hash: ad317a5ffd
Worked: 2.82

Short description of error
The outflow geometry does not seem to be working.

bug.png

expected.png

I quickly debug the code (commit 2ec6eca518).
Then, I have found, if I comment out the following two lines in fluid.c, it seems to work.

line 2748

    /* Optimization: Static liquid flow objects don't need emission computation after first
   * frame.
   * TODO (sebbas): Also do not use static mode if initial velocities are enabled. */
   if (mfs->type == FLUID_FLOW_TYPE_LIQUID && is_static && !is_first_frame && !use_velocity) {
     // continue; <- comment out
    }

line 2944

      /* Skip static liquid objects that are not on the first frame.
     * TODO (sebbas): Also do not use static mode if initial velocities are enabled. */
      if (is_static && !use_velocity) {
        // continue; <- comment out
      }

Exact steps for others to reproduce the error
Open the attached file and bake fluid. You will see that the outflow geometry is ignored.
outflow_test2.blend

I hope this helps. Please let me know anytime if you have questions.

Thank you!
Yusuke

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.66 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-13 17:13, hash: `ad317a5ffd` Worked: 2.82 **Short description of error** The outflow geometry does not seem to be working. ![bug.png](https://archive.blender.org/developer/F8475513/bug.png) ![expected.png](https://archive.blender.org/developer/F8475515/expected.png) I quickly debug the code (commit 2ec6eca518ef85115cbb7b6465f296d2fd422f5e). Then, I have found, if I comment out the following two lines in fluid.c, it seems to work. line 2748 ``` /* Optimization: Static liquid flow objects don't need emission computation after first ``` * frame. * TODO (sebbas): Also do not use static mode if initial velocities are enabled. */ ``` if (mfs->type == FLUID_FLOW_TYPE_LIQUID && is_static && !is_first_frame && !use_velocity) { // continue; <- comment out } ``` line 2944 ``` /* Skip static liquid objects that are not on the first frame. ``` * TODO (sebbas): Also do not use static mode if initial velocities are enabled. */ ``` if (is_static && !use_velocity) { // continue; <- comment out } ``` **Exact steps for others to reproduce the error** Open the attached file and bake fluid. You will see that the outflow geometry is ignored. [outflow_test2.blend](https://archive.blender.org/developer/F8475511/outflow_test2.blend) I hope this helps. Please let me know anytime if you have questions. Thank you! Yusuke
Author

Added subscriber: @yiusay

Added subscriber: @yiusay
Author

Maybe the problem is phiout_in is initialized to PHI_MAX every frame (line 2879) while the value is set only in the first frame when the outflow object is static and does not have velocity.

Maybe the problem is phiout_in is initialized to PHI_MAX every frame (line 2879) while the value is set only in the first frame when the outflow object is static and does not have velocity.
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

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

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

You may please ready a patch & submit it at https://developer.blender.org/differential/diff/create/

You may please ready a patch & submit it at https://developer.blender.org/differential/diff/create/
Member

Added subscribers: @sebbas, @lichtwerk

Added subscribers: @sebbas, @lichtwerk
Member

CC @sebbas

CC @sebbas
Member

Dare setting this to High...

Dare setting this to High...
Author

Submitted a quick fix here.
https://developer.blender.org/D7451

Although I am new to blender development, I believe this fix should not be a fundamental solution for this problem since accelerating fluid baking by taking advantage of the static objects seems to be one of the features in 2.83 release. But I am happy if this helps in some way.

Submitted a quick fix here. https://developer.blender.org/D7451 Although I am new to blender development, I believe this fix should not be a fundamental solution for this problem since accelerating fluid baking by taking advantage of the static objects seems to be one of the features in 2.83 release. But I am happy if this helps in some way.
Member

Added subscriber: @jesterking

Added subscriber: @jesterking
Sebastián Barschkis was assigned by Nathan Letwory 2020-04-20 22:27:36 +02:00
Member

@sebbas is this not something that could have been fixed for 2.83 too?

@sebbas is this not something that could have been fixed for 2.83 too?

@jesterking Yes you're right, that's a fix for 2.83 too. When I committed this yesterday I noticed that the fluid commits from last Wednesday weren't in the release branch and so I just quickly committed to master.

WIll cherry-pick them later, there shouldn't be any problems with tags, right?

@jesterking Yes you're right, that's a fix for 2.83 too. When I committed this yesterday I noticed that the fluid commits from last Wednesday weren't in the release branch and so I just quickly committed to master. WIll cherry-pick them later, there shouldn't be any problems with tags, right?
Member

@sebbas should be fine. Just remember to merge back into master and handle the conflict. I will retag the issues for you.

@sebbas should be fine. Just remember to merge back into master and handle the conflict. I will retag the issues for you.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'

This should be fixed starting cdc399a055. So closing this report.

Also, since the obstacle in the example file is not a closed mesh, I recommend enabling the "Is Planar" option.

This should be fixed starting cdc399a05537. So closing this report. Also, since the obstacle in the example file is not a closed mesh, I recommend enabling the "Is Planar" option.
Author

@Sebastián Barschkis (sebbas)
It is working now. Thank you!

@Sebastián Barschkis (sebbas) It is working now. Thank you!

That's good to know, thanks for reporting!

That's good to know, thanks for reporting!
Thomas Dinges added this to the 2.83 LTS milestone 2023-02-08 16:38:05 +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
5 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#75758
No description provided.