cfx_version#
Module for getting the CFX version.
Exceptions:
Raised when the Ansys version is not found. |
|
Raised when a comparison can't be completed. |
Classes:
|
Provide an enumeration over supported CFX versions. |
Functions:
|
Get the CFX version. |
|
Get the CFX version for the file name. |
- exception ansys.cfx.core.utils.cfx_version.AnsysVersionNotFound#
Bases:
RuntimeErrorRaised when the Ansys version is not found.
- class ansys.cfx.core.utils.cfx_version.CFXVersion(*values)#
Bases:
EnumProvide an enumeration over supported CFX versions.
Examples
CFXVersion(“25.2.0”) == CFXVersion.v252
CFXVersion.v252.number == 252
CFXVersion.v252.awp_var == ‘AWP_ROOT252’
Attributes:
Get the CFX version in AWP environment variable format.
Get the CFX version as a plain integer.
Version 2025 R2
Version 2026 R1
Version 2027 R1
Methods:
Get the version of the current development version.
Get the version of the current release.
Get the version corresponding to the most recent Ansys installation available.
- property awp_var#
Get the CFX version in AWP environment variable format.
- classmethod current_dev()#
Get the version of the current development version.
- Returns:
CFXVersionCFXVersion corresponding to the latest development version.
- classmethod current_release()#
Get the version of the current release.
- Returns:
CFXVersionCFXVersion corresponding to the latest release.
- classmethod get_latest_installed()#
Get the version corresponding to the most recent Ansys installation available.
- Returns:
CFXVersionCFXVersion corresponding to the newest CFX version.
- Raises:
AnsysVersionNotFoundIf an Ansys version cannot be found.
- property number#
Get the CFX version as a plain integer.
- v252 = '25.2.0'#
Version 2025 R2
- v261 = '26.1.0'#
Version 2026 R1
- v271 = '27.1.0'#
Version 2027 R1
- exception ansys.cfx.core.utils.cfx_version.ComparisonError#
Bases:
RuntimeErrorRaised when a comparison can’t be completed.
Methods:
__init__()- __init__()#
- ansys.cfx.core.utils.cfx_version.get_version(session=None)#
Get the CFX version.