xfemm icon indicating copy to clipboard operation
xfemm copied to clipboard

Can not get force by mo_gapintegral

Open temudschin opened this issue 1 year ago • 2 comments

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

temudschin avatar Jun 14 '23 12:06 temudschin

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.

reos-rcrozier avatar Jun 14 '23 12:06 reos-rcrozier

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

temudschin avatar Jun 14 '23 12:06 temudschin