ansys / pymotorcad

https://motorcad.docs.pyansys.com
MIT License
15 stars 1 forks source link

Bug - Arc.length - located in ansys.motorcad.core.geometry #348

Closed JackB-Ansys closed 1 month ago

JackB-Ansys commented 1 month ago

πŸ” Before submitting the issue

🐞 Description of the bug

length calculation for some arcs is incorrect.

πŸ“ Steps to reproduce

run the attached script which creates an arc for which this bug occurs. Define a line and an arc based on start and end coordinate and a radius (45 units) calculate the line length. calculate the arc length. The arc MUST be longer than the line, because they have the same start and end point. However an incorrect (shorter) arc length is returned by the function. The correct arc length can be calculated from the radius and arc totalangle. im
[issue_arc_length_calculation.zip](https://github.com/user-attachments/files/16378674/issue_arc_length_calculation.zip)
age image

πŸ’» Which operating system are you using?

Windows

πŸ“€ Which ANSYS version are you using?

N/A

🐍 Which Python version are you using?

3.10

πŸ“¦ Installed packages

alabaster==0.7.16
ansys-api-platform-instancemanagement==1.0.0
-e git+https://github.com/pyansys/pymotorcad/@49636c1c254a126cf386af879d5e5e71d6b8584f#egg=ansys_motorcad_core
ansys-platform-instancemanagement==1.1.2
anyio==4.3.0
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asttokens==2.4.1
async-lru==2.0.4
attrs==22.2.0
Babel==2.14.0
beautifulsoup4==4.12.3
bezier==2023.7.28
bleach==6.1.0
cachetools==5.2.1
certifi==2022.12.7
cffi==1.16.0
cfgv==3.3.1
chardet==5.1.0
charset-normalizer==3.0.1
click==8.1.3
colorama==0.4.6
comm==0.2.2
contourpy==1.0.7
cycler==0.11.0
debugpy==1.8.1
decorator==5.1.1
defusedxml==0.7.1
distlib==0.3.6
docutils==0.21.2
exceptiongroup==1.1.0
executing==2.0.1
fastjsonschema==2.19.1
filelock==3.9.0
Flask==2.2.2
fonttools==4.39.0
fqdn==1.5.1
grpcio==1.60.1
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
identify==2.5.13
idna==3.4
imagesize==1.4.1
importlib-metadata==6.0.0
iniconfig==2.0.0
ipykernel==6.29.4
ipython==8.23.0
isoduration==20.11.0
itsdangerous==2.1.2
jedi==0.19.1
Jinja2==3.1.2
json5==0.9.24
jsonpointer==2.4
jsonrpcserver==5.0.9
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
jupyter-events==0.10.0
jupyter-lsp==2.2.5
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyter_server==2.13.0
jupyter_server_terminals==0.5.3
jupyterlab==4.1.6
jupyterlab_pygments==0.3.0
jupyterlab_server==2.26.0
kiwisolver==1.4.4
MarkupSafe==2.1.2
matplotlib==3.7.1
matplotlib-inline==0.1.6
mistune==3.0.2
nbclient==0.10.0
nbconvert==7.16.3
nbformat==5.10.4
nest-asyncio==1.6.0
nodeenv==1.7.0
notebook==7.1.2
notebook_shim==0.2.4
numpy==1.24.2
OSlash==0.6.3
overrides==7.7.0
packaging==23.0
pandocfilters==1.5.1
parso==0.8.4
Pillow==9.4.0
platformdirs==2.6.2
pluggy==1.0.0
pre-commit==2.21.0
prometheus_client==0.20.0
prompt-toolkit==3.0.43
protobuf==4.25.2
psutil==5.9.4
pure-eval==0.2.2
pycparser==2.22
Pygments==2.17.2
pyparsing==3.0.9
pyproject_api==1.5.0
pyrsistent==0.19.3
pytest==7.2.1
python-dateutil==2.8.2
python-json-logger==2.0.7
pywin32==306
pywinpty==2.0.13
PyYAML==6.0
pyzmq==25.1.2
referencing==0.34.0
requests==2.31.0
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.18.0
scipy==1.12.0
Send2Trash==1.8.3
six==1.16.0
sniffio==1.3.1
snowballstemmer==2.2.0
soupsieve==2.5
Sphinx==7.3.7
sphinx_design==0.6.0
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-htmlhelp==2.0.5
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-serializinghtml==1.1.10
stack-data==0.6.3
terminado==0.18.1
tinycss2==1.2.1
tomli==2.0.1
tornado==6.4
tox==4.3.5
traitlets==5.14.2
types-python-dateutil==2.9.0.20240316
typing==3.7.4.3
typing_extensions==4.11.0
uri-template==1.3.0
urllib3==1.26.14
virtualenv==20.17.1
wcwidth==0.2.13
webcolors==1.13
webencodings==0.5.1
websocket-client==1.7.0
Werkzeug==2.2.2
zipp==3.11.0