-
Notifications
You must be signed in to change notification settings - Fork 3
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
radia.FldEnrTrq doesn't work or not included in the function library #6
Comments
Thanks, Kingson, for reporting this issue, and for including your test code. In the meantime, I just tried running your Python code and several
should read
and
should read
Also, the indentation of your Python code was mangled. Thanks again for reporting this issue, |
Hi Dan, Thank you for your fast reply. Sorry, I don't know how to easily paste code in the Github comment, but I uploaded the code (a clearer version) to here: Thank you, |
Thanks, Kingson. I edited your original comment. The comments here are parsed by Markdown. This means that to post a block of code, you simply put it between “fences”, which are denoted by a triplet of backticks:
yields def pick(l, c):
return [e for idx, e in enumerate(l) if c[idx]] This will prevent Markdown from converting, for example, your code For more information, see the GitHub Markdown page or the useful Markdown Cheatsheet. |
Thank you for the mentoring, Dan. |
@dtabell Hi Dan, any progress on solving the issue? From my side, the error is still there when I use the rad.FldEnrTrq function. |
Hello Kingson, |
Hi, if((indDst <= 0) || (indSrc <= 0) || (oCmpnId == 0) || (oP == 0)) throw CombErStr(strEr_BadFuncArg, ": FldEnrTrq"); //OC14042020 |
Thanks for the reply and explanation, @ochubar! |
Great!. Thank you, Oleg! |
I will make a good effort to do so, Kingson. |
Update intro. Update Preamble comments and imports. Eliminate use of np for #poles so we can use it as an abbreviation for numpy. Minor code reformatting. Add argument `chamfer_ang`.
Hi All,
First of all, thank you for offering the Jupyter version of Radia for free. I am trying to use it to simulate the force and torque applied by a electromagnet to a permanent magnet. Now I can already get the force component, but find that when I try to use
radia.FldEnrTrq
function for calculating the torque, it always reports an error:While if I run
I can get a proper explanation of this function.
I checked the file
radiasoft/Radia/cpp/src/clients/python/radpy.cpp
, didn't find functionFldEnrTrq
. However, I did find it in this repository:https://github.com/ochubar/Radia/blob/master/cpp/src/clients/python/radpy.cpp
.Could you help me to solve this problem? For your reference, here is the code I used to test in the Jupyter server:
Thanks,
Kingson
The text was updated successfully, but these errors were encountered: