Replies: 1 comment 2 replies
-
Hi Vera, thanks for the kind words. I don't think I can be of much help here though. I guess MPh can help to check that an explicit isn't empty, but that only detects the problem and does not solve it. In the past, I've always just used what Comsol itself offers: coordinate-based selections such as "box" or "cylinder". When the geometry is already parametrized, that's usually quite straightforward. As far as I know, that's what we're supposed to do to make the selections robust. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am developing a model with two components:
Using the MPh Python interface, I am able to automate much of the process — including geometry updates, running the deformation simulation, exporting the resulting mesh, and importing it into Component 2. However, a key issue is that boundary selections in Component 2 do not persist across mesh imports. As a result, critical boundary conditions (such as applied loads) become undefined or incorrect when the mesh is updated (e.g. the domain selection disappears).
My question: is there a way within the MPh API to ensure consistent boundary selections (e.g., using named selections or tags) to ensure the boundary conditions are applied to a certain boundary selection of the geometry?
If needed, I can share a minimal working example to illustrate the workflow and current limitations.
Thanks for your great work on MPh, it’s been an excellent tool for integrating COMSOL into automated pipelines.
Best regards,
Vera
Beta Was this translation helpful? Give feedback.
All reactions