Skip to content

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

@ochernuk

Description

@ochernuk

πŸ” Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions