Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                Jan 27, 2011, 11:17 a.m. EST                            
                        
                        
                                                    For the first issue I just found a solution finally.
MPHEVAL expects not the "visible" name of the solution dataset, which you can see in the comsol model, e.g. "Solution 1", etc.
You have to right click the "Solution 1" in the model tree and click on properties.
There you can see the "Tag" propertie, which is e.g. "dset1".
This is, what MPHEVAL needs.
'dataset', 'dset1' will be accepted, whereas 'dataset', 'solution 1' will fail.                                                
                                                
                            For the first issue I just found a solution finally.
MPHEVAL expects not the "visible" name of the solution dataset, which you can see in the comsol model, e.g. "Solution 1", etc.
You have to right click the "Solution 1" in the model tree and click on properties.
There you can see the "Tag" propertie, which is e.g. "dset1".
This is, what MPHEVAL needs.
'dataset', 'dset1' will be accepted, whereas 'dataset', 'solution 1' will fail.                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                Feb 17, 2011, 4:00 p.m. EST                            
                        
                        
                                                    Hello Jürgen,
sounds german, I am also a german kraut :)
Your issue sounds similar to mine, and I just found a solution to it.
It really does depend, what you want to evaluate.
mpheval is a strange command. At first I also thought I have to use it for evaluating an physical expression (eg magnetic flux density) on a specified point in my model... wrong.
mpheval evaluates expression on all node points. Therefore you get very much postdata with coordiates of the node points and much more you do not want to know.
If you want to evaluate a Variable or global expression defined in your model you need to use mphglobal command, which is not that complicated.
Example: 
F_Matlab_var = mphglobal(model,'F_comsol_var');  % Evaluation of a variable defined in your comosl model
If you want to do a real pointevaluation, as your are used to do in comsol, you need to use the mphinterp 
command!!!
Example: 
point_coord = [40-0.625,-27]'    % coordinates of point to evaluate -Attention  ' (transposition) --> coords. in column
P_normB = mphinterp(model,'mf.normB','coord',point_coord)  % evaluation of normal Flux density at coords
User guide sometimes i a little cryptic to me but finally it helped. interp just made me think of interpolation, so I didn't gave attention to it. Took me almost a week to find out and unfortunatelly nobody could help in the Forum. I am still even waiting for a comsol support answer.
Hope I could help
Sincerely
Oliver                                                
                                                
                            Hello Jürgen,
sounds german, I am also a german kraut :)
Your issue sounds similar to mine, and I just found a solution to it.
It really does depend, what you want to evaluate.
mpheval is a strange command. At first I also thought I have to use it for evaluating an physical expression (eg magnetic flux density) on a specified point in my model... wrong.
mpheval evaluates expression on all node points. Therefore you get very much postdata with coordiates of the node points and much more you do not want to know.
If you want to evaluate a Variable or global expression defined in your model you need to use mphglobal command, which is not that complicated.
Example: 
F_Matlab_var = mphglobal(model,'F_comsol_var');  % Evaluation of a variable defined in your comosl model
If you want to do a real pointevaluation, as your are used to do in comsol, you need to use the mphinterp 
command!!!
Example: 
point_coord = [40-0.625,-27]'    % coordinates of point to evaluate -Attention  ' (transposition) --> coords. in column
P_normB = mphinterp(model,'mf.normB','coord',point_coord)  % evaluation of normal Flux density at coords
User guide sometimes i a little cryptic to me but finally it helped. interp just made me think of interpolation, so I didn't gave attention to it. Took me almost a week to find out and unfortunatelly nobody could help in the Forum. I am still even waiting for a comsol support answer.
Hope I could help
Sincerely
Oliver                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                Feb 21, 2011, 2:46 a.m. EST                            
                        
                        
                                                    Hi Oliver,
thanks for your reply.
I will try the things you suggested!
It sounds promising, maybe it is less memory consuming than mpheval.
Best regards,
Juergen
                                                
                                                
                            Hi Oliver,
thanks for your reply.
I will try the things you suggested!
It sounds promising, maybe it is less memory consuming than mpheval.
Best regards,
Juergen
                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                Dec 10, 2013, 5:39 p.m. EST                            
                        
                        
                                                    I was trying to figure out how to deal with this myself...
Incase someone finds this thread before they find what they're looking for in the LiveLink Help Manual. I'm going to suggest you look at the help manual, for the command: mphsolutioninfo
Also instead of navigating the trees that this command creates, it may be simpler to just export the data.
The trees that can be read with mphsolutioninfo will most likely provide you with the proper tags necessary.
                                                
                                                
                            I was trying to figure out how to deal with this myself...
Incase someone finds this thread before they find what they're looking for in the LiveLink Help Manual. I'm going to suggest you look at the help manual, for the command: mphsolutioninfo
Also instead of navigating the trees that this command creates, it may be simpler to just export the data.
The trees that can be read with mphsolutioninfo will most likely provide you with the proper tags necessary.
                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                Aug 6, 2015, 4:39 p.m. EDT                            
                        
                        
                                                    Hi everyone,
taking into account you are talking about "mpheval" function, I would like to know if someone know how to set the number of decimals of the output data.
Thanks in advance
Catalina                                                 
                                                
                            Hi everyone,
taking into account you are talking about "mpheval" function, I would like to know if someone know how to set the number of decimals of the output data.
Thanks in advance
Catalina