Note: This discussion is about an older version of the COMSOL Multiphysics®software. The information provided may be out of date.
Discussion ClosedThis 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 *)
Posted 2011年7月13日 GMT+2 07:13LiveLink for MATLAB, Results & VisualizationVersion 4.10 Replies
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?
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 2011年7月13日 GMT+2 07:13
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.
