fluid_cube_add_density   xtlang


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

Implementation

(bind-func fluid_cube_add_density
  (lambda (cube:fluidcube* x y amount:double)
    (let ((N (tref cube 0))
          (idx (+ x (* y N)))
          (density_ptr:double* (tref cube 5))
          (density (pref density_ptr idx)))
                                        ;(printf "idx: %d:%d:%d:%d\n" idx N x y)
      (pset! density_ptr idx (+ density amount))
      (+ density amount))))


Back to Index

Similar Entries

  • Cadd    xtlang
  • CaddR    xtlang
  • Complex_addition_bybuf    xtlang
  • Complex_addition_bybuf    xtlang
  • Vadd    xtlang
  • Widget_type_add_flags    xtlang
  • Windows-add-libdir-to-PATH    scheme
  • _interface_address    xtlang
  • _print_interface_addresses    xtlang
  • add-density    xtlang
  • add-density-1    xtlang
  • add-density-2    xtlang
  • add-density-v    xtlang
  • add-density-xy    xtlang
  • add-head    xtlang
  • add-velocity    xtlang
  • add-velocity-1    xtlang
  • add-velocity-2    xtlang
  • add_density    xtlang
  • add_ref    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_button    xtlang
  • add_the_radio_button    xtlang
  • add_velocity    xtlang
  • add_walker    xtlang
  • addy1    scheme
  • addy2    scheme
  • addy3    scheme
  • bind_cube    xtlang
  • caaddr    scheme
  • cadd    xtlang
  • caddar    scheme
  • cadddr    scheme
  • caddr    scheme
  • cdaddr    scheme
  • cerberus_moog_ladder_inlined    xtlang
  • clean-cube    xtlang
  • cpvadd    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_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
  • fluid_step_cube    xtlang
  • forced-gl-getprocaddress    scheme
  • forced-gl-getprocaddress    scheme
  • get-fluid-cube    xtlang
  • get-fluid-cube-1    xtlang
  • get-fluid-cube-2    xtlang
  • get_fluid_cube    xtlang
  • glCube    xtlang
  • gl_set_proc_address    xtlang
  • gui_add_widget    xtlang
  • gui_add_widget    xtlang
  • impc:aot:add-win-link-library    scheme
  • impc:ti:add-types-to-source    scheme
  • impc:ti:add-types-to-source-atom    scheme
  • interface_address    xtlang
  • load_cube_data    xtlang
  • moog_ladder_inlined    xtlang
  • print_interface_addresses    xtlang
  • psystem-add-particle    xtlang
  • 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
  • sys:interface-address    scheme
  • sys:print-interface-addresses    scheme
  • test_add_blinker    xtlang
  • unbind_cube    xtlang
  • unbind_cube    xtlang
  • update-fluid-sym-state    xtlang
  • update_cube    xtlang
  • world_add_blinker    xtlang
  • xobj_add_class    xtlang
  • xobj_add_method    xtlang
  • xtm_add_arc    xtlang
  • xtm_add_arc    xtlang
  • xtm_add_arc    xtlang
  • xtm_add_arc    xtlang
  • xtm_add_arc    xtlang
  • xtm_add_arcd    xtlang
  • xtm_add_bezier    xtlang
  • xtm_add_bezier    xtlang
  • xtm_add_circle    xtlang
  • xtm_add_circle    xtlang
  • xtm_add_ellipse    xtlang
  • xtm_add_ellipse    xtlang
  • xtm_add_ellipse    xtlang
  • xtm_add_ellipsed    xtlang
  • xtm_add_line    xtlang
  • xtm_add_line    xtlang
  • xtm_add_line    xtlang
  • xtm_add_lined    xtlang
  • xtm_add_poly    xtlang
  • xtm_add_polyd    xtlang
  • xtm_add_quad    xtlang
  • xtm_add_quad    xtlang
  • xtm_add_quad    xtlang
  • xtm_add_quadd    xtlang
  • xtm_add_rect    xtlang
  • xtm_add_rect    xtlang
  • xtm_add_rect    xtlang
  • xtm_add_rectd    xtlang
  • xtm_add_round_rect    xtlang
  • xtm_add_round_rectd    xtlang
  • xtm_add_rounded_rect    xtlang
  • xtm_add_rounded_rect    xtlang
  • xtm_add_rounded_rect_varying    xtlang
  • xtm_add_rounded_rect_varying    xtlang
  • xtm_add_tri    xtlang
  • xtm_add_tri    xtlang
  • xtm_add_tri    xtlang
  • xtm_add_trid    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_addition    xtlang
  • xtm_bone_add_children    xtlang
  • xtm_draw_quadd    xtlang