Error in the example code "Modelling the Cavitation" #2454
Unanswered
Sriram14357
asked this question in
Q&A
Replies: 3 comments 1 reply
-
I encountered the same error and I hope someone can solve it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Which Ansys Fluent version are you using ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@Sriram14357 Current script is compatible with 25R1. It should work with 24R2 due to backward compatibility support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting errors in line 3 in the boundary condition section. can any one tell me why?
RuntimeError Traceback (most recent call last)
Cell In[11], line 3
1 inlet_1 = solver.setup.boundary_conditions.pressure_inlet["inlet_1"].phase
----> 3 inlet_1["mixture"] = {
4 "momentum": {
5 "gauge_total_pressure": {"value": 500000},
6 "supersonic_or_initial_gauge_pressure": {"value": 449000},
7 "direction_specification_method": "Normal to Boundary",
8 },
9 "turbulence": {
10 "turbulent_specification": "Intensity and Viscosity Ratio",
11 "turbulent_intensity": 0.05,
12 "turbulent_viscosity_ratio_real": 10,
13 },
14 }
File d:\Python\PyFluent\pyfluent\Lib\site-packages\ansys\fluent\core\solver\flobject.py:1160, in _NonCreatableNamedObjectMixin.setitem(self, name, value)
1158 if not child:
1159 child = self._create_child_object(name)
-> 1160 child.set_state(value)
File d:\Python\PyFluent\pyfluent\Lib\site-packages\ansys\fluent\core\solver\flobject.py:327, in SettingsBase.set_state(self, state, **kwargs)
325 return self.flproxy.set_var(self.path, self.to_scheme_keys(kwargs))
326 else:
...
--> 489 raise RuntimeError("Key '" + str(k) + "' is invalid")
490 return ret
491 else:
RuntimeError: Key 'momentum' is invalid
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Beta Was this translation helpful? Give feedback.
All reactions