no surf in comsol, is matlab live link a solution?

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 comentarios

Rik
Rik el 5 de Dic. de 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.
I wonder if there's a command in live link Matlab to output solutions at certain x and t.
Rik
Rik el 5 de Dic. de 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.
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
Torsten el 5 de Dic. de 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.
@Andreas Goser Thanks for the suggestion. But does that mean I have to solve the whole physics in Partial Differential Equation Toolbox?
@Torsten Thanks for the suggestion but as far as I know contourplots in comsol take spatial coordinates as arguments, not time?
Torsten
Torsten el 29 de Dic. de 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.
Right. Comsol is not quick responding to questions, that's why I reach out to matlab to see if anyone has experience.
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.
@Andreas Goser now quite different. comsol has a lot of built in modules

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Functions en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Dic. de 2024

Comentada:

el 31 de Dic. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by