A square plate divided in 100 squares or nodes by a grid. the temperature of the nodes form a two-dimensional array T[j] .the temperature in all nodes at the edge of the plate is constrained to be 20*C by a cooling system, and the temperature and the temperature of the node[3][8] is fixed at 100*C by exposure to boiling water, i.e., T[3][8]=100. A new estimate of the temperature T[j] in any given node can be calculated from the average of the temperatures in all segments surrounding it; T[j]=(T[i+1][j] + T[j+1] + T[j-1])/4.0
initial temperature assumption in each node is 20*C. find the steady-temperature at[5][5].
beginnerprogram 0
Newbie Poster
Recommended Answers
Jump to PostAnd? Do you have a question? Or are we supposed to write it for you?
Jump to PostThe thing that is giving me trouble is how to structure my array. I don't understand how to set up the array when I am trying to find the values within the array itself.
You put values into the array and look through the array to find values.
All 6 Replies
WaltP 2,905
Posting Sage w/ dash of thyme Team Colleague
beginnerprogram 0
Newbie Poster
WaltP 2,905
Posting Sage w/ dash of thyme Team Colleague
nezachem 616
Practically a Posting Shark
beginnerprogram 0
Newbie Poster
nezachem 616
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.