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.

Save a model as older version

Please login with a confirmed email address before reporting spam

Hi,

Is it possible to save a model as older version? I have 5.3 and I would like to save model for previous vesion, e.g. 5.2.


6 Replies Last Post 2018年2月7日 GMT-0500上午7:01

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 2018年1月12日 GMT-0500下午7:20

As far as I know it is not possible to do so.

-------------------
Pu, ZHANG
Huazhong University of Science and Technology
As far as I know it is not possible to do so.

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 2018年1月15日 GMT-0500上午8:00
Updated: 9 months ago 2018年1月16日 GMT-0500上午5:11

Hi,

For obvious reasons, this cannot be done if you have used functionality which was not available, or has been significanly changed since version 5.2. In many cases, it is however possible:

Save the model as a Java file, compile it, and run the generated class file from the older version. This will work as long as there is nothing in that Java file which is not supported. A few such things can also be fixed by editing the Java file. So it may be worth trying.

Regards,

Henrik

Hi, For obvious reasons, this cannot be done if you have used functionality which was not available, or has been significanly changed since version 5.2. In many cases, it is however possible: Save the model as a Java file, compile it, and run the generated class file from the older version. This will work as long as there is nothing in that Java file which is not supported. A few such things can also be fixed by editing the Java file. So it may be worth trying. Regards, Henrik

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 2018年1月16日 GMT-0500上午4:06

Hi,

If I want to send my simulation to someone who have version 5.2, what do I need to send? This .class and .mph, or just .class, or something else?

Thanks, Milana

Hi, If I want to send my simulation to someone who have version 5.2, what do I need to send? This .class and .mph, or just .class, or something else? Thanks, Milana

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 months ago 2018年1月16日 GMT-0500上午5:16
Updated: 9 months ago 2018年1月16日 GMT-0500上午5:38

Hi Milana,

If we assume that you do not have 5.2, and your collegue has that version, the best would be that you sava as Java (preferably after having done a Compact History). You then send the Java file, so that the other user has a possibilty to edit it, if necessary.

Regards,

Henrik

Hi Milana, If we assume that you do not have 5.2, and your collegue has that version, the best would be that you sava as Java (preferably after having done a Compact History). You then send the Java file, so that the other user has a possibilty to edit it, if necessary. Regards, Henrik

Abdulrahman Alsolami

Please login with a confirmed email address before reporting spam

Posted: 8 months ago 2018年2月6日 GMT-0500下午1:12

Hi Henrik,

I have saved my model as java file

I don't know how to compile it , Can you please tell me the steps to compile a java file before openning it in the older version?

I searched for it and it said to enter compile command in the comsol server but I don't how that can be done for a spesific java file that already saved

Can you please help me with that ?

Thank You

Regards, Abdul

Hi Henrik, I have saved my model as java file I don't know how to compile it , Can you please tell me the steps to compile a java file before openning it in the older version? I searched for it and it said to enter compile command in the comsol server but I don't how that can be done for a spesific java file that already saved Can you please help me with that ? Thank You Regards, Abdul

Henrik Sönnerlind COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 months ago 2018年2月7日 GMT-0500上午7:01

Hi Abdul,

You can use the comsolcompile command from a console window. If you have the binaries directory in the search path, then it is just

comsolcompile my_model.java

Without the path set, you can do something like (on Windows)

C:\"Program Files"\COMSOL\COMSOL53a\Multiphysics\bin\win64\comsolcompile my_model.java

Regards,

Henrik

Hi Abdul, You can use the **comsolcompile** command from a console window. If you have the binaries directory in the search path, then it is just **comsolcompile my_model.java** Without the path set, you can do something like (on Windows) **C:\"Program Files"\COMSOL\COMSOL53a\Multiphysics\bin\win64\comsolcompile my_model.java** 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.