Changeset View
Changeset View
Standalone View
Standalone View
intern/mantaflow/intern/strings/liquid_script.h
| Show First 20 Lines • Show All 337 Lines • ▼ Show 20 Lines | def liquid_step_mesh_$ID$():\n\ | ||||
| extrapolateLsSimple(phi=phi_sm$ID$, distance=3)\n\ | extrapolateLsSimple(phi=phi_sm$ID$, distance=3)\n\ | ||||
| phi_sm$ID$.setBoundNeumann(0) # make sure no particles are placed at outer boundary\n\ | phi_sm$ID$.setBoundNeumann(0) # make sure no particles are placed at outer boundary\n\ | ||||
| \n\ | \n\ | ||||
| # Vert vel vector needs to pull data from vel grid with correct dim\n\ | # Vert vel vector needs to pull data from vel grid with correct dim\n\ | ||||
| if using_speedvectors_s$ID$:\n\ | if using_speedvectors_s$ID$:\n\ | ||||
| interpolateMACGrid(target=vel_sm$ID$, source=vel_s$ID$)\n\ | interpolateMACGrid(target=vel_sm$ID$, source=vel_s$ID$)\n\ | ||||
| mVel_mesh$ID$.setSource(vel_sm$ID$, isMAC=True)\n\ | mVel_mesh$ID$.setSource(vel_sm$ID$, isMAC=True)\n\ | ||||
| \n\ | \n\ | ||||
| phi_sm$ID$.setBound(0.5,int(((upres_sm$ID$)*2)-2) )\n\ | phi_sm$ID$.setBound(0.5, upres_sm$ID$ - 1)\n\ | ||||
| phi_sm$ID$.createMesh(mesh_sm$ID$)\n"; | phi_sm$ID$.createMesh(mesh_sm$ID$)\n"; | ||||
| const std::string liquid_step_particles = | const std::string liquid_step_particles = | ||||
| "\n\ | "\n\ | ||||
| def liquid_step_particles_$ID$():\n\ | def liquid_step_particles_$ID$():\n\ | ||||
| mantaMsg('Secondary particles step')\n\ | mantaMsg('Secondary particles step')\n\ | ||||
| \n\ | \n\ | ||||
| # no upres: just use the loaded grids\n\ | # no upres: just use the loaded grids\n\ | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||