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 2828from ansys .fluent .core import config
2929from ansys .fluent .core .examples import download_file
3030from ansys .fluent .core .pyfluent_warnings import PyFluentUserWarning
31- from ansys .fluent .core .solver import Viscous
31+ from ansys .fluent .core .solver import VelocityInlets , Viscous
3232from ansys .fluent .core .solver .flobject import (
3333 DeprecatedSettingWarning ,
34+ NamedObject ,
3435 _Alias ,
3536 _InputFile ,
3637 _OutputFile ,
@@ -798,7 +799,9 @@ def test_setting_string_constants(mixing_elbow_settings_session):
798799@pytest .mark .fluent_version (">=24.2" )
799800def test_named_object_commands (mixing_elbow_settings_session ):
800801 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