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.

model.component() undefined for v5.2 with JavaSE1.7

Please login with a confirmed email address before reporting spam

I'm trying to work with a collaborator using v5.5 and when importing his code via eclipse/JAVA I get errors on all the model.component() lines in eclipse.

The method component() is undefined for the type Model example.java

Do I have to use modelNode for 5.2 instead of component?


2 Replies Last Post 2020年7月8日 GMT-4 14:33
Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 2020年7月8日 GMT-4 03:06

Hi Ben,

There are large differences between versions 5.2 and 5.5. COMSOL Multiphysics is backward compatible, so that you can open and run 5.2 model files in version 5.5, but the other way around is more problematic. The 5.5 code might contain functionality that does not exist in version 5.2, and there may be other changes that affect the compatibility. I strongly recommend upgrading to version 5.5, which contains a lot of new and powerful functionality.

That said, you are correct: model.component() corresponds to model.modelNode() in earlier versions of COMSOL Multiphysics.

Best regards,

Magnus Ringh, COMSOL

Hi Ben, There are large differences between versions 5.2 and 5.5. COMSOL Multiphysics is backward compatible, so that you can open and run 5.2 model files in version 5.5, but the other way around is more problematic. The 5.5 code might contain functionality that does not exist in version 5.2, and there may be other changes that affect the compatibility. I strongly recommend upgrading to version 5.5, which contains a lot of new and powerful functionality. That said, you are correct: `model.component()` corresponds to `model.modelNode()` in earlier versions of COMSOL Multiphysics. Best regards, Magnus Ringh, COMSOL

Please login with a confirmed email address before reporting spam

Posted: 4 years ago 2020年7月8日 GMT-4 14:33

Thank you, Magnus

Thank you, Magnus

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.