Understanding 3D Temperature Direction Change with 8 Corner Points

Click For Summary

Discussion Overview

The discussion revolves around calculating the direction of temperature change within a cube defined by eight corner points, using temperature readings at these points. Participants explore methods for interpolating temperature data and determining the gradient or direction of heat flow at a specific point inside the cube.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant describes a method for calculating a tensor T using temperature readings and the positions of the corner points, suggesting the use of eigenvectors and eigenvalues to determine the direction of temperature change.
  • Another participant confirms the formulation of T as a matrix and discusses its properties, indicating that it can yield the temperature at specific points.
  • A different viewpoint suggests that the problem resembles interpolation, proposing that the temperature at a point should match the temperature at the corresponding corner point.
  • One participant speculates about constructing an 8th order scalar polynomial fitting function to model the temperature distribution, which could then be differentiated to find the gradient.
  • Another participant references finite element shape functions, suggesting that a cubic order "brick" element might be applicable to the problem.
  • One participant shares an approach they developed using a simplified 2D version of the problem, indicating that they calculated distances from corners to the point of interest and derived a method for finding the derivative, expressing a desire for a more elegant solution.

Areas of Agreement / Disagreement

Participants express various approaches and hypotheses regarding the calculation of temperature direction change, with no consensus reached on a single method or solution. Multiple competing views remain on the best approach to take.

Contextual Notes

Some participants note the complexity of the problem and the potential for different mathematical formulations, including the use of tensors and polynomial fitting. There are also references to finite element methods, indicating a range of mathematical tools being considered.

sqljunkey
Messages
183
Reaction score
8
So I have a cube in 3d space and this cube is made out of 8 coordinate points at each corner. Now I have a temperature reading at each point of these corner points. Inside the box I have another point, I want to be able to use the information from the 8 points surrounding the the one middle point( the point in the box) to calculate the direction of change of the temperature.

So if this was in one dimension, and at p1 I had 90 degrees and p2 I had 80 degrees and I would get that the change in temperature is -10. telling me that if I go in the direction of p2 my temperature will decrease.

Someone helped me out for the case of 3d, But I don't quite understand it.

if p_1, ..., p_8 are your points and
w_1, ..., w_8 are your weights (or temperatures) and p is
the point in the middle, calculate T := Sum w_i * (p_i - p)
* (p_i - p)^T for 1 <= i <= 8, and then calculate the
eigenvectors v_1, v_2, v_3 and according eigenvalues l_1,
l_2, l_3 of T, and then pick the v_k where abs(l_k) is > 0
and the greatest or smallest of all abs(l_j) [for 1 <= j,k
<= 3]

if the point p in the middle has a temperature (w)
as well, you should to use (w_i - w) instead of w_i of course You could also "normalize" your tensor T by multiplying with
1 / Sum w_i (or 1 / Sum (w_i - w) if you have w), but that
makes no difference for the eigenvectors

Can anybody help me?
 
Physics news on Phys.org
Well, for some value of help.

sqljunkey said:
calculate T := Sum w_i * (p_i - p) * (p_i - p)^T for 1 <= i <= 8,

Is this the equation for ##T##?

## T = \sum_{i=1}^8 w_i(p_i-p)\cdot(p_i-p)##

Ah, I think T is a matrix.
## T = \sum_{i=1}^8 w_i(p_i-p)\otimes(p_i-p)##
 
So to me this looks like an interpolation problem. If you choose the point (vector) ##p=p_j## the procedure should yield ##w = w_j##.
 
Thanks Paul. I think it is a matrix/tensor yes. 3x3. so at P_j i would get a temperature W_j? Which is a scalar. Is it possible to get a direction of the flow of the heat at point P_j? (sorry idk how to use latex)
 
This is just a wild guess but what it looks like some means of building an 8'th order scalar polynomial fitting function, ##T(p,p_1,\cdots,p_8)##, which would have the properties,

##w_j=T(p_j,p_1,\cdots,p_8)##

at each node or vertex. This function could then be differentiated to yield the gradient. I just can't make it out from your writeup.
 
surface.png

Btw, I figured this problem by doing a simple 2D version, instead of a box a square. So in the above case I would figure the distances from the corners of the XY plane to the point I'm interested in on the XY plane. and then I add up these distances. after that I add distance/totalDistance*zCornerCoordinate to get where I am intersecting the plane. It is crude but it seems to work. If I want the derivative I just take a step forword in X on the XY plane and subtract that from the result. I can then extend all of this to the 3D box.

If someone has a more elegant way to do it I would like to hear.
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
30
Views
5K
Replies
1
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K