Replies: 1 comment 6 replies
-
If I understand correctly (and that's difficult without a concrete example), you already know how to evaluate a (field) variable at a given point. I'm assuming when you say "export" you mean "evaluate", and by "global variable" you mean "global parameter". (Otherwise that's what you should look into.) But then you don't have to compute the solution twice. Comsol let's you update the solution when parameters change. This feature arguably exist precisely for this use case, where the parameter values are only needed in post-processing. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to evaluate the value of one variable at the minima of another, which I obtain by fitting the variable using scipy. I would like to be able to evaluate the point directly at this position using MpH, however I don't know if I can. My current work around is to export data at the point by defining the point using global variables in COMSOL. This, however, requires the solution to be computed twice, due to the use of global variables.
Alternatively, if it is possible to assign values variables that are only defined in the results interface I could also obtain this value using only one computation by using my current workaround.
Beta Was this translation helpful? Give feedback.
All reactions