13 | | The data set will consist of a grid of cells. The index array for the grid will dimensioned to the number of cells. The data set will also consist of a collection of nodes, defined by their spatial location. The data set will also contain a collection of edges. Edges are defined by two nodes. Edges must have a direction associated with them, so it is necessary to define an edge independent of the two different cells which it may be part of. |
| 13 | The data set will consist of a grid of cells. The index array for the grid will dimensioned to the number of cells. The data set will also consist of a collection of nodes, defined by their spatial location. The data set will also contain a collection of edges. Edges are defined by two nodes. Edges must have a direction associated with them, so it is necessary to define an edge independent of the two different cells which it may be part of. So, grid(icell,:) provides the indices to all the other data: |
| 14 | * grid(icell, :) = [ 4 5 8 2 3 4 10 ] |
| 15 | * The triangle is defined by lon([4 5 8]), lat([4 5 8]) |
| 16 | * The face or area average temperature is at: temp(2) |
| 17 | * The Heat flux to the inside of the triangle is given by the sum( Ftemp([3 4 10]).*length_edge([3 4 10]) ) with something clever done to get the sign of the inside to outside of the triangle correct. That info is in there, but more later.....(sorry) |