fluid_step_cube   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm

Implementation

(bind-func fluid_step_cube
  (lambda (cube:fluidcube*)
    (let ((N (tref cube 0))
          (Ny (tref cube 10))
          (dt (tref cube 1))
          (diff (tref cube 2))
          (visc (tref cube 3))
          (s (tref cube 4))
          (k 0)
          (iter 7)
          (kk 0)
          (density (tref cube 5))
          (Vx (tref cube 6))
          (Vy (tref cube 7))
          (Vx0 (tref cube 8))
          (Vy0 (tref cube 9))
          (time (now)))
      (fluid_diffuse 1 Vx0 Vx visc dt iter Ny N)
      (fluid_diffuse 2 Vy0 Vy visc dt iter Ny N)


Back to Index

Similar Entries

  • bind_cube    xtlang
  • clean-cube    xtlang
  • cube_whole    xtlang
  • fluid-advect    xtlang
  • fluid-advect    xtlang
  • fluid-cube-add-density    xtlang
  • fluid-cube-add-density    xtlang
  • fluid-cube-add-velocity    xtlang
  • fluid-cube-add-velocity    xtlang
  • fluid-cube-create    xtlang
  • fluid-cube-create    xtlang
  • fluid-cube-get-column    xtlang
  • fluid-cube-get-first-column    xtlang
  • fluid-cube-get-first-row    xtlang
  • fluid-cube-get-last-column    xtlang
  • fluid-cube-get-last-row    xtlang
  • fluid-cube-get-row    xtlang
  • fluid-cube-set-column    xtlang
  • fluid-cube-set-first-column    xtlang
  • fluid-cube-set-first-row    xtlang
  • fluid-cube-set-last-column    xtlang
  • fluid-cube-set-last-row    xtlang
  • fluid-cube-set-row    xtlang
  • fluid-diffuse    xtlang
  • fluid-diffuse    xtlang
  • fluid-fsc-1    xtlang
  • fluid-fsc-2    xtlang
  • fluid-ix    xtlang
  • fluid-ix    xtlang
  • fluid-lin-solve    xtlang
  • fluid-lin-solve    xtlang
  • fluid-project    xtlang
  • fluid-project    xtlang
  • fluid-set-boundary    xtlang
  • fluid-set-boundary    xtlang
  • fluid-set-boundary    xtlang
  • fluid-step-cube    xtlang
  • fluid-step-cube    xtlang
  • fluid_advect    xtlang
  • fluid_cube_add_density    xtlang
  • fluid_cube_add_velocity    xtlang
  • fluid_cube_create    xtlang
  • fluid_diffuse    xtlang
  • fluid_fsc    xtlang
  • fluid_ix    xtlang
  • fluid_lin_solve    xtlang
  • fluid_project    xtlang
  • fluid_set_boundary    xtlang
  • get-fluid-cube    xtlang
  • get-fluid-cube-1    xtlang
  • get-fluid-cube-2    xtlang
  • get-scale-stepsize    scheme
  • get_fluid_cube    xtlang
  • glCube    xtlang
  • load_cube_data    xtlang
  • pc:from-steps    scheme
  • pc:melody-by-step    scheme
  • send-fluid-column-osc    xtlang
  • send-fluid-first-column-osc    xtlang
  • send-fluid-first-row-osc    xtlang
  • send-fluid-last-row-osc    xtlang
  • send-fluid-row-osc    xtlang
  • unbind_cube    xtlang
  • unbind_cube    xtlang
  • update-fluid-sym-state    xtlang
  • update_cube    xtlang
  • world_step    xtlang