Quantcast
Channel: COMSOL Forums: Evaluating Global Expressions in MATLAB
Viewing all articles
Browse latest Browse all 14

Evaluating Global Expressions in MATLAB

$
0
0
Hi,

I have set up a series of Global Expressions in my model through the COMSOL GUI. I now solve the model through MATLAB and would like to evaluate the Global expressions.

The problem is I cannot find the function to do this? From the documentation it would seem postglobaleval is my best bet:


>> postglobaleval(femt,'iOut')
??? Error using ==> postglobaleval at 70
Expression must be a cell array.


I have also tried


>> posteval(femt,'iOut')

ans =

p: [3x28840 double]
t: [4x38934 double]
q: [8x0 double]
d: [1x28840 double]
elind: [1x28840 double]


but then I am unsure of where to go from here? I have read this, but it confuses me greatly


The output is post data, a structure with fields p, t, q, d, and elind. The field p contains node point coordinate information. The number of rows in p is the number of space dimensions. The field t contains the indices to columns in p of a simplex mesh (each column in t represents a simplex). The field q contains the indices to columns in p of a quadrilateral mesh, with each column in q representing a quadrilateral. The field d contains data values. The columns in d correspond to node point coordinates in columns in p.


Any assistance would be greatly appreciated.

Regards,
Tom

Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles



Latest Images