PDE TOOLBOX: PLOT HEAT FLUX AT 3D NODAL POSITIONS
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on Heat Transfer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!