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

Bug located in PyFluent API, specifically in the RealList setting method for plane surface points. #3325

Open
2 tasks done
XIAO-GUO-commint opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@XIAO-GUO-commint
Copy link

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

I encountered an issue while attempting to define a plane surface using the "three-points" method within the PyFluent API. Specifically, I was setting the p0, p1, and p2 attributes (which are instances of RealList) with lists of floating-point numbers to specify the coordinates. Although the set_state method did not produce any errors, the plane surface points were not correctly assigned, and no visible changes occurred in the Fluent GUI or results.
Steps:
Created a plane surface using the "three-points" method.
Tried assigning p0, p1, and p2 with floating-point values.
Called the set_state method for each point, expecting the plane surface to update.
No errors were raised, but the surface remained unchanged.
Expected Behavior: The set_state method should correctly assign the provided coordinates for the three points, and the plane surface should update accordingly.

📝 Steps to reproduce

ZZ = 18.0375
root.results.surfaces.plane_surface['a1'] = {}
a1 = root.results.surfaces.plane_surface['a1']
a1.method = 'three-points'

a1.p0.set_state([2.985, 0.3187, ZZ])
a1.p1.set_state([3.0959, 0.1308, ZZ])
a1.p2.set_state([3.0959, 0.1308, ZZ-1])

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

24r1

🐍 Which Python version are you using?

3.9

📦 Installed packages

about-time                4.2.1                    pypi_0    pypi
ace                       0.3.3                    pypi_0    pypi
aiohttp                   3.9.1                    pypi_0    pypi
aiosignal                 1.3.1                    pypi_0    pypi
alembic                   1.12.0                   pypi_0    pypi
alive-progress            3.1.5                    pypi_0    pypi
altgraph                  0.17.4                   pypi_0    pypi
ansys-api-dbu             0.3.4                    pypi_0    pypi
ansys-api-fluent          0.3.22                   pypi_0    pypi
ansys-api-geometry        0.4.8                    pypi_0    pypi
ansys-api-mapdl           0.5.1                    pypi_0    pypi
ansys-api-platform-instancemanagement 1.0.0                    pypi_0    pypi
ansys-fluent-core         0.20.1                   pypi_0    pypi
ansys-fluent-visualization 0.8.0                    pypi_0    pypi
ansys-geometry-core       0.7.2                    pypi_0    pypi
ansys-mapdl-core          0.67.0                   pypi_0    pypi
ansys-mapdl-reader        0.52.20                  pypi_0    pypi
ansys-math-core           0.1.3                    pypi_0    pypi
ansys-platform-instancemanagement 1.1.2                    pypi_0    pypi
ansys-tools-path          0.3.2                    pypi_0    pypi
ansys-tools-visualization-interface 0.4.4                    pypi_0    pypi
ansys-units               0.3.2                    pypi_0    pypi
anyio                     4.0.0                    pypi_0    pypi
appdirs                   1.4.4                    pypi_0    pypi
apptools                  5.3.0                    pypi_0    pypi
argon2-cffi               23.1.0                   pypi_0    pypi
argon2-cffi-bindings      21.2.0                   pypi_0    pypi
arrow                     1.3.0                    pypi_0    pypi
asttokens                 2.4.0                    pypi_0    pypi
async-lru                 2.0.4                    pypi_0    pypi
attrs                     23.1.0                   pypi_0    pypi
autograd                  1.6.2                    pypi_0    pypi
babel                     2.13.0                   pypi_0    pypi
backcall                  0.2.0                    pypi_0    pypi
beartype                  0.17.2                   pypi_0    pypi
beautifulsoup4            4.12.2                   pypi_0    pypi
bleach                    6.1.0                    pypi_0    pypi
bzip2                     1.0.8                h8ffe710_4    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
ca-certificates           2023.7.22            h56e8100_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
cachetools                5.3.2                    pypi_0    pypi
certifi                   2023.7.22                pypi_0    pypi
cffi                      1.16.0                   pypi_0    pypi
charset-normalizer        3.3.0                    pypi_0    pypi
click                     8.1.7                    pypi_0    pypi
cloudpickle               3.0.0                    pypi_0    pypi
clr-loader                0.2.6                    pypi_0    pypi
cma                       3.2.2                    pypi_0    pypi
colorama                  0.4.6                    pypi_0    pypi
colorlog                  6.7.0                    pypi_0    pypi
comm                      0.1.4                    pypi_0    pypi
contourpy                 1.1.1                    pypi_0    pypi
cupy-cuda11x              13.2.0                   pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
debugpy                   1.8.0                    pypi_0    pypi
decorator                 5.1.1                    pypi_0    pypi
defusedxml                0.7.1                    pypi_0    pypi
deprecated                1.2.14                   pypi_0    pypi
dill                      0.3.7                    pypi_0    pypi
docker                    6.1.3                    pypi_0    pypi
envisage                  7.0.3                    pypi_0    pypi
et-xmlfile                1.1.0                    pypi_0    pypi
executing                 2.0.0                    pypi_0    pypi
fastjsonschema            2.18.1                   pypi_0    pypi
fastrlock                 0.8.2                    pypi_0    pypi
filelock                  3.12.4                   pypi_0    pypi
fonttools                 4.43.1                   pypi_0    pypi
fqdn                      1.5.1                    pypi_0    pypi
frozenlist                1.4.0                    pypi_0    pypi
fsspec                    2023.10.0                pypi_0    pypi
future                    0.18.3                   pypi_0    pypi
geomdl                    5.3.1                    pypi_0    pypi
google-api-core           2.12.0                   pypi_0    pypi
google-api-python-client  2.105.0                  pypi_0    pypi
google-auth               2.23.3                   pypi_0    pypi
google-auth-httplib2      0.1.1                    pypi_0    pypi
googleapis-common-protos  1.61.0                   pypi_0    pypi
grapheme                  0.6.0                    pypi_0    pypi
greenlet                  3.0.0                    pypi_0    pypi
grpcio                    1.59.0                   pypi_0    pypi
grpcio-health-checking    1.48.2                   pypi_0    pypi
h5py                      3.10.0                   pypi_0    pypi
httplib2                  0.22.0                   pypi_0    pypi
idna                      3.4                      pypi_0    pypi
imageio                   2.34.2                   pypi_0    pypi
importlib-metadata        6.8.0                    pypi_0    pypi
ipykernel                 6.25.2                   pypi_0    pypi
ipython                   8.16.1                   pypi_0    pypi
ipython-genutils          0.2.0                    pypi_0    pypi
ipywidgets                8.1.1                    pypi_0    pypi
isoduration               20.11.0                  pypi_0    pypi
jedi                      0.19.1                   pypi_0    pypi
jinja2                    3.1.2                    pypi_0    pypi
joblib                    1.3.2                    pypi_0    pypi
json5                     0.9.14                   pypi_0    pypi
jsonpointer               2.4                      pypi_0    pypi
jsonschema                4.19.1                   pypi_0    pypi
jsonschema-specifications 2023.7.1                 pypi_0    pypi
jupyter                   1.0.0                    pypi_0    pypi
jupyter-client            8.4.0                    pypi_0    pypi
jupyter-console           6.6.3                    pypi_0    pypi
jupyter-core              5.4.0                    pypi_0    pypi
jupyter-events            0.8.0                    pypi_0    pypi
jupyter-lsp               2.2.0                    pypi_0    pypi
jupyter-server            2.8.0                    pypi_0    pypi
jupyter-server-terminals  0.4.4                    pypi_0    pypi
jupyterlab                4.0.7                    pypi_0    pypi
jupyterlab-pygments       0.2.2                    pypi_0    pypi
jupyterlab-server         2.25.0                   pypi_0    pypi
jupyterlab-widgets        3.0.9                    pypi_0    pypi
kiwisolver                1.4.5                    pypi_0    pypi
lazy-loader               0.4                      pypi_0    pypi
libexpat                  2.5.0                h63175ca_1    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
libffi                    3.4.2                h8ffe710_5    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
libsqlite                 3.43.2               hcfcfb64_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
libzlib                   1.2.13               hcfcfb64_5    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
llvmlite                  0.41.1                   pypi_0    pypi
lxml                      4.9.3                    pypi_0    pypi
mako                      1.2.4                    pypi_0    pypi
markupsafe                2.1.3                    pypi_0    pypi
matplotlib                3.8.0                    pypi_0    pypi
matplotlib-inline         0.1.6                    pypi_0    pypi
mayavi                    4.8.2                    pypi_0    pypi
mistune                   3.0.2                    pypi_0    pypi
more-itertools            10.5.0                   pypi_0    pypi
mpmath                    1.3.0                    pypi_0    pypi
msgpack                   1.1.0                    pypi_0    pypi
multidict                 6.0.4                    pypi_0    pypi
multiprocess              0.70.15                  pypi_0    pypi
nbclient                  0.8.0                    pypi_0    pypi
nbconvert                 7.9.2                    pypi_0    pypi
nbformat                  5.9.2                    pypi_0    pypi
nest-asyncio              1.5.8                    pypi_0    pypi
networkx                  3.2                      pypi_0    pypi
notebook                  7.0.6                    pypi_0    pypi
notebook-shim             0.2.3                    pypi_0    pypi
numba                     0.58.1                   pypi_0    pypi
numpy                     1.26.1                   pypi_0    pypi
openpyxl                  3.1.2                    pypi_0    pypi
openssl                   3.1.3                hcfcfb64_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
optuna                    3.4.0                    pypi_0    pypi
overrides                 7.4.0                    pypi_0    pypi
packaging                 23.2                     pypi_0    pypi
pandas                    1.5.3                    pypi_0    pypi
pandocfilters             1.5.0                    pypi_0    pypi
parso                     0.8.3                    pypi_0    pypi
pefile                    2023.2.7                 pypi_0    pypi
pickleshare               0.7.5                    pypi_0    pypi
pillow                    10.1.0                   pypi_0    pypi
pint                      0.22                     pypi_0    pypi
pip                       23.3.1             pyhd8ed1ab_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
platformdirs              3.11.0                   pypi_0    pypi
plotly                    5.18.0                   pypi_0    pypi
pooch                     1.7.0                    pypi_0    pypi
prometheus-client         0.17.1                   pypi_0    pypi
prompt-toolkit            3.0.39                   pypi_0    pypi
protobuf                  3.20.3                   pypi_0    pypi
psutil                    5.9.6                    pypi_0    pypi
pure-eval                 0.2.2                    pypi_0    pypi
pyansys-tools-versioning  0.5.0                    pypi_0    pypi
pyasn1                    0.5.0                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pycparser                 2.21                     pypi_0    pypi
pydmd                     1.0.0                    pypi_0    pypi
pyface                    8.0.0                    pypi_0    pypi
pygments                  2.16.1                   pypi_0    pypi
pyiges                    0.3.1                    pypi_0    pypi
pyinstaller               6.3.0                    pypi_0    pypi
pyinstaller-hooks-contrib 2023.11                  pypi_0    pypi
pymoo                     0.6.0.1                  pypi_0    pypi
pyparsing                 3.1.1                    pypi_0    pypi
pyqt5                     5.15.9                   pypi_0    pypi
pyqt5-plugins             5.15.9.2.3               pypi_0    pypi
pyqt5-tools               5.15.9.3.3               pypi_0    pypi
pyqtwebengine             5.15.6                   pypi_0    pypi
pyqtwebengine-qt5         5.15.2                   pypi_0    pypi
pyside6                   6.6.0                    pypi_0    pypi
pyside6-addons            6.6.0                    pypi_0    pypi
pyside6-essentials        6.6.0                    pypi_0    pypi
python                    3.11.6          h2628c8c_0_cpython    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
python-dateutil           2.8.2                    pypi_0    pypi
python-dotenv             1.0.0                    pypi_0    pypi
python-json-logger        2.0.7                    pypi_0    pypi
pythonnet                 3.0.3                    pypi_0    pypi
pytz                      2023.3.post1             pypi_0    pypi
pyvista                   0.44.1                   pypi_0    pypi
pyvistaqt                 0.11.0                   pypi_0    pypi
pywin32                   306                      pypi_0    pypi
pywin32-ctypes            0.2.2                    pypi_0    pypi
pywinpty                  2.0.12                   pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
pyzmq                     25.1.1                   pypi_0    pypi
qt5-applications          5.15.2.2.3               pypi_0    pypi
qt5-tools                 5.15.2.1.3               pypi_0    pypi
qtconsole                 5.4.4                    pypi_0    pypi
qtpy                      2.4.0                    pypi_0    pypi
referencing               0.30.2                   pypi_0    pypi
requests                  2.31.0                   pypi_0    pypi
rfc3339-validator         0.1.4                    pypi_0    pypi
rfc3986-validator         0.1.1                    pypi_0    pypi
rpds-py                   0.10.6                   pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
salib                     1.4.7                    pypi_0    pypi
scikit-image              0.24.0                   pypi_0    pypi
scikit-learn              1.3.1                    pypi_0    pypi
scipy                     1.11.3                   pypi_0    pypi
scooby                    0.9.2                    pypi_0    pypi
seaborn                   0.13.0                   pypi_0    pypi
semver                    3.0.2                    pypi_0    pypi
send2trash                1.8.2                    pypi_0    pypi
setuptools                68.2.2             pyhd8ed1ab_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
shap                      0.43.0                   pypi_0    pypi
shiboken6                 6.6.0                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
slicer                    0.0.7                    pypi_0    pypi
sniffio                   1.3.0                    pypi_0    pypi
soupsieve                 2.5                      pypi_0    pypi
sqlalchemy                2.0.22                   pypi_0    pypi
stack-data                0.6.3                    pypi_0    pypi
sympy                     1.12                     pypi_0    pypi
tenacity                  8.2.3                    pypi_0    pypi
terminado                 0.17.1                   pypi_0    pypi
threadpoolctl             3.2.0                    pypi_0    pypi
tifffile                  2024.6.18                pypi_0    pypi
tinycss2                  1.2.1                    pypi_0    pypi
tk                        8.6.13               hcfcfb64_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
torch                     2.1.0                    pypi_0    pypi
torchvision               0.16.0                   pypi_0    pypi
tornado                   6.3.3                    pypi_0    pypi
tqdm                      4.66.1                   pypi_0    pypi
traitlets                 5.11.2                   pypi_0    pypi
traits                    6.4.3                    pypi_0    pypi
traitsui                  8.0.0                    pypi_0    pypi
trame                     3.6.5                    pypi_0    pypi
trame-client              3.3.1                    pypi_0    pypi
trame-server              3.2.3                    pypi_0    pypi
trame-vtk                 2.8.10                   pypi_0    pypi
trame-vuetify             2.7.1                    pypi_0    pypi
types-python-dateutil     2.8.19.14                pypi_0    pypi
typing-extensions         4.8.0                    pypi_0    pypi
tzdata                    2023.3                   pypi_0    pypi
ucrt                      10.0.22621.0         h57928b3_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
uri-template              1.3.0                    pypi_0    pypi
uritemplate               4.1.1                    pypi_0    pypi
urllib3                   2.0.7                    pypi_0    pypi
vc                        14.3                h64f974e_17    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
vc14_runtime              14.36.32532         hdcecf7f_17    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
vs2015_runtime            14.36.32532         h05e6639_17    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
vtk                       9.3.20230807rc0          pypi_0    pypi
wcwidth                   0.2.8                    pypi_0    pypi
webcolors                 1.13                     pypi_0    pypi
webencodings              0.5.1                    pypi_0    pypi
websocket-client          1.6.4                    pypi_0    pypi
websockets                13.0.1                   pypi_0    pypi
wheel                     0.41.2             pyhd8ed1ab_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
widgetsnbextension        4.0.9                    pypi_0    pypi
wrapt                     1.15.0                   pypi_0    pypi
wslink                    2.2.1                    pypi_0    pypi
xgboost                   2.0.0                    pypi_0    pypi
xz                        5.2.6                h8d14728_0    https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge
yarl                      1.9.4                    pypi_0    pypi
zipp                      3.17.0                   pypi_0    pypi
@XIAO-GUO-commint XIAO-GUO-commint added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant