fluent_version#
Provides a module to get Fluent version.
Exceptions:
Raised when Ansys version is not found. |
|
Raised when a comparison can't be completed. |
Classes:
|
An enumeration over supported Fluent versions. |
Functions:
|
Get Fluent version. |
|
Get Fluent version for file name. |
- exception ansys.fluent.core.utils.fluent_version.AnsysVersionNotFound#
Bases:
RuntimeError
Raised when Ansys version is not found.
- exception ansys.fluent.core.utils.fluent_version.ComparisonError#
Bases:
RuntimeError
Raised when a comparison can’t be completed.
- __init__()#
- class ansys.fluent.core.utils.fluent_version.FluentVersion(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
An enumeration over supported Fluent versions.
Examples
FluentVersion(“23.2.0”) == FluentVersion.v232
FluentVersion.v232.number == 232
FluentVersion.v232.awp_var == ‘AWP_ROOT232’
Attributes:
Get the Fluent version in AWP environment variable format.
Get the Fluent version as a plain integer.
Methods:
Return the version member of the current release.
Return the version member corresponding to the most recent, available ANSYS installation.
- property awp_var#
Get the Fluent version in AWP environment variable format.
- classmethod current_release()#
Return the version member of the current release.
- Returns:
FluentVersion
FluentVersion member corresponding to the latest release.
- classmethod get_latest_installed()#
Return the version member corresponding to the most recent, available ANSYS installation.
- Returns:
FluentVersion
FluentVersion member corresponding to the newest Fluent version.
- Raises:
AnsysVersionNotFound
If an Ansys version cannot be found.
- property number#
Get the Fluent version as a plain integer.
- v222 = '22.2.0'#
- v231 = '23.1.0'#
- v232 = '23.2.0'#
- v241 = '24.1.0'#
- v242 = '24.2.0'#
- v251 = '25.1.0'#
- ansys.fluent.core.utils.fluent_version.get_version(session=None)#
Get Fluent version.
- ansys.fluent.core.utils.fluent_version.get_version_for_file_name(version=None, session=None)#
Get Fluent version for file name.