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.

Wrong number of dofs in optimization.

Please login with a confirmed email address before reporting spam

hi all

I am a beginner of COMSOL.

Today, I try to build one two-dimensional N-S incompressible model, and use the optimization lab component to optimization it.

My simple object is to determine a porosity to maximize the outlet velocity of one porous plate channel.

But when I begin compute, one error occured.

"Exception:
com.femlab.jni.FlNativeException: Wrong number of dofs in property u
Messages:
Wrong number of dofs in property u
- Callstack: femsolver 368 solobj.smartRunner(report, loopTime);
assemble 60 varargout = femsolver(mfilename,'Assemble',fem,varargin{:});"

I spent several hours with this error, but the result is very depressed.

Could anybody give me the reason for this problem and tell me how to fix it?

At the same time, may I write an exterior optimizing program by the COMSOL script or MATLAB.
Then use this program to call the script of this model.


Thank you very much.

0 Replies Last Post 2009年7月19日 GMT+2 04:28
COMSOL Moderator

Hello Junxiang Shi

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 theSupport Centerfor a more comprehensive response from the Technical Support team.

Baidu
map