Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
26 avr. 2012, 09:31 UTC−4
Hi
you can simply save your comsol model as a MATLAB m.file
In the comsol file menu/ save As model mfile
Hi
you can simply save your comsol model as a MATLAB m.file
In the comsol file menu/ save As model mfile
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
26 avr. 2012, 09:50 UTC−4
hi Mohammad ,
thank so much for your attention . i juste did what you say but when I execute the code in matlab, it doesn't work against in comsol it works very good !!
You can find out how I can solve this problem ?
thank's again
hi Mohammad ,
thank so much for your attention . i juste did what you say but when I execute the code in matlab, it doesn't work against in comsol it works very good !!
You can find out how I can solve this problem ?
thank's again
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
26 avr. 2012, 10:00 UTC−4
Hi
Before executing the code in MATLAB, you should "run comsol with matlab"
go to the start menu/All programs/ comsol/ run comsol with matlab
then, you can run the mfile
Hi
Before executing the code in MATLAB, you should "run comsol with matlab"
go to the start menu/All programs/ comsol/ run comsol with matlab
then, you can run the mfile
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
27 avr. 2012, 15:09 UTC−4
here are the steps:
Step in Comsol:
- save model as .m
Start 'Comsol with Matlab'
Steps in Matlab:
- open the .m
- put first and last lines of the code in comments:
% function out = model
...code...
% out = model;
- at the end of the code, insert lines to extract results, here is an example for heat transfer, see the docs for mpheval:
T = mpheval(model,'T') % temperature
kx = mpheval(model,'ht.kxx') % thermal conductivity in x
- Run your .m (F5) and see the extracted data in the matlab workspace
- The postprocessing world is yours!
here are the steps:
Step in Comsol:
- save model as .m
Start 'Comsol with Matlab'
Steps in Matlab:
- open the .m
- put first and last lines of the code in comments:
% function out = model
...code...
% out = model;
- at the end of the code, insert lines to extract results, here is an example for heat transfer, see the docs for mpheval:
T = mpheval(model,'T') % temperature
kx = mpheval(model,'ht.kxx') % thermal conductivity in x
- Run your .m (F5) and see the extracted data in the matlab workspace
- The postprocessing world is yours!
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
1 juin 2012, 10:20 UTC−4
Thanks.Good Hints.
Thanks.Good Hints.