Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Load a model .mph using Java
Posted 19 ago 2011, 05:38 GMT-4 Interfacing Version 4.4 2 Replies
Please login with a confirmed email address before reporting spam
Hi,
I want to knnow how to load a model .mph using Java code,
My goal is to load a model named "mymodel.mph" build in Comsol 4.2, after that I use the Model object in order to resolve equations,
I did...
Model model = ModelUtil.load("Model", "mymodel.mph");
and I find
exception NullPointerException
Thanks in advance
I want to knnow how to load a model .mph using Java code,
My goal is to load a model named "mymodel.mph" build in Comsol 4.2, after that I use the Model object in order to resolve equations,
I did...
Model model = ModelUtil.load("Model", "mymodel.mph");
and I find
exception NullPointerException
Thanks in advance
2 Replies Last Post 28 apr 2015, 05:11 GMT-4