[Bf-blender-cvs] [8f2ffc1b1cd] fluid-mantaflow: fix for preconditioner and closed domains
Sebastián Barschkis
noreply at git.blender.org
Sat Jun 10 00:51:33 CEST 2017
Commit: 8f2ffc1b1cd377c3e6dbc71ada9542087135e263
Author: Sebastián Barschkis
Date: Sat Jun 10 00:51:12 2017 +0200
Branches: fluid-mantaflow
https://developer.blender.org/rB8f2ffc1b1cd377c3e6dbc71ada9542087135e263
fix for preconditioner and closed domains
closed domains require zero pressure fixing enabled for the preconditioner to work
===================================================================
M intern/mantaflow/intern/strings/smoke_script.h
===================================================================
diff --git a/intern/mantaflow/intern/strings/smoke_script.h b/intern/mantaflow/intern/strings/smoke_script.h
index 2afdfb1ca13..aa6d4d8b8a3 100644
--- a/intern/mantaflow/intern/strings/smoke_script.h
+++ b/intern/mantaflow/intern/strings/smoke_script.h
@@ -304,7 +304,7 @@ def step_low_$ID$():\n\
setObstacleVelocity(flags=flags_s$ID$, vel=vel_s$ID$, obvel=obvel_s$ID$, boundaryWidth=1, borderWidth=obvelBorderWidth_s$ID$)\n\
\n\
mantaMsg('Pressure')\n\
- solvePressure(flags=flags_s$ID$, vel=vel_s$ID$, pressure=pressure_s$ID$, preconditioner=$PRECONDITIONER$)\n\
+ solvePressure(flags=flags_s$ID$, vel=vel_s$ID$, pressure=pressure_s$ID$, preconditioner=$PRECONDITIONER$, zeroPressureFixing=not doOpen_s$ID$) # closed domains require pressure fixing\n\
\n\
def process_burn_low_$ID$():\n\
mantaMsg('Process burn low')\n\
More information about the Bf-blender-cvs
mailing list