Fluid: Use different phi for levelset generation

Phi that is used for mesh should be the one that matches particles best.
This commit is contained in:
Sebastián Barschkis 2020-03-23 23:44:37 +01:00
parent 1b5b6a5da8
commit e9629e3cfd

@ -310,11 +310,11 @@ def liquid_step_mesh_$ID$():\n\
\n\
# no upres: just use the loaded grids\n\
if upres_sm$ID$ <= 1:\n\
phi_sm$ID$.copyFrom(phiTmp_s$ID$)\n\
phi_sm$ID$.copyFrom(phi_s$ID$)\n\
\n\
# with upres: recreate grids\n\
else:\n\
interpolateGrid(target=phi_sm$ID$, source=phiTmp_s$ID$)\n\
interpolateGrid(target=phi_sm$ID$, source=phi_s$ID$)\n\
\n\
# create surface\n\
pp_sm$ID$.readParticles(pp_s$ID$)\n\