MATLAB Answers

Temperature in a specific point with pde thermal

9 views (last 30 days)
Dear community,
I am using the pde toolkit (thermal) to solve a transient problem on a 3d geometry. My will is to extract the temperature at a specific point (X;Y;Z) or at the closest node to that point for each time step.
Is this possible?
Thank you,

  0 Comments

Sign in to comment.

Accepted Answer

Giulia Ulpiani
Giulia Ulpiani on 3 Sep 2019
Thank you for your answers.
Actually I solved with:
getClosestNode = @(p,x,y,z) min((p(1,:) - x).^2 + (p(2,:) - y).^2+ (p(2,:) - z).^2);
[~,nid] = getClosestNode( msh.Nodes, 0, 0, 4e-5 );
Tsmaend=T(nid,end)+273.15;
Hope this helps.

  0 Comments

Sign in to comment.

More Answers (1)

Ravi Kumar
Ravi Kumar on 30 Aug 2019
Yes! Check out the interpolateTemperature function.

  0 Comments

Sign in to comment.

Sign in to answer this question.