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.

COMSOL with Matlab syntaxis (plotting and extraction datas while optimization solving)

Please login with a confirmed email address before reporting spam

hello.

I'm trying to make belows these days.
First, I've opened a 'Topology Optimization of a Loaded Knee Structure' from the model library that is aleady exist. And I clicked 'reset history' then saved as model M-file to extraction. I turn off the COMSOL and run COMSOL with Matlab for using the M-file what I extracted.
Now I can do some implement on COMSOL with Matlab except COMSOL Multiphysics. But I couldn't use so many commanders freely still. Of course nowdays I'm studying through pdf files which are 'COMSOL Java API Reference Guide' and 'Live Link For MATLAB Users Guide', etc.

my questions:

<1> How do I plot while solving on COMSOL with Matlab?
--> I can only do optimal plotting (just single picture) when entire loops or iterations end. (by using the 'mphplot' syntax)
--> I saw some syntaxis 'PlotWhileSolving' or just 'Plot' which are marked on pdf files, but it hadn't possible.
--> I want to plot while solving on not COMSOL Multiphysic but COMSOL with Matlab, I mean using the Matlab 'figure' or 'window'.

<2> I want to extract datas that are objective function, design variables and sensitivity vlause... something that... each iteration on COMSOL with Matlab. could you teach me a class or structure syntax?


I'll wait good news. (I attached all files)
Best Regards.


1 Reply Last Post Nov 26, 2013, 4:56 a.m. EST
COMSOL Moderator

Hello Kee Seung Oh

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 Nov 26, 2013, 4:56 a.m. EST
Hi there.

Did you find a method to extract the iterative results?

I'm currently looking for ways to do exactly this. Up until know I have needed only to extract the accumulated table _after_ the optimisation process where done. However extracting the results on a iterative/stepwise manner does not seem to be quite as easy, if possible at all.

--
Best Regards
Joakim
Hi there. Did you find a method to extract the iterative results? I'm currently looking for ways to do exactly this. Up until know I have needed only to extract the accumulated table _after_ the optimisation process where done. However extracting the results on a iterative/stepwise manner does not seem to be quite as easy, if possible at all. -- Best Regards Joakim

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.