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

# SCM Repository

[diderot] Diff of /branches/charisee/test/E-diffFields.diderot
 [diderot] / branches / charisee / test / E-diffFields.diderot

# Diff of /branches/charisee/test/E-diffFields.diderot

revision 2607, Thu May 1 17:36:16 2014 UTC revision 2608, Fri May 2 18:04:54 2014 UTC
# Line 18  Line 18
18
19  field#1(2)[3] RGB = ctmr  ⊛ load("../data/txf/2d-bow.nrrd");  field#1(2)[3] RGB = ctmr  ⊛ load("../data/txf/2d-bow.nrrd");
20
21    vec2 v2=[4,5];
22
23
24    /*

25  //Fields  //Fields
26
27  field#1(2)[] field2=F2+9;  field#1(2)[] field2=F2+9;
# Line 31  Line 31
32
33
34  /*
35
36  //Fields  //Fields
37
# Line 47  Line 47
48
49
50
52  field#0(2)[2] grad =∇F2;  field#0(2)[2] grad =∇F2;
54  real s=9;  real s=(v2•v2);
55    /*
56  //Laplacian and Div has split problems  //Laplacian and Div has split problems
57  //laplacian 3-d  //laplacian 3-d
58
# Line 80  Line 81
81  field#0(2)[] curl2 =∇×V;  field#0(2)[] curl2 =∇×V;
82  real s=curl2([5,6]);  real s=curl2([5,6]);
*/
84
85
86  //At tthis point need to change statement in strand method  //At tthis point need to change statement in strand method
87  //Jacobian  //Jacobian
88  /*
89  field#0(2)[2,2] jacobian =∇⊗V2;  field#0(2)[2,2] jacobian =∇⊗V2;
90  tensor [2,2] M=jacobian([6,9]);  tensor [2,2] M=jacobian([6,9]);
91    */
92
93  //Hessian of a Scalar Field 2d  //Hessian of a Scalar Field 2d
94
95  field#0(2)[2,2] hess1 =∇⊗∇F7;  field#0(2)[2,2] hess1 =∇⊗∇F7;
96  tensor [2,2] M=hess1([6,9]);  tensor [2,2] M=hess1([6,9]);
97
98    /*
99
100  //Hessian of a Scalar Field 3-d  //Hessian of a Scalar Field 3-d
101
# Line 119  Line 119
119  strand fieldTest (int row)  strand fieldTest (int row)
120  {  {
121  //vec4 M=C*9;  //vec4 M=C*9;