Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Time plot of a parameter for a specific point in 2D

Konstantinos Serafeimidis

Please login with a confirmed email address before reporting spam

Hello,

I have a 2d model with advection and diffusion and would like to know how i can plot the development of the concentration for example of a specific point as a function of time. Comsol 4.0 seems sometimes to be very complicated even for easy things like this..

Best regards and thank you in advance

Kostas

9 Replies Last Post Sep 4, 2012, 4:36 p.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 21, 2010, 4:06 a.m. EDT
Hi
I would not say complicated, but rather very rich and therefore one need to identify how, and ther are many "how to".

Have you realised that ?
- you can select a "Results - Data set - Solution" node and work on it as reducing by an add selection,
- or you can add functions or operators=evaluation to "Results - Data Set" also on subset.

Then you can call a plot linked to these operators acting on part of your solution

--
Good luck
Ivar
Hi I would not say complicated, but rather very rich and therefore one need to identify how, and ther are many "how to". Have you realised that ? - you can select a "Results - Data set - Solution" node and work on it as reducing by an add selection, - or you can add functions or operators=evaluation to "Results - Data Set" also on subset. Then you can call a plot linked to these operators acting on part of your solution -- Good luck Ivar

Konstantinos Serafeimidis

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 21, 2010, 8:58 a.m. EDT
Hello Ivar

Thank you very much for your answer.

Best regards

Kostas
Hello Ivar Thank you very much for your answer. Best regards Kostas

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 21, 2010, 10:39 a.m. EDT
Hello,

To complement Ivar's reply, I think the easiest and most elegant way is to define a Domain Point Probe (under Model>Defintions, right-click and select Probes>Domain Point Probe). You can then specify an arbitrary point in the geometry with graphical feedback and also the expression or variable to plot (in a Point Probe Expression subnode). Then, when computing the time-dependent solution, COMSOL displays a graph of the values of this expression or variable at that location in "real time" as the simulation progresses and also creates a plot group and a results table so that both numerical results and a graph are available for further analysis. There are also several other probe types that you can explore.

Best regards,

Magnus Ringh
COMSOL
Hello, To complement Ivar's reply, I think the easiest and most elegant way is to define a Domain Point Probe (under Model>Defintions, right-click and select Probes>Domain Point Probe). You can then specify an arbitrary point in the geometry with graphical feedback and also the expression or variable to plot (in a Point Probe Expression subnode). Then, when computing the time-dependent solution, COMSOL displays a graph of the values of this expression or variable at that location in "real time" as the simulation progresses and also creates a plot group and a results table so that both numerical results and a graph are available for further analysis. There are also several other probe types that you can explore. Best regards, Magnus Ringh COMSOL

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 21, 2010, 12:16 p.m. EDT

Hello,

To complement Ivar's reply, I think the easiest and most elegant way is to define a Domain Point Probe (under Model>Defintions, right-click and select Probes>Domain Point Probe). You can then specify an arbitrary point in the geometry with graphical feedback and also the expression or variable to plot (in a Point Probe Expression subnode). Then, when computing the time-dependent solution, COMSOL displays a graph of the values of this expression or variable at that location in "real time" as the simulation progresses and also creates a plot group and a results table so that both numerical results and a graph are available for further analysis. There are also several other probe types that you can explore.

Best regards,

Magnus Ringh
COMSOL


and how can we have several probe plots in different windows (tabs) and not all in one table/tab?
[QUOTE] Hello, To complement Ivar's reply, I think the easiest and most elegant way is to define a Domain Point Probe (under Model>Defintions, right-click and select Probes>Domain Point Probe). You can then specify an arbitrary point in the geometry with graphical feedback and also the expression or variable to plot (in a Point Probe Expression subnode). Then, when computing the time-dependent solution, COMSOL displays a graph of the values of this expression or variable at that location in "real time" as the simulation progresses and also creates a plot group and a results table so that both numerical results and a graph are available for further analysis. There are also several other probe types that you can explore. Best regards, Magnus Ringh COMSOL [/QUOTE] and how can we have several probe plots in different windows (tabs) and not all in one table/tab?

Ruud Borger COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 21, 2010, 2:19 p.m. EDT


and how can we have several probe plots in different windows (tabs) and not all in one table/tab?


Hello Danial,

By right clicking on the "Results" node, then selecting "1D Plot group". Then go to the new 1D plot Group by left-clicking it, and select the probe you want to see in the "Settings" window. Then right click the 1D plot group and add a point-Graph and you'll have your probe plot in a separate graph.

If you wish to evaluate the tabled-results in separate tables, then open the "Derived values" menu in the Results node by left-clicking the plus in front of it. Right-click the probe you want to see, choose "Evaluate => New table" and you're done !

Best regards,

Ruud Borger,
Comsol
[QUOTE] and how can we have several probe plots in different windows (tabs) and not all in one table/tab? [/QUOTE] Hello Danial, By right clicking on the "Results" node, then selecting "1D Plot group". Then go to the new 1D plot Group by left-clicking it, and select the probe you want to see in the "Settings" window. Then right click the 1D plot group and add a point-Graph and you'll have your probe plot in a separate graph. If you wish to evaluate the tabled-results in separate tables, then open the "Derived values" menu in the Results node by left-clicking the plus in front of it. Right-click the probe you want to see, choose "Evaluate => New table" and you're done ! Best regards, Ruud Borger, Comsol

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 22, 2010, 3:02 a.m. EDT
Hi Danial

that is a good suggestion (I have already asked Comsol to consider this for next release, so I hope it will come :)

I would prefer to see the "new plot option" as a tick mnark in the Probe plot definition window.

--
Good luck
Ivar
Hi Danial that is a good suggestion (I have already asked Comsol to consider this for next release, so I hope it will come :) I would prefer to see the "new plot option" as a tick mnark in the Probe plot definition window. -- Good luck Ivar

Konstantinos Serafeimidis

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 22, 2010, 4:42 a.m. EDT
Thank you all very much for the intresting comments

Kostas
Thank you all very much for the intresting comments Kostas

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jul 27, 2012, 7:37 a.m. EDT
hello,

can you please tell me how to select a domain probe point in 3D. It worked in 2D model though, but when i am trying to do it the same way as i did for 2D model, its showing an error at that point.

Thanks in advance.

hello, can you please tell me how to select a domain probe point in 3D. It worked in 2D model though, but when i am trying to do it the same way as i did for 2D model, its showing an error at that point. Thanks in advance.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 4, 2012, 4:36 p.m. EDT
Hello Magnus,

In response to your Point Probe suggestion, I did try this method and as you mentioned, I could see the real time signal changes as the simulation progressed.
When I export this probe plot in the form of a spreadsheet, I have a huge set of data placed irregularly in time. On the other hand if I go through Derived values --> Boundary probe --> Evaluate in New table, I get exactly the values separated in time as mentioned by me in the Time range of the Time Dependent Study.
The file obtained in the former case is much larger than the latter one. I'm assuming COMSOL takes a longer time in simulation since it produces this large chunk of data very close in time. Is there a way to run the simulation strictly at intervals mentioned in the Step tab of time range using Probe so that only those data values are available for analysis?

I'm not sure if I'm clear enough here but I need to be able to reduce the simulation time, still be able to use Probe analysis, and be able to export data at exact intervals of time.

Your inputs will certainly help.
Thanks.

Sneha


Hello Magnus, In response to your Point Probe suggestion, I did try this method and as you mentioned, I could see the real time signal changes as the simulation progressed. When I export this probe plot in the form of a spreadsheet, I have a huge set of data placed irregularly in time. On the other hand if I go through Derived values --> Boundary probe --> Evaluate in New table, I get exactly the values separated in time as mentioned by me in the Time range of the Time Dependent Study. The file obtained in the former case is much larger than the latter one. I'm assuming COMSOL takes a longer time in simulation since it produces this large chunk of data very close in time. Is there a way to run the simulation strictly at intervals mentioned in the Step tab of time range using Probe so that only those data values are available for analysis? I'm not sure if I'm clear enough here but I need to be able to reduce the simulation time, still be able to use Probe analysis, and be able to export data at exact intervals of time. Your inputs will certainly help. Thanks. Sneha

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.