Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

extract particle data using mphparticle in parametric sweep simulation

Please login with a confirmed email address before reporting spam

Hi,

I am extracting the postitions and velocities via the livelink to matlab. When I add a parametric sweep for a parameter theta to my model, how do I select this paramter theta using the mphparticle command. The documention doesn't give any hint. Here the code:

pd = mphparticle(model, 'expr', {'qr', 'qphi', 'qz', 'cpt.vr', 'cpt.vphi', 'cpt.vz'}, 'dataonly', 'on');

Somehow I have to pick out one parameter in the Particle 1 (part1) Data set. Any ideas?

Cheers,
Gero Storeck

0 Replies Last Post 2014年2月13日 GMT-5 06:27
COMSOL Moderator

Hello Gero Storeck

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.