Hello Mark Roy
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
22 nov 2010, 07:37 GMT-5
did you get it?
did you get it?
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
22 nov 2010, 15:21 GMT-5
Hi
when you have several solutions (parametric sweep ,eigenfrequency, time dependent, then you must use the "solnum" to access them in order, check also the with() and at() operators (or whatever they are now clled in V4.
Sorry cannot tell more, I havent really had time to use Livelink yet, the new features of V4 have allowed me so long to survive well without matlab ;)
--
Good luck
Ivar
Hi
when you have several solutions (parametric sweep ,eigenfrequency, time dependent, then you must use the "solnum" to access them in order, check also the with() and at() operators (or whatever they are now clled in V4.
Sorry cannot tell more, I havent really had time to use Livelink yet, the new features of V4 have allowed me so long to survive well without matlab ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
22 nov 2010, 19:48 GMT-5
After setting up and running an eigenfrequency simulation, I figured out that you can use mpheval to get the value from the dataset.
ie:
model.sol.create('sol2');
... setup solution features for eigenfrequency, number of steps, tolerance, etc...
model.sol('sol2').attach('std2');
model.result.create('pg2', 2);
model.result('pg2').set('data', 'dset2');
model.result('pg2').feature.create('surf1','Surface');
model.sol('sol2').runAll;
model.result('pg2').run;
eval = mpheval(model,'smpn.freq','Dataset','dset2','edim',0,selection',1);
eigenfreq = eval.d1;
Thats basically what I've done and it seems to work. The reason everything is number 2 is because I also have another solution for steady state response.
Hope that helps.
After setting up and running an eigenfrequency simulation, I figured out that you can use mpheval to get the value from the dataset.
ie:
model.sol.create('sol2');
... setup solution features for eigenfrequency, number of steps, tolerance, etc...
model.sol('sol2').attach('std2');
model.result.create('pg2', 2);
model.result('pg2').set('data', 'dset2');
model.result('pg2').feature.create('surf1','Surface');
model.sol('sol2').runAll;
model.result('pg2').run;
eval = mpheval(model,'smpn.freq','Dataset','dset2','edim',0,selection',1);
eigenfreq = eval.d1;
Thats basically what I've done and it seems to work. The reason everything is number 2 is because I also have another solution for steady state response.
Hope that helps.
Please login with a confirmed email address before reporting spam
Posted:
10 years ago
3 apr 2015, 23:10 GMT-4
Hi,
I'm facing a similar problem: I'm performing a simple eigenfrequency study of a cable, repeating it for several values of a particular parameter involved. I do this by programing a loop in Matlab Livelink.
I'am interested in the first three eigenfrquencies, so I need to store them for each value of the parameter simulated. I couldn't manage to get those values into Matlab.
I would really appreciate your help.
Thank you in advance.
Bruno.
Hi,
I'm facing a similar problem: I'm performing a simple eigenfrequency study of a cable, repeating it for several values of a particular parameter involved. I do this by programing a loop in Matlab Livelink.
I'am interested in the first three eigenfrquencies, so I need to store them for each value of the parameter simulated. I couldn't manage to get those values into Matlab.
I would really appreciate your help.
Thank you in advance.
Bruno.