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 4.1 plotting error message: "mphplot at 154"
Posted Jan 28, 2011, 3:52 a.m. EST Version 4.0, Version 4.0a, Version 4.1 5 Replies
Please login with a confirmed email address before reporting spam
Hello, my name is Kristian Ejlebjerg Jensen and I am able to use Comsol 4.1 and its sensitivity analysis for topology optimization with an external optimization algorithm (MMA).
My problem relates to plotting of the actual design field (the optimization runs fine, when I plot the solution variables). I have attached an example script. After the design field is updated (using the setU and createSolution functions), I try to visualize this new design field. I however get the following error
??? Subscript indices must either be real positive integers or logicals.
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>l_color at 1489
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>l_computecolor at 1453
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>addplot at 250
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>mphplot at 154
(I am not sure as to the application of the "server" option for mphplot, but I just get a blank figure, when I try to use it.)
Thanks
My problem relates to plotting of the actual design field (the optimization runs fine, when I plot the solution variables). I have attached an example script. After the design field is updated (using the setU and createSolution functions), I try to visualize this new design field. I however get the following error
??? Subscript indices must either be real positive integers or logicals.
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>l_color at 1489
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>l_computecolor at 1453
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>addplot at 250
Error in ==> C:\programs\COMSOL41\mli\mphplot.p>mphplot at 154
(I am not sure as to the application of the "server" option for mphplot, but I just get a blank figure, when I try to use it.)
Thanks
Attachments:
5 Replies Last Post Apr 15, 2011, 2:03 a.m. EDT