ansys / pyfluent-examples

PyFluent Application Examples
https://examples.fluent.docs.pyansys.com
MIT License
5 stars 0 forks source link

Bug in Separator-Collection-Efficiency example #29

Closed raph-luc closed 1 year ago

raph-luc commented 1 year ago

examples/Separator-Collection-Efficiency/oil_separator.py does not output any data to the output.dpm file, which is required for the two last figures in the example.

I believe this is due to the example not specifying any velocity at the inlet, which is probably unintentional considering the geometry and rest of the setup. Changing solution methods and controls does not help.

My temporary solution has been to specify a velocity of 0.1 m/s at the inlet, which seems to be enough to make everything work correctly and output results.

Tested Fluent v231 and v232

Installed packages ``` absl-py==1.4.0 ansys-api-fluent==0.3.12 ansys-api-platform-instancemanagement==1.0.0b3 -e git+https://github.com/pyansys/pyfluent.git@683c8c1fd6bda7dad5cdf5b3409923cd3d0cfc02#egg=ansys_fluent_core -e git+https://github.com/pyansys/pyfluent-parametric.git@c1b3e230b26b1e627b0ba8ba5bf1500533900765#egg=ansys_fluent_parametric -e git+https://github.com/pyansys/pyfluent-visualization.git@a5c9847413e796bffe1a8261474a8bdcf1a682be#egg=ansys_fluent_visualization ansys-platform-instancemanagement==1.1.1 appdirs==1.4.4 astunparse==1.6.3 cachetools==5.3.0 certifi==2023.5.7 cfgv==3.3.1 charset-normalizer==3.1.0 contourpy==1.0.7 cycler==0.11.0 distlib==0.3.6 filelock==3.12.0 flatbuffers==23.5.9 fonttools==4.39.4 gast==0.4.0 google-auth==2.18.0 google-auth-oauthlib==1.0.0 google-pasta==0.2.0 googleapis-common-protos==1.59.0 grpcio==1.54.0 h5py==3.8.0 identify==2.5.24 idna==3.4 importlib-metadata==6.6.0 jax==0.4.9 joblib==1.2.0 kaleido==0.2.1 keras==2.12.0 kiwisolver==1.4.4 libclang==16.0.0 lxml==4.9.2 Markdown==3.4.3 MarkupSafe==2.1.2 matplotlib==3.7.1 ml-dtypes==0.1.0 nodeenv==1.7.0 numpy==1.23.5 oauthlib==3.2.2 opt-einsum==3.3.0 packaging==23.1 pandas==1.5.3 Pillow==9.5.0 platformdirs==3.5.0 plotly==5.14.1 pooch==1.7.0 pre-commit==3.3.1 protobuf==3.20.3 protoc-gen-swagger==0.1.0 pyasn1==0.5.0 pyasn1-modules==0.3.0 pyparsing==3.0.9 PySide6==6.5.0 PySide6-Addons==6.5.0 PySide6-Essentials==6.5.0 python-dateutil==2.8.2 pytz==2023.3 pyvista==0.39.0 pyvistaqt==0.10.0 PyYAML==6.0 QtPy==2.3.1 requests==2.30.0 requests-oauthlib==1.3.1 rsa==4.9 scikit-learn==1.2.2 scipy==1.10.1 scooby==0.7.2 seaborn==0.12.2 shiboken6==6.5.0 six==1.16.0 tenacity==8.2.2 tensorboard==2.12.3 tensorboard-data-server==0.7.0 tensorflow==2.12.0 tensorflow-estimator==2.12.0 tensorflow-intel==2.12.0 tensorflow-io-gcs-filesystem==0.31.0 termcolor==2.3.0 threadpoolctl==3.1.0 typing_extensions==4.5.0 tzdata==2023.3 urllib3==1.26.15 virtualenv==20.23.0 vtk==9.2.6 Werkzeug==2.3.4 wrapt==1.14.1 xgboost==1.7.5 zipp==3.15.0 ```
raph-luc commented 1 year ago

Fixed by the PR above