Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2013年4月18日 GMT-4 13:49
Hi
have you looked at the format ? its XML so you should be able to read it and undersand the structure.
Anyhow I would propose to first copy the old file directly tothe new directory, there are a fair chance it will be read in like that (havnt tried as I'm not by my WS, but I remember I entered once quite some material data by notepad cut&paste directly into the XML file
--
Good luck
Ivar
Hi
have you looked at the format ? its XML so you should be able to read it and undersand the structure.
Anyhow I would propose to first copy the old file directly tothe new directory, there are a fair chance it will be read in like that (havnt tried as I'm not by my WS, but I remember I entered once quite some material data by notepad cut&paste directly into the XML file
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2013年4月18日 GMT-4 15:54
Hi Ivar,
Thanks. I followed the steps suggested by Johan Sundqvist. It works!
Regards,
Susant
1. In your latest version of COMSOL Multiphysics, open the Material Browser, and then click on the 'Add Material Library' button.
2. Browse to the old user-defined material library (this is the tricky part), which will be located at (for Windows users):
c:\users\your_user_name\.comsol\old_comsol_installation_directory\materials\
Highlight the mph-file, and then click save.
Hi Ivar,
Thanks. I followed the steps suggested by Johan Sundqvist. It works!
Regards,
Susant
1. In your latest version of COMSOL Multiphysics, open the Material Browser, and then click on the 'Add Material Library' button.
2. Browse to the old user-defined material library (this is the tricky part), which will be located at (for Windows users):
c:\users\your_user_name\.comsol\old_comsol_installation_directory\materials\
Highlight the mph-file, and then click save.
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2013年4月19日 GMT-4 01:05
Hi
Good to hear, indeed the material database format should not change much between versions (in format) hopefully it will be incremented with newer and better non-linear material properties. There really we have the main blocking of multiphysics modelling: we lack fully the correct and comparable material data as dependent on T, pA, B, V, ...
So, material scientists: you have work for years now ;)
--
Good luck
Ivar
Hi
Good to hear, indeed the material database format should not change much between versions (in format) hopefully it will be incremented with newer and better non-linear material properties. There really we have the main blocking of multiphysics modelling: we lack fully the correct and comparable material data as dependent on T, pA, B, V, ...
So, material scientists: you have work for years now ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
2014年3月20日 GMT-4 16:29
Caution- clicking on the "New Material Library" button assumes you want to start a new (blank) library with a custom name. Selecting the file from your old version of Comsol will totally erase all your custom materials and hard work! Don't make this mistake like I just did! Updated instructions for two cases below:
If you have a library to import with a custom name (Bob's materials, or whatever):
1) Click "IMPORT Material Library" in your new version of Comsol
2) Navigate to and open the file (such as "c:\users\you\.comsol\v43b\materials\Bobs_matls.mph")
If you, like me, save all your materials in the standard "User-Defined Library", Comsol will not let you merge libraries with identical names, nor rename or delete the User-Defined Library, so in this case:
1) Navigate to the folder with "User_Defined_Library.mph" (such as "c:\users\you\.comsol\v43b\materials\")
2) Make a copy of this file. Re-name it (for example, "User_Defined_Library_old.mph")
3) Now Click "Import Material Library" and open "User_Defined_Library_old.mph".
4) If you can't stand the thought of having "old" and "current" libraries floating around, you are not allowed to copy+paste the materials over- you have to add all of your materials from the "_old" library to a model (one-by-one), and re-add them to the standard "User-Defined Library".
5) Delete the _old library after you have verified all elements have transferred over.
6) Have a nap, because you are exhausted preforming so many steps for a copy+paste procedure.
Caution- clicking on the "New Material Library" button assumes you want to start a new (blank) library with a custom name. Selecting the file from your old version of Comsol will totally erase all your custom materials and hard work! Don't make this mistake like I just did! Updated instructions for two cases below:
If you have a library to import with a custom name (Bob's materials, or whatever):
1) Click "IMPORT Material Library" in your new version of Comsol
2) Navigate to and open the file (such as "c:\users\you\.comsol\v43b\materials\Bobs_matls.mph")
If you, like me, save all your materials in the standard "User-Defined Library", Comsol will not let you merge libraries with identical names, nor rename or delete the User-Defined Library, so in this case:
1) Navigate to the folder with "User_Defined_Library.mph" (such as "c:\users\you\.comsol\v43b\materials\")
2) Make a copy of this file. Re-name it (for example, "User_Defined_Library_old.mph")
3) Now Click "Import Material Library" and open "User_Defined_Library_old.mph".
4) If you can't stand the thought of having "old" and "current" libraries floating around, you are not allowed to copy+paste the materials over- you have to add all of your materials from the "_old" library to a model (one-by-one), and re-add them to the standard "User-Defined Library".
5) Delete the _old library after you have verified all elements have transferred over.
6) Have a nap, because you are exhausted preforming so many steps for a copy+paste procedure.