Discussion Forum

Getting the same data as postcrossplot uses to plot?

Topics: no topics

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   3 Replies   Last post: March 8, 2010 6:05pm UTC
Masoud Ansari

Masoud Ansari

February 11, 2010 6:49pm UTC

Getting the same data as postcrossplot uses to plot?

Hi!

When I use GUI windows in COMSOL through Domain Plot Parameter tab, I can plot an expression like Von Mises stress. Then buy using "Export Current Plot", on top of that figure, I can export all the data points to my hard drive or MATLAB. As you know these data points are not located on Nodes and the number of data points here is relatively smaller than the number of nodes.

In my work, this fact helps that I have less number of data points. So now I am looking for a command that I can use in my m-file that gets this type of data for me without plotting that expression. See I do not use GUI COMSOL and all my work is being done in MATLAB via m-file. I already know that posteval gives the value of an expression on all nodes, but this is not suitable for me.

I will greatly appreciate it if you could guide me and introduce a suitable command to me.

Thanks,
Masoud

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Julien LAUNAY

Julien LAUNAY

March 8, 2010 10:33am UTC in response to Masoud Ansari

Re: Getting the same data as postcrossplot uses to plot?

Hi,

Did you find a solution ?
Il have the same problem ...

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar K

Ivar K
Moderator

March 8, 2010 12:34pm UTC in response to Julien LAUNAY

Re: Getting the same data as postcrossplot uses to plot?

Hi

Isn't it the functionality of "postinterp" (in contrary to "posteval") that you are looking for ?

Try a search with these function names on your doc files and on the Forum

and dump your model as a ".m" file, or just analyse your "history" file for examples of the function calls

Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Masoud Ansari

Masoud Ansari

March 8, 2010 6:05pm UTC in response to Ivar K

Re: Getting the same data as postcrossplot uses to plot?

Hi!

Ivar is right. I used "postinterp".

Good luck,
Masoud

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines