This is a continuation of this question : Best way to represent sets of 3 values
I want to store the temperature of a substance as a function of time and position. So the temperature changes with location and time. regarding location, I have divided the whole surface of material into i*j small zones, so I can assign a temperature to each zone separately. for example, one should be able to read the temperature of zone[3,5] at time=3 seconds. my goal is, having a collection, consisting of time,i, and j. So I can access the temperature at time = 3.5 seconds in zone [i=4, j=7]. a 3D array doesn't help, because I need to be able to use time as a key like below:
temperature[3.5][4,7]
here 3.5 is the time, 4 is i and 7 is j. How would I do that? And how should I access the temperature data?