Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                6 mai 2011, 11:28 UTC−4                            
                        
                        
                                                    your questions are:
==================
a) how can i control or use this model in matlab?
b) can i do a parametric sweep using matlab?
c) can i see somhow the results make plots of it?
d) how can i see my results? in matlab? in comsol?
e) can i change the geometry in matlab and see the change in comsol?
f) i really would like to be guided or helped or read from a nice guide document
===================
I'm not sure anyone here will explain in details how to do such things, because you should learn it by making simple examples on your own, and read the Users Guide. however, I'll give you some tips that will help you: 
Open "Matlab with COMSOL41" and also open another "COMSOL41" (not with matlab). When you run a script in MATLAB livelink, you can see the resulting model in the independent COMSOL41 window in File->import model, etc.... Then you can see if everything is ok when you make some change in your Matlab script file.
answer to your questions:
a) Save your model in COMSOL as a matlab file. Then open this file with a "Matlab with COMSOL41" session. You will be able to find how the model is set and you can make your own change there.
b) Add a parametric sweep node in your COMSOL file, save your file as a Matlab file and look at the new code that has been generated compared to the previous script without parametric sweep.
c) look in the userguide about  the matlab function "mphplot"
d) same answer
e) run your new script file (with the new geometry) and then import it in an independant COMSOL41 session (as explained above)
f) User Guide, open "Help" in COMSOL 4.1
I hope it will help you
----------------
Frank                                                
                                                
                            your questions are:
==================
a) how can i control or use this model in matlab?
b) can i do a parametric sweep using matlab?
c) can i see somhow the results make plots of it?
d) how can i see my results? in matlab? in comsol?
e) can i change the geometry in matlab and see the change in comsol?
f) i really would like to be guided or helped or read from a nice guide document
===================
I'm not sure anyone here will explain in details how to do such things, because you should learn it by making simple examples on your own, and read the Users Guide. however, I'll give you some tips that will help you: 
Open "Matlab with COMSOL41" and also open another "COMSOL41" (not with matlab). When you run a script in MATLAB livelink, you can see the resulting model in the independent COMSOL41 window in File->import model, etc.... Then you can see if everything is ok when you make some change in your Matlab script file.
answer to your questions:
a) Save your model in COMSOL as a matlab file. Then open this file with a "Matlab with COMSOL41" session. You will be able to find how the model is set and you can make your own change there.
b) Add a parametric sweep node in your COMSOL file, save your file as a Matlab file and look at the new code that has been generated compared to the previous script without parametric sweep.
c) look in the userguide about  the matlab function "mphplot"
d) same answer
e) run your new script file (with the new geometry) and then import it in an independant COMSOL41 session (as explained above)
f) User Guide, open "Help" in COMSOL 4.1
I hope it will help you
----------------
Frank                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                6 mai 2011, 14:23 UTC−4                            
                        
                        
                                                    thank you very much 
you are very clear and this is the kind of help i'm looking
i'll do what you said and come back latter with my inputs thanks alot
and a small question forward;
 if i use param.txt file with parametes in my comsol model 
so when i use matlab should i just save the model
 as model.m file or i should put
 param.txt in the same folder with my model.m file
in matlab
and is there a possibly to receive a help from you in some other comunicational way like skype or chat?
mine skype arye.nuelman
Best regards,
Arye
                                                
                                                
                            thank you very much 
you are very clear and this is the kind of help i'm looking
i'll do what you said and come back latter with my inputs thanks alot
and a small question forward;
 if i use param.txt file with parametes in my comsol model 
so when i use matlab should i just save the model
 as model.m file or i should put
 param.txt in the same folder with my model.m file
in matlab
and is there a possibly to receive a help from you in some other comunicational way like skype or chat?
mine skype arye.nuelman
Best regards,
Arye
                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                7 mai 2011, 14:21 UTC−4                            
                        
                        
                                                    thanks Frank your advice so helped me
thank you thank you
i have a lot of sucses with my model in matlab 
:-))))
now my question is:
if it is possible to run my model as like it was a function
attached
for I.e the picture show i have a for in my model
but i want the for to be outside the model and to run the model 
as if it is a function that the for is calling for it 
Best regards,
Arye                                                
                                                
                            thanks Frank your advice so helped me
thank you thank you
i have a lot of sucses with my model in matlab 
:-))))
now my question is:
if it is possible to run my model as like it was a function
attached
for I.e the picture show i have a for in my model
but i want the for to be outside the model and to run the model 
as if it is a function that the for is calling for it 
Best regards,
Arye                        
                                                
                        
                                                
                                                                                                            
                                             
                                            
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                5 sept. 2011, 06:08 UTC−4                            
                        
                        
                                                    Hi arye
I am working with same problem as you have. i have exported my mph file as model using 'mphload' and i am trying to run the model in a loop. the purpose is to run the model with varying parameters. but i am not able to save the results as it saves only the last sol. 
it would be nice if someone could post a simple example on that
thanks
                                                
                                                
                            Hi arye
I am working with same problem as you have. i have exported my mph file as model using 'mphload' and i am trying to run the model in a loop. the purpose is to run the model with varying parameters. but i am not able to save the results as it saves only the last sol. 
it would be nice if someone could post a simple example on that
thanks
                        
                                                
                                                                                                            
                                             
                        
                        
                                                
    
        Please login with a confirmed email address before reporting spam
     
    
 
                                                Posted:
                            
                                1 decade ago                            
                            
                                29 sept. 2011, 19:51 UTC−4                            
                        
                        
                                                    There are detailed examples of models in Matlab, including models run in loops, in the LiveLink for Matlab Users Guide (pdf). I believe that is why no one is bothering to answer you on the forums. 
Check out page 35 for running models in loops. Hope this helps, I am a COMSOL noob myself.                                                
                                                
                            There are detailed examples of models in Matlab, including models run in loops, in the LiveLink for Matlab Users Guide (pdf). I believe that is why no one is bothering to answer you on the forums. 
Check out page 35 for running models in loops. Hope this helps, I am a COMSOL noob myself.