File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 28
28
from ansys .fluent .core import config
29
29
from ansys .fluent .core .examples import download_file
30
30
from ansys .fluent .core .pyfluent_warnings import PyFluentUserWarning
31
- from ansys .fluent .core .solver import Viscous
31
+ from ansys .fluent .core .solver import VelocityInlets , Viscous
32
32
from ansys .fluent .core .solver .flobject import (
33
33
DeprecatedSettingWarning ,
34
+ NamedObject ,
34
35
_Alias ,
35
36
_InputFile ,
36
37
_OutputFile ,
@@ -798,7 +799,9 @@ def test_setting_string_constants(mixing_elbow_settings_session):
798
799
@pytest .mark .fluent_version (">=24.2" )
799
800
def test_named_object_commands (mixing_elbow_settings_session ):
800
801
solver = mixing_elbow_settings_session
801
- solver .settings .setup .boundary_conditions .velocity_inlet .list ()
802
- solver .settings .setup .boundary_conditions .velocity_inlet .list_properties (
803
- object_name = "hot-inlet"
804
- )
802
+ inlets = VelocityInlets (solver )
803
+ inlets .list ()
804
+ inlets .list_properties (object_name = "hot-inlet" )
805
+ if solver .get_fluent_version () >= FluentVersion .v261 :
806
+ NamedObject .list (inlets )
807
+ NamedObject .list_properties (inlets , object_name = "hot-inlet" )
You can’t perform that action at this time.
0 commit comments