ansys / pysystem-coupling

Python API to System Coupling
https://systemcoupling.docs.pyansys.com/
MIT License
7 stars 4 forks source link

Check for Fluent participant version and block execution if Fluent is newer than System Coupling #321

Open ochernuk opened 5 months ago

ochernuk commented 5 months ago

šŸ” Before submitting the issue

šŸž Description of the bug

If I launch a Fluent instance using PyFluent and then pass that instance to PySystemCoupling via add_participant command, PySystemCoupling should compare the versions and if Fluent is from a newer release than System Coupling, an error should be thrown with a descriptive error message. Otherwise, the run will fail during the solve and potentially unclear error messages.

šŸ“ Steps to reproduce

Start newer Fluent version:

fluent = pyfluent.launch_fluent(product_version = "24.2")

(set up Fluent case)

Start older System Coupling version:

syc = pysyc.launch_fluent(version = "24.1")

Add Fluent participant:

syc.add_participant(participant_session = fluent)

This should result in an error with a clear message.

šŸ’» Which operating system are you using?

Windows

šŸ“€ Which ANSYS version are you using?

24.1 and 24.2

šŸ Which Python version are you using?

3.9

šŸ“¦ Installed packages

n/a