From: Walter Roberson on 28 Jul 2010 17:09 Harsh Dhingra wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <i2q4l0$49d$2(a)canopus.cc.umanitoba.ca>... >> Harsh Dhingra wrote: >> > I had a 3D FEM model in COMSOL which I ran from Matlab to get a 3D > >> plot. I took one surface of the model and plotted it separately, from >> > which I was trying to extract data. It is a colormap. >> >> What plotting command did you use for the object you want to extract >> data from? > I used postcrossplot to plot the surface, eg below: > postcrossplot(xfem,2,[1], ... > 'surfdata',{'c','unit','mol/m^3'}, ... > 'cont','internal', ... > 'surfmap','Rainbow', ... > 'title','Concentration, c [mol/m^3]', ... > 'axislabel',{'s1','s2'}, ... > 'refine','auto', ... > 'geomnum',3); Sorry, postcrossplot() is part of COMSOL, not part of Matlab. I gather that the result of it is a non-trivial structure that a lot of people find confusing, but I'm having difficulty finding reference material about it. The COMSOL routine that people refer to most often for extracting data after a postcrossplot seems to be postinterp .
From: Harsh Dhingra on 28 Jul 2010 17:30
Walter Roberson <roberson(a)hushmail.com> wrote in message <i2q6h2$77t$1(a)canopus.cc.umanitoba.ca>... > Harsh Dhingra wrote: > > Walter Roberson <roberson(a)hushmail.com> wrote in message > > <i2q4l0$49d$2(a)canopus.cc.umanitoba.ca>... > >> Harsh Dhingra wrote: > >> > I had a 3D FEM model in COMSOL which I ran from Matlab to get a 3D > > >> plot. I took one surface of the model and plotted it separately, from > >> > which I was trying to extract data. It is a colormap. > >> > >> What plotting command did you use for the object you want to extract > >> data from? > > I used postcrossplot to plot the surface, eg below: > > postcrossplot(xfem,2,[1], ... > > 'surfdata',{'c','unit','mol/m^3'}, ... > > 'cont','internal', ... > > 'surfmap','Rainbow', ... > > 'title','Concentration, c [mol/m^3]', ... > > 'axislabel',{'s1','s2'}, ... > > 'refine','auto', ... > > 'geomnum',3); > > Sorry, postcrossplot() is part of COMSOL, not part of Matlab. I gather that > the result of it is a non-trivial structure that a lot of people find > confusing, but I'm having difficulty finding reference material about it. > > The COMSOL routine that people refer to most often for extracting data after a > postcrossplot seems to be postinterp . For 2D line plots, im able to use postinterp after using postcrossplot, but for surface plots it seems to be a bit confusing..will post this in COMSOL forum. Thanks.. |