You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a fluent case using partially premixed combustion. To do this, I need to change the species model to partially-premixed-combustion. This mode is referenced in the documentation here and with all its options here. However, when trying to change the mode, the setting is not applied and the state remains unchanged, making it impossible to set the partially premixed options.
📝 Steps to reproduce
Here is my script:
importansys.fluent.coreaspyfluent# Start the fluent instancesolver=pyfluent.launch_fluent(
precision=pyfluent.Precision.DOUBLE,
dimension=pyfluent.Dimension.TWO,
cwd="fluent_files",
# processor_count=2
)
# Load the meshsolver.settings.file.read_mesh(
file_name="old_chamber.msh"
)
# Set the 2D space typegeneral=pyfluent.General(settings_source=solver)
general.solver.two_dim_space="axisymmetric"# general.print_state()# Set turbulent modelviscous=pyfluent.Viscous(settings_source=solver)
viscous.model="k-epsilon"# viscous.print_state()# Turn energy onenergy=pyfluent.Energy(settings_source=solver)
energy.enabled=True# energy.print_state()# Set the chemistry typespecies=pyfluent.Species(settings_source=solver)
print(species.model.option.allowed_values())
species.model.option="partially-premixed-combustion"species.model.print_state()
# Try to change a parameterspecies.partially_premixed_model_options.chemistry.state_relation.allowed_values()
And here is the traceback:
Multicore SMT processors detected. Processor affinity set!
Reading "old_chamber.msh"...
Buffering for file scan...
38375 nodes, binary.
1062 nodes, binary.
76941 2D interior faces, zone 1, binary.
338 2D interior faces, zone 2, binary.
494 2D wall faces, zone 6, binary.
25 2D velocity-inlet faces, zone 7, binary.
20 2D velocity-inlet faces, zone 8, binary.
400 2D wall faces, zone 9, binary.
78 2D wall faces, zone 10, binary.
5 2D wall faces, zone 11, binary.
40 2D pressure-outlet faces, zone 12, binary.
38905 quadrilateral cells, zone 3, binary.
Building...
mesh
materials,
interface,
domains,
zones,
outlet
wall_lip
wall_injector
wall_chamber
air_inlet
fuel_inlet
centerline
solid-geom-1_surface
geom-1_surface
interior-geom-1_surface
parallel,
Done.
Adjusting the following setting:
Changing Discretization Scheme for Turbulent Kinetic Energy: from: Second Order Upwind to: First Order Upwind
['off', 'species-transport', 'non-premixed-combustion', 'premixed-combustion', 'partially-premixed-combustion', 'pdf-transport']
option : off
number_vol_spec : False
Traceback (most recent call last):
File "c:\Users\paulc\Documents\Projets\rozanoff-fluent-simulation\github_issue_script.py", line 38, in <module>
species.partially_premixed_model_options.chemistry.state_relation.allowed_values()
File "C:\Users\paulc\Documents\Projets\rozanoff-fluent-simulation\venv\lib\site-packages\ansys\fluent\core\solver\flobject.py", line 1077, in __getattribute__
attr = super().__getattribute__(name)
AttributeError: 'species' object has no attribute 'partially_premixed_model_options'.
The most similar API names are:
<solver_session>.setup.models.species.partially_premixed_model_options (Object)
<solver_session>.tui.define.models.species.partially_premixed_combustion (Command)
<solver_session>.tui.define.models.species.partially_premixed_combustion_expert (Command)
<solver_session>.tui.define.models.species.partially_premixed_combustion_grids (Command)
<solver_session>.tui.define.models.species.partially_premixed_properties (Command)
It can be noted that although the species model is set to partially-premixed-combustion and although this value appears in the allowed values, the model option remains off causing the crash when trying to print the allowed values for the state relation.
If needed, I can provide the mesh but I don't think it is related to the issue.
🔍 Before submitting the issue
🐞 Description of the bug
I would like to create a fluent case using partially premixed combustion. To do this, I need to change the species model to
partially-premixed-combustion
. This mode is referenced in the documentation here and with all its options here. However, when trying to change the mode, the setting is not applied and the state remains unchanged, making it impossible to set the partially premixed options.📝 Steps to reproduce
Here is my script:
And here is the traceback:
It can be noted that although the species model is set to
partially-premixed-combustion
and although this value appears in the allowed values, the model option remainsoff
causing the crash when trying to print the allowed values for the state relation.If needed, I can provide the mesh but I don't think it is related to the issue.
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2024.R2
🐍 Which Python version are you using?
3.10
📦 Installed packages
The text was updated successfully, but these errors were encountered: