PDE TOOLBOX: PLOT HEAT FLUX AT 3D NODAL POSITIONS

1 次查看(过去 30 天)
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