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.

Translating comsol version 5.4 to 5.3

Fernando J. Pena Cantu

Please login with a confirmed email address before reporting spam

Hi my University utilises two different versions for comsol 5.4 and 5.3. However they only have Matlab live link with version 5.3 but I have done all my work with 5.4. Is they a way to translate a file that was made in 5.4 into 5.3 version.

Thanks.


3 Replies Last Post Jan 3, 2020, 3:35 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Jan 2, 2020, 10:34 a.m. EST

Hello Fernando,

If your file created with version 5.4 only uses features that existed in version 5.3, yes. This thread should help.

Best regards,

Jeff

-------------------
Jeff Hiller
Hello Fernando, If your file created with version 5.4 only uses features that existed in version 5.3, yes. [This thread](https://www.comsol.com/forum/thread/163681/save-a-model-as-older-version?last=2018-02-07T12:01:36Z) should help. Best regards, Jeff

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Jan 2, 2020, 10:42 a.m. EST

It's interesting to know such a possibility. Thanks!

According to the thread, one should save the .mph model file as a .java file and then compile it with a lower version compiler. But could a lower version .mph file be recovered from the .java file?

-------------------
ZHANG, Pu
School of Physics,
Huazhong University of Science and Technology
It's interesting to know such a possibility. Thanks! According to the thread, one should save the .mph model file as a .java file and then compile it with a lower version compiler. But could a lower version .mph file be recovered from the .java file?

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Jan 3, 2020, 3:35 a.m. EST

Hi Pu,

The compilation process as such should in principle be version independent. It is just a matter of getting a .class file from a .java file.

When you later run the .class file from a certain COMSOL Multiphysics version, and then save the model, the .mph file gets its version number. In principle, you could thus create several .mph file versions from a single .class file.

Regards,
Henrik

-------------------
Henrik Sönnerlind
COMSOL
Hi Pu, The compilation process as such should in principle be version independent. It is just a matter of getting a .class file from a .java file. When you later run the .class file from a certain COMSOL Multiphysics version, and then save the model, the .mph file gets its version number. In principle, you could thus create several .mph file versions from a single .class file. Regards, Henrik

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.