Skip to content
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

Can not get force by mo_gapintegral #12

Open
temudschin opened this issue Jun 14, 2023 · 2 comments
Open

Can not get force by mo_gapintegral #12

temudschin opened this issue Jun 14, 2023 · 2 comments

Comments

@temudschin
Copy link
Contributor

temudschin commented Jun 14, 2023

tmp.lua.zip
I attached a lua script, which should calculate the forces and the torque on the rotor. While it is possible to get the torque by:
mo_gapintegral("SlidingBand", 0)
the command
mo_gapintegral("SlidingBand", 1) gives the torque and nil instead of the force in x and y direction.

If I open the tmp.ans created by femmcli and the attached lua script in femm, I can open the Lua Console and enter:
xForce_0, yForce_0 = mo_gapintegral("SlidingBand",1)
print("xForce_0: ", xForce_0)
print("yForce_0: ", yForce_0)
torque_0 = mo_gapintegral("SlidingBand",0)
print("torque_0: ", torque_0)

which gives the expected results.

Thanks so much for the new version!

PS: there is another function mo_gap_integral doing the same as mo_gapintegral

@reos-rcrozier
Copy link
Contributor

Thanks for the report, would it be possible to share your full test case? It would be useful for us to add to the test suite.

@temudschin
Copy link
Contributor Author

temudschin commented Jun 14, 2023

Yes, you can share it!
Or do you need something additional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants