Fields Calculator Guide #4388
-
Hi Everyone, I have been using this pyaedt tool, and it works great. And Have found the documentation mostly helpful and can find what I need to get something done. This is true except for the fields calculator. The only tips i can find on how to use this is just from the snippets in the online documentaion. Is there a place where i can find how to access all the various fields within the fields calculator? for instance, i would like to do something like this in pyaedt: create an expression which is the dot product of some field, say the H-field, along a unit vector of a specified coordinate system then plot this value along a specified path which has been loaded previous. Thanks! -Will |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @bakerwillis, Thanks for submitting your question. Hope this helps, Thanks, Giulia |
Beta Was this translation helpful? Give feedback.
Hi @bakerwillis,
Thanks for submitting your question.
There's no documentation because we don't cover all existing functionalities of the field calculator with PyAEDT.
What we can suggest you to do is to record the scripts while doing fields calculator operation and the re-use the recorded commands with PyAEDT by accessng the
ofieldsreporter
.For example:
app.ofieldsreporter.CalcOp("Value")
app.post.ofieldsreporter.CalcOp("Value")
Please also refer to this example:
Maxwell 3D: magnet DC analysis
Hope this helps,
Please do let me know if I answered your question and close this discussion!
Thanks,
Giulia