Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/charisee/test/EIN/derivsV3.diderot
ViewVC logotype

View of /branches/charisee/test/EIN/derivsV3.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2855 - (download) (annotate)
Mon Dec 15 20:26:17 2014 UTC (6 years, 4 months ago) by cchiw
File size: 764 byte(s)
added examples

int imgSizeX = 16;
int imgSizeY = 16;
int imgSizeZ = 16;

field#2(3)[3] F= load("../../data/const-curl3d.nrrd") ⊛ bspln3;

strand CURL (int xi, int yi, int zi) {
	real xx = lerp(2.00, 17.0, 0.0, real(xi), real(imgSizeX)-1.0);
	real yy = lerp(2.00, 17.0, 0.0, real(yi), real(imgSizeY)-1.0);
	real zz = lerp(2.00, 17.0, 0.0, real(zi), real(imgSizeZ)-1.0);
	vec3 pos = [xx,yy,zz];
    /*    output vec3 r=F(pos);
        output vec3 v3= ∇×F(pos);//curl
          output real r=∇•F(pos);//div
       output tensor[3,3,3] r=∇⊗∇⊗F(pos);  //hessian
       */
         output tensor[3,3] r=∇⊗F(pos);//jacobian
        

       update {
       	    

	      	  stabilize;
		  }
}

initially [ CURL(xi, yi, zi) | zi in 0..1, yi in 0..1, xi in 0..1 ];

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0