You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "discussions" are intended to be centered around the development of the software package hosted here: MPh. Straight-up bug reports or clearly phrased feature requests belong under "Issues". The discussions are for vague ideas to be fleshed out, but should still be related to the code base.
Anything else may not belong here at all. Especially if your question is about your specific Comsol model and does not refer to the MPh code or documentation.
How can I script in Python what I did in Comsol Desktop?
Before you ask, please keep in mind: This isn't Comsol Support. Very few people will even read your question here. Those that do have probably never thought about your particular problem. And you can find the answer on your own if you study the documentation.
You'd be better off asking on Reddit, or possibly on Stack Overflow (if programming-related, plus all the other guidelines), or any other forum out there that has more traffic. Which is basically all of them.
In most cases, this kind of question is already answered by the documentation chapter "Access the full Comsol API" along with the Comsol Programming Manual. Any function mentioned in the latter can be called from Python. You just need to read up on it and figure things out. It's unlikely anyone reading your question will do that for you.
Your problem may make sense here if it's applicable to a wider audience. In a "frequently asked question" sense. But then try to demonstrate it accordingly. Namely, base it on the Tutorial model (capacitor.mph), which by design "only requires a license for the core Comsol platform, but not for any add-on module beyond that". Any modifications that you've made, you can attach that model file to your post here on GitHub, though you may have to "zip" it or change its file extension for the upload to go through.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The "discussions" are intended to be centered around the development of the software package hosted here: MPh. Straight-up bug reports or clearly phrased feature requests belong under "Issues". The discussions are for vague ideas to be fleshed out, but should still be related to the code base.
Anything else may not belong here at all. Especially if your question is about your specific Comsol model and does not refer to the MPh code or documentation.
How can I script in Python what I did in Comsol Desktop?
Before you ask, please keep in mind: This isn't Comsol Support. Very few people will even read your question here. Those that do have probably never thought about your particular problem. And you can find the answer on your own if you study the documentation.
You'd be better off asking on Reddit, or possibly on Stack Overflow (if programming-related, plus all the other guidelines), or any other forum out there that has more traffic. Which is basically all of them.
In most cases, this kind of question is already answered by the documentation chapter "Access the full Comsol API" along with the Comsol Programming Manual. Any function mentioned in the latter can be called from Python. You just need to read up on it and figure things out. It's unlikely anyone reading your question will do that for you.
Your problem may make sense here if it's applicable to a wider audience. In a "frequently asked question" sense. But then try to demonstrate it accordingly. Namely, base it on the Tutorial model (
capacitor.mph), which by design "only requires a license for the core Comsol platform, but not for any add-on module beyond that". Any modifications that you've made, you can attach that model file to your post here on GitHub, though you may have to "zip" it or change its file extension for the upload to go through.Beta Was this translation helpful? Give feedback.
All reactions