Skip to content

Turb Chem missing attribute #4280

Open
Open
@ansytalekar

Description

@ansytalekar

🔍 Before submitting the issue

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

🐞 Description of the bug

AttributeError: 'turb_chem_interaction_options' object has no attribute 'turb_chem_interaction'

for

solver.settings.setup.models.species.turb_chem_interaction_options.turb_chem_interaction = 'eddy-dissipation'

📝 Steps to reproduce

import os
from ansys.fluent.core import examples

if not os.getenv('FLUENT_PROD_DIR'):
    import ansys.fluent.core as pyfluent
    flglobals = pyfluent.setup_for_fluent(product_version="26.1.0", mode="solver", dimension=2, precision="double", processor_count=4, ui_mode="no_gui", graphics_driver="null", gpu=False)
    globals().update(flglobals)

import_file_name = examples.download_file("gascomb.msh.gz", "pyfluent/species_combustor_example")

solver.settings.file.read_case(file_name = 'gascomb.msh')
solver.settings.mesh.check()
solver.settings.mesh.scale(x_scale = 0.001, y_scale = 0.001)
solver.settings.mesh.check()
solver.settings.setup.general.solver.two_dim_space = "axisymmetric"
solver.settings.solution.monitor.residual.options.plot = False
solver.settings.mesh.modify_zones.list_zones()
solver.settings.setup.boundary_conditions.set_zone_type(zone_list = ['symmetry-5'], new_type = 'axis')
solver.settings.setup.models.energy = {'enabled' : True}
solver.settings.setup.models.species.model.option = 'species-transport'
solver.settings.setup.models.species.model.material = 'methane-air'
solver.settings.setup.materials.mixture.delete(name_list = 'mixture-template')
solver.settings.setup.models.species.reactions.enable_volumetric_reactions = True
solver.settings.setup.models.species.turb_chem_interaction_options.turb_chem_interaction = 'eddy-dissipation'
solver.tui.define.materials.change_create('methane-air', 'methane-air', 'yes', '5', 'ch4', 'o2', 'co2', 'h2o', 'n2', '0', '0', 'yes', '1', '"reaction-1"', '2', 'ch4', '1', '0.2', 'o2', '2', '1.3', '2', 'co2', '1', '0', 'h2o', '2', '0', '4', '0.5', 'no', 'no', 'no', 'no', 'no', 'no', 'no')

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

v261

🐍 Which Python version are you using?

3.12

📦 Installed packages

about-time==4.2.1
absl-py==2.1.0
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
alive-progress==3.1.5
ansys-api-fluent==0.3.35
ansys-api-mechanical==0.1.2
ansys-api-platform-instancemanagement==1.1.0
ansys-api-tools-filetransfer==0.1.0
ansys-fluent-core==0.33.0
ansys-fluent-visualization==0.20.0
ansys-mechanical-core==0.11.14
ansys-mechanical-env==0.1.9
ansys-mechanical-stubs==0.1.6
ansys-platform-instancemanagement==1.1.2
ansys-pythonnet==3.1.0rc6
ansys-tools-filetransfer==0.1.0
ansys-tools-path==0.7.1
ansys-units==0.6.0
anyio==4.8.0
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
artifactory==0.1.17
asttokens==3.0.0
astunparse==1.6.3
attrs==24.3.0
beartype==0.18.5
beautifulsoup4==4.12.3
bleach==6.2.0
certifi==2024.8.30
cffi==1.17.1
charset-normalizer==3.3.2
click==8.1.7
clr_loader==0.2.7.post0
colorama==0.4.6
comm==0.2.2
contourpy==1.3.0
cycler==0.12.1
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.18
docker==7.1.0
executing==2.1.0
fastjsonschema==2.21.1
flatbuffers==24.3.25
fonttools==4.53.1
fqdn==1.5.1
frozenlist==1.5.0
gast==0.6.0
google-pasta==0.2.0
googleapis-common-protos==1.66.0
grapheme==0.6.0
grpcio==1.66.1
grpcio-health-checking==1.62.3
grpcio-status==1.63.0rc1
h5py==3.11.0
idna==3.10
imageio==2.36.1
importlib_metadata==8.5.0
ipython==8.31.0
ipywidgets==8.1.5
isoduration==20.11.0
jedi==0.19.2
Jinja2==3.1.5
joblib==1.4.2
jsonpointer==3.0.0
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter-events==0.11.0
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_server==2.15.0
jupyter_server_proxy==4.4.0
jupyter_server_terminals==0.5.3
jupyterlab_pygments==0.3.0
jupyterlab_widgets==3.0.13
keras==3.5.0
kiwisolver==1.4.7
libclang==18.1.1
lxml==5.3.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==2.1.5
matplotlib==3.9.2
matplotlib-inline==0.1.7
mdurl==0.1.2
mistune==3.1.0
ml-dtypes==0.4.1
more-itertools==10.6.0
msgpack==1.1.0
multidict==6.1.0
namex==0.0.8
nbclient==0.10.2
nbconvert==7.16.5
nbformat==5.10.4
nest-asyncio==1.6.0
nltk==3.9.1
numpy==2.2.1
opt-einsum==3.3.0
optree==0.12.1
overrides==7.7.0
packaging==24.1
pandas==2.2.2
pandocfilters==1.5.1
parso==0.8.4
pathlib==1.0.1
pdf2image==1.17.0
pillow==10.4.0
platformdirs==4.3.3
plotly==5.24.1
pooch==1.8.2
prometheus_client==0.21.1
prompt_toolkit==3.0.48
propcache==0.2.1
protobuf==4.25.4
psutil==6.0.0
pure_eval==0.2.3
pyansys-tools-report==0.8.1
pycparser==2.22
Pygments==2.18.0
pyparsing==3.1.4
PySide6==6.8.1.1
PySide6_Addons==6.8.1.1
PySide6_Essentials==6.8.1.1
python-dateutil==2.9.0.post0
python-json-logger==3.2.1
pytz==2024.2
pyvista==0.44.1
pyvistaqt==0.11.1
pywin32==306
pywinpty==2.0.14
PyYAML==6.0.2
pyzmq==26.2.0
QtPy==2.4.1
referencing==0.36.1
regex==2024.9.11
requests==2.32.3
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rich==13.8.1
rpds-py==0.22.3
scikit-learn==1.5.2
scipy==1.14.1
scooby==0.10.0
seaborn==0.13.2
Send2Trash==1.8.3
setuptools==75.1.0
shiboken6==6.8.1.1
simpervisor==1.0.0
six==1.16.0
sniffio==1.3.1
soupsieve==2.6
stack-data==0.6.3
tenacity==9.0.0
tensorboard==2.17.1
tensorboard-data-server==0.7.2
tensorflow==2.17.0
tensorflow-intel==2.17.0
termcolor==2.4.0
terminado==0.18.1
threadpoolctl==3.5.0
tinycss2==1.4.0
tornado==6.4.2
tqdm==4.66.5
traitlets==5.14.3
trame==3.7.6
trame-client==3.5.1
trame-server==3.3.0
trame-vtk==2.8.14
trame-vuetify==2.8.0
types-python-dateutil==2.9.0.20241206
typing_extensions==4.12.2
tzdata==2024.1
uri-template==1.3.0
urllib3==2.2.3
vtk==9.3.1
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
Werkzeug==3.0.4
wheel==0.44.0
widgetsnbextension==4.0.13
wrapt==1.16.0
wslink==2.2.2
xgboost==2.1.1
yarl==1.18.3
zipp==3.20.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyFluent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions