Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Using model.save method to save as mph

$
0
0

I am trying to have my simulations be saved automatically under specified names as they are automatically computed in my app, but I am having trouble getting them to save under specified names.

Both of the following methods work fine:

  • model.save("filename","m")
  • model.save("filename","java")

But I am unable to save the file as a mph file:

  • model.save("filename","mph") gives error "Unknown output type," as does
  • model.save("filename.mph", "mph")

And

  • model.save("filename") won't compile with error "Unhandled exception type IOExpection," as does
  • model.save("filename.mph")

saveApplication(); doesn't allow me to specify names the name and saveApplicationAs(): requires user input.

How can I save the model files under specified names programatically?


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>