-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting meshes as .mphtxt
files
#73
Comments
Hi. Yeah, looks like it's not implemented. I did not even know there are export nodes for meshes. By "not implemented" I mean that MPh's |
Thanks John! Any chance of this being implemented in the near future? If not, is there a workaround I could use in the meantime? |
Yeah, I'll fix that eventually. Unless you want to contribute a pull request? The work-around is to use (what I call) the "Java layer" directly, instead of the high-level functions of MPh's API. This is what's explained in section "Access the full Comsol API". So, whenever some functionality is missing, open your model in the Comsol GUI, perform whatever action you want to automate (here: export the mesh), then save the model as a |
Fixed in MPh 1.1.6, released today. |
Hi,
Im currently writing a Python optimization script with which I want to vary geometric parametrs of a Comsol model using MPh and create and export Meshes of the Model.
Since I'm not running any actual Simulations on the Model and only want the Mesh, my only export Node is a Mesh export Node. With this export node I want to generate an .mphtxt file of my model. However, when I attempt to run the code I get the following error message:
TypeError: Node "exports/Mesh 1" is of the unexpected type "Mesh".
Is the exporting of Meshes not implmented or am I simply overlooking something? Attached are screenshots of my code.
Thanks in advance!


The text was updated successfully, but these errors were encountered: