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 Aug 19, 2011, 5:38 a.m. EDT 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 Apr 28, 2015, 5:11 a.m. EDT