PDE TOOLBOX: PLOT HEAT FLUX AT 3D NODAL POSITIONS

조회 수: 1 (최근 30일)
Giulia Ulpiani
Giulia Ulpiani 2020년 4월 9일
답변: Giulia Ulpiani 2020년 4월 10일
Dear Matlab community,
I am trying to plot the heat flux data on a 3d geometry. I am using the pde matlab toolbox, specifically the thermalmodel suite.
Here is my code in a nutshell:
thermalmodel = createpde('thermal','transient');
importGeometry(thermalmodel,'sink.stl');
THEN I SET MESH, BCS, ICS AND THE SOLVE. SOLUTION IS RIGHT
thermalsink = solve(thermalmodel,tlist);
PLOT OF TEMPERATURES IS RIGHT BUT WHEN I TRY TO PLOT THE HEAT FLUX:
figure
[qx,qy,qz] = evaluateHeatFlux(thermalsink);
pdeplot3D(thermalmodel,'FlowData',[qx qy qz]);
I GET THIS ERROR:
Error using pdeplot3D (line 243)
Length of flowdata must be 3*number of points
I followed what is written in many worked examples, but it seems not to work. I guess there is some reshaping needed, although this wasn't apparently needed in the worked examples that can be found on the Internet. Can you help me?
Many thanks

채택된 답변

Giulia Ulpiani
Giulia Ulpiani 2020년 4월 10일
Got the answer by myself.
I didn't consider it was a transient solution and I had to isolate the time step I wished to display. Thanks anyway

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by