Is there a way to display a pdeplot3d in a subplot?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi everyone,
I have used the pde toolbox to calculate the displacements and stresses for a rotor and now I want to save them to a user interface so that I can load the data again and again. Is it possible to display a pdeplot3d in any way in a subplot or is it not so easy with the created model and colorbar?
I am thankful for every feedback, idea.
Kind regards
0 comentarios
Respuestas (1)
Devineni Aslesha
el 22 de Jul. de 2020
Hi Christian_T
You can display a pdeplot3d in a subplot like other 3d plots. I am using example code available in pdeplot3d documentation page to show how you display pdeplot3d in subplot.
model = createpde;
importGeometry(model,'Block.stl');
applyBoundaryCondition(model,'dirichlet','Face',[1:4],'u',0);
specifyCoefficients(model,'m',0,'d',0,'c',1,'a',0,'f',2);
generateMesh(model);
results = solvepde(model)
After running the above code, try the below commands in MATLAB Command window
u = results.NodalSolution;
subplot(2,1,1);pdeplot3D(model,'ColorMapData',u);subplot(2,1,2);pdeplot3D(model,'ColorMapData',u);
Ver también
Categorías
Más información sobre Geometry and Mesh en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!