no surf in comsol, is matlab live link a solution?
Afficher commentaires plus anciens
There's a solution u(x,t) in comsol, x and t are spatial and temporal coordinates. There's no
surf
function in comsol. Can matlab live link help plot a surf(x,t,u)?
11 commentaires
Rik
le 5 Déc 2024
Probably, but you would have to get the data out somehow (which is a question for a Comsol forum). After that, the solution shouldn't be that complicated.
feynman feynman
le 5 Déc 2024
Rik
le 5 Déc 2024
I don't know anything about live link. I would start with the documentation. Once it's a Matlab problem I can perhaps help you.
Andreas Goser
le 5 Déc 2024
A different idea. If you execute "ver" in MATLAB and find you have "Partial Differential Equation Toolbox" installed, you might be able to move your complete workflow into MATLAB leveraging PDE Tbx rather than Comsol?
Torsten
le 5 Déc 2024
Is it that important to get a 3d-impression of the results ? Plots that are equivalent to "contourf" in MATLAB are available in COMSOL, and usually I found them more intuitive.
feynman feynman
le 29 Déc 2024
feynman feynman
le 29 Déc 2024
Torsten
le 29 Déc 2024
Thanks for the suggestion but as far as I know contourplots in comsol take spatial coordinates as arguments, not time?
If this is the case, (for me) the easiest way would be to write the results to file from COMSOL and use the data in MATLAB for plotting. Maybe you could use LiveLink, but I don't have experience with it.
feynman feynman
le 29 Déc 2024
Andreas Goser
le 30 Déc 2024
My idea above comes from my experience in my PhD thesis, but this was 25y ago... At that time, the company Comsol developed the PDE Toolbox and I could use both, PDE Toolbox and what was then called Comsol Multiphysics if I recall it correctly. And from my perspective modeling/coding was identical.
feynman feynman
le 31 Déc 2024
Réponses (0)
Catégories
En savoir plus sur Electromagnetics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!