ansys / ansys/pysystem-coupling

step() does not work when loading participant sessions to PySyC

Open
#217 2 comments 1 reaction 1 assignee Claimed by @SeunSomefun View on GitHub
bug
Dominant language
Python
Stars
12
Forks
6
Avg merge
1d 18m
Merged PRs (30d)
6

Description

### 🔍 Before submitting the issue

- [X] I have searched among the existing issues
- [X] I am using a Python virtual environment

### 🐞 Description of the bug

In issue https://github.com/ansys/pysystem-coupling/issues/148, functionality was added to allow PySyC to run a Fluent participant by passing it a handle to a PyFluent solver session. However, the cosimulation can only be run by calling `syc_session.solution.solve()`. Using `syc_session.solution.step()` instead does not start the Fluent participant(s), meaning that the solve hangs indefinitely.

### 📝 Steps to reproduce

1. Set up a SyC case where at least one of the participants is Fluent.
2. When calling `syc_session.setup.add_participant()`, pass the PyFluent session handle to it.
3. Once setup is complete, call the `step()` method. The cosimulation will not start Fluent and hang indefinitely.

This Jupyter Notebook reproduces the issue (based on this [example case](https://github.com/ochernuk/pysystemcoupling-examples/tree/main/fluent-fluent-pipe-cht)): [pipe_cht_step_bug.zip](https://github.com/ansys/pysystem-coupling/files/13239536/pipe_cht_step_bug.zip)

### 💻 Which operating system are you using?

Windows

### 📀 Which ANSYS version are you using?

Fluent 24R1, Build Time: Oct 19 2023 02:33:18 EDT, Build Id: 168, Revision: `d2723f8aab`
System Coupling 24R1, Build date: 2023-10-18T21:42

### 🐍 Which Python version are you using?

3.11

### 📦 Installed packages

```shell
ansys-api-fluent==0.3.18
ansys-api-platform-instancemanagement==1.0.0
ansys-api-systemcoupling==0.1.0
ansys-fluent-core==0.18.1
ansys-platform-instancemanagement==1.1.2
-e git+https://github.com/ansys/pysystem-coupling.git@82e50fe7c81a1d59c888df28a99760e4b64bb614#egg=ansys_systemcoupling_core
appdirs==1.4.4
certifi==2023.7.22
charset-normalizer==3.3.2
docker==6.1.3
googleapis-common-protos==1.61.0
grpcio==1.59.2
grpcio-health-checking==1.48.2
grpcio-status==1.48.2
idna==3.4
importlib-metadata==6.8.0
lxml==4.9.3
numpy==1.26.1
packaging==23.2
pandas==2.1.2
platformdirs==3.11.0
protobuf==3.20.3
psutil==5.9.6
python-dateutil==2.8.2
pytz==2023.3.post1
pywin32==306
PyYAML==6.0.1
requests==2.31.0
six==1.16.0
tzdata==2023.3
urllib3==2.0.7
websocket-client==1.6.4
zipp==3.17.0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.