[Bf-blender-cvs] [ab9c7d2] fluid-mantaflow: boundary width fix

Sebastián Barschkis noreply at git.blender.org
Mon Feb 1 12:54:36 CET 2016


Commit: ab9c7d289e7946b461a68f323b2bdc699caa9f24
Author: Sebastián Barschkis
Date:   Mon Feb 1 12:52:03 2016 +0100
Branches: fluid-mantaflow
https://developer.blender.org/rBab9c7d289e7946b461a68f323b2bdc699caa9f24

boundary width fix

===================================================================

M	intern/smoke/intern/scenarios/smoke.h

===================================================================

diff --git a/intern/smoke/intern/scenarios/smoke.h b/intern/smoke/intern/scenarios/smoke.h
index 7926106..3f31c56 100644
--- a/intern/smoke/intern/scenarios/smoke.h
+++ b/intern/smoke/intern/scenarios/smoke.h
@@ -41,6 +41,7 @@ s = FluidSolver(name='main', gridSize=gs, dim=dim)\n\
 s.timestep = $TIMESTEP$\n\
 timings = Timings()\n\
 vorticity = $VORTICITY$\n\
+boundaryWidth = 1\n\
 uvs = $UVS_CNT$\n";
 
 const string alloc_base_grids_low = "\n\
@@ -70,10 +71,10 @@ noise.timeAnim = $NOISE_TIMEANIM$\n";
 
 const string prep_domain_low = "\n\
 # prepare domain low\n\
-flags.initDomain()\n\
+flags.initDomain(boundaryWidth=boundaryWidth)\n\
 flags.fillGrid()\n\
 if doOpen:\n\
-  setOpenBound(flags=flags, bWidth=1, openBound=boundConditions, type=FlagOutflow|FlagEmpty)\n";
+  setOpenBound(flags=flags, bWidth=boundaryWidth, openBound=boundConditions, type=FlagOutflow|FlagEmpty)\n";
 
 //////////////////////////////////////////////////////////////////////
 // HIGH RESOLUTION SETUP
@@ -115,10 +116,10 @@ xl_noise.timeAnim = $NOISE_TIMEANIM$ * upres\n";
 
 const string prep_domain_high = "\n\
 # prepare domain high\n\
-xl_flags.initDomain()\n\
+xl_flags.initDomain(boundaryWidth=boundaryWidth)\n\
 xl_flags.fillGrid()\n\
 if doOpen:\n\
-  setOpenBound(flags=xl_flags, bWidth=1, openBound=boundConditions, type=FlagOutflow|FlagEmpty)\n";
+  setOpenBound(flags=xl_flags, bWidth=boundaryWidth, openBound=boundConditions, type=FlagOutflow|FlagEmpty)\n";
 
 const string wavelet_turbulence_noise = "\n\
 # wavelet turbulence noise field\n\




More information about the Bf-blender-cvs mailing list