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.

mphgeom(model) for JavaAPI

Please login with a confirmed email address before reporting spam

Hi everyone,
does anyone know the name of the function for the JavaAPI to displaying the geometry of a loaded model?

for matlab there is one called mphgeom(model), but I'm looking for the java.

Thanks a lot.

3 Replies Last Post 09.11.2012, 06:51 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 07.11.2012, 04:06 GMT-5
If you have any answer (also trivial once), I will warmly welcome it!
If you have any answer (also trivial once), I will warmly welcome it!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 08.11.2012, 05:44 GMT-5
Hi Matthias,
I'm not sure, but probably the functions which begin with mph run only in Matlab. So in Java language you must write down your own mphgeom function.

You can find out if I'm right just checking the table2-1 in the API manual.

Mattia
Hi Matthias, I'm not sure, but probably the functions which begin with mph run only in Matlab. So in Java language you must write down your own mphgeom function. You can find out if I'm right just checking the table2-1 in the API manual. Mattia

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 09.11.2012, 06:51 GMT-5
Hi Mattia,
you are right, the mph-functions are designed for matlab. But usually there are equivalent functions for java as well. So my question is, if anyone has any idea how to display a loaded Model within a Java GUI (see Capter 7 in the API-reference for an example of a java gui)?
Any help would be nice.

Thanks
Hi Mattia, you are right, the mph-functions are designed for matlab. But usually there are equivalent functions for java as well. So my question is, if anyone has any idea how to display a loaded Model within a Java GUI (see Capter 7 in the API-reference for an example of a java gui)? Any help would be nice. Thanks

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.