{"id":44268,"library":"ansys-fluent-core","title":"PyFluent","description":"PyFluent provides Pythonic access to Ansys Fluent, enabling scripting, automation, and customization of CFD simulations. Current version 0.39.0 requires Python <3.15,>=3.10. Regular releases follow Ansys release cadence.","status":"active","version":"0.39.0","language":"python","source_language":"en","source_url":"https://github.com/ansys/pyfluent","tags":["CFD","simulation","ansys"],"install":[{"cmd":"pip install ansys-fluent-core","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"wrong":"from ansys.fluent.core import FluentSession","symbol":"FluentSession","correct":"from ansys.fluent.core import FluentSession"}],"quickstart":{"code":"import os\nfrom ansys.fluent.core import launch_fluent\n\nsession = launch_fluent()\nprint(session)\nsession.exit()","lang":"python","description":"Launches Ansys Fluent and prints session object."},"warnings":[{"fix":"Change imports to `from ansys.fluent.core import FluentSession`.","message":"Versions prior to 0.20.0 used `from pyfluent import Session`; now use `from ansys.fluent.core import FluentSession`. Update all imports.","severity":"breaking","affected_versions":"<0.20.0"},{"fix":"Use `from ansys.fluent.core import launch_fluent`.","message":"The `ansys.fluent.core.launcher` module is deprecated; use `ansys.fluent.core.launch_fluent` directly.","severity":"deprecated","affected_versions":">=0.30.0"},{"fix":"Use `with launch_fluent() as session:` or ensure `session.exit()` is called.","message":"FluentSession is context-managed; not using `with` may leave Fluent running. Always use as context manager or call `.exit()` explicitly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.39.0':19 '3.10':23 '3.15':22 'access':5 'ansi':7,27,32 'autom':11 'cadenc':29 'cfd':15,30 'current':17 'custom':13 'enabl':9 'fluent':8 'follow':26 'provid':3 'pyfluent':1,2 'python':4,21 'regular':24 'releas':25,28 'requir':20 'script':10 'simul':16,31 'version':18","created_at":"2026-06-07T12:49:17.803940+00:00","updated_at":"2026-06-07T12:49:17.803940+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'FluentSession' from 'ansys.fluent.core' (/tmp/tmpx7pe6yh3/venv/lib/python3.12/site-packages/ansys/fluent/core/__init__.py). Did you mean: 'FluentVersion'?"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ansys/pyfluent","github":"https://github.com/ansys/pyfluent","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}