fluid_project   xtlang


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

Implementation

(bind-func fluid_project
  (lambda (velocx:double* velocy:double* p:double* div:double* iter Ny N)
    (let ((j 0)
          (i 0)
          (jj 0)
          (ii 0))
      (dotimes (j (- Ny 1))
        (dotimes (i (- N 1))
          (pset! div (+ (+ i 1) (* (+ j 1) N))
                 (* -0.5 (/ (+ (- (pref velocx (+ (+ i 2) (* (+ j 1) N)))
                                  (pref velocx (+ i (* (+ j 1) N))))
                               (- (pref velocy (+ (+ i 1) (* (+ j 2) N)))
                                  (pref velocy (+ (+ i 1) (* j N)))))
                            (i64tod N))))
          (pset! p (+ (+ i 1) (* (+ j 1) N)) 0.0)
          1))


Back to Index

Similar Entries

  • cpvproject    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/libchipmunk/cpVect.xtm
  • fill_projection_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/opengl.xtm
  • fill_projection_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fill_projection_matrix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • fluid-advect    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-advect    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-cube-add-density    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-add-density    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-cube-add-velocity    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-add-velocity    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-cube-create    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-create    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-cube-get-column    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-get-first-column    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-get-first-row    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-get-last-column    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-get-last-row    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-get-row    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-set-column    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-set-first-column    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-set-first-row    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-set-last-column    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-set-last-row    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-cube-set-row    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-diffuse    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-diffuse    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-fsc-1    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • fluid-fsc-2    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • fluid-ix    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-ix    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-lin-solve    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-lin-solve    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-project    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-project    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-set-boundary    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-set-boundary    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid-set-boundary    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • fluid-step-cube    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • fluid-step-cube    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • fluid_advect    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_cube_add_density    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_cube_add_velocity    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_cube_create    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_diffuse    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_fsc    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_ix    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_lin_solve    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_set_boundary    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • fluid_step_cube    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • get-fluid-cube    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluid_dynamics.xtm
  • get-fluid-cube-1    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • get-fluid-cube-2    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • get_fluid_cube    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/fluids_2d.xtm
  • send-fluid-column-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-first-column-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-first-row-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-last-row-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • send-fluid-row-osc    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fluid2d.xtm
  • shader_update_projection_texture    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • update-fluid-sym-state    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/kinect_fire.xtm
  • xtm_project    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_projection_texture_load    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_projecton_texture_weight    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm
  • xtm_unproject    xtlang    /digego/extempore/tree/v0.8.9/libs/external/graphics-pipeline.xtm