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.

retrieve efficiently all parameters/variables with mpheval (use of wildcard *)

Please login with a confirmed email address before reporting spam

Hi all,

In Matlab, is there an efficient way to retrieve all the parameters that Comsol has calculated? For example, it would be very nice if we could type

ht = mpheval(model,'ht.*')

in order to save all the heat transfer output (fluxes, thermal conductivities, etc.) in the structure ht.



It's very painful to type

ht = mpheval(model,{'ht.kxx','ht.kyx',............the list is soooooooooooo long.................})

for each physics.



Same question for the lists of parameters/variables in Global Definitions and Model\Definitions...



Is there a way to save EVERYTHING (solution of variables, parameters, variables, etc.) in a Matlab structure with the help of a brief command??



The use of wildcard * is not yet implemented in the Matlab LiveLink?







0 Replies Last Post 13.07.2011, 01:13 GMT-4
COMSOL Moderator

Hello Francois Gregoire

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.