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.

Matlab LiveLink - Get Max VanMises Stress

Please login with a confirmed email address before reporting spam

Hi,
i'm working on an optimisation using a genetic algorithm (matlab) for model generation and comsol multiphysics for solving the fe model (Solid Mechanic with prescribed displacement).

I know how to get solution results at specific coordinates using the command "mphinterp" in matlab. But in this case i want to minimise the maximum value of vanMises Stress in the model. Any ideas how to get this information (Maximum vanMises stress) in matlab (LiveLink)?

I already found out, that there is a way using mpheval which returns a vector with values for all nodes in the model. This vector can be analysed in matlab.

But i hope, there is a more efficient way to ge the maximum of a requested variable directly.

Thanks for your help

Martin

2 Replies Last Post Mar 20, 2014, 1:12 p.m. EDT
Lorant Olasz COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 13, 2014, 11:56 a.m. EDT
Hi Martin,
In case you have not already found it, adding a Probe (found under Definitions) to the model would be able to get you the maximum value.
Best,
Lorant
Hi Martin, In case you have not already found it, adding a Probe (found under Definitions) to the model would be able to get you the maximum value. Best, Lorant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 20, 2014, 1:12 p.m. EDT
Hi Lorant,
thanks for your reply. I already got this problem solved using the mpheval command and an effective matlab algorithm for picking out relevant stresses (in the meantime it turned out, that the max VanMises stress isn't the only value i need).
Hi Lorant, thanks for your reply. I already got this problem solved using the mpheval command and an effective matlab algorithm for picking out relevant stresses (in the meantime it turned out, that the max VanMises stress isn't the only value i need).

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.