Temperature in a specific point with pde thermal

7 ビュー (過去 30 日間)
Giulia Ulpiani
Giulia Ulpiani 2019 年 8 月 30 日
回答済み: Giulia Ulpiani 2019 年 9 月 3 日
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,

採用された回答

Giulia Ulpiani
Giulia Ulpiani 2019 年 9 月 3 日
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.

その他の回答 (1 件)

Ravi Kumar
Ravi Kumar 2019 年 8 月 30 日
Yes! Check out the interpolateTemperature function.

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by