フィルターのクリア

ANSYS Fluent and Simulink co-simulation in real time.

29 ビュー (過去 30 日間)
vaibhav gaharwar
vaibhav gaharwar 2023 年 10 月 13 日
回答済み: Kothuri 2024 年 9 月 13 日 15:09
Hello,
I want to test a temperature and air flow pattern in a room in ANSYS Fluent but the same time i want a co-simulation with Simulink so that i can modify parameters in Simulink and observe the variation in Fluent. How to do that....??
thanx
  2 件のコメント
Nguyen Xuan
Nguyen Xuan 2024 年 8 月 7 日
I also find the solution for this problem. Have you found a solution yet?
vaibhav gaharwar
vaibhav gaharwar 2024 年 8 月 9 日
no..can you plz share the solution? i am very greatful to you..thanx

サインインしてコメントする。

回答 (1 件)

Kothuri
Kothuri 2024 年 9 月 13 日 15:09
I understand that you want to conduct a co-simulation between ANSYS Fluent and Simulink to dynamically adjust parameters in Simulink.
For Co-simulation between ANSYS Fluent and Simulink, you need to
  • Build your model in ANSYS Fluent by defining the geometry, mesh, boundary conditions, and initial conditions for the temperature and airflow pattern in the room.
  • Develop your control model in Simulink, which will allow you to modify parameters and observe their effects.
  • Use an S-Function to communicate with Fluent.
  • Export your Fluent model as a Functional Mock-up Unit (FMU). ANSYS provides a System Coupling tool that can facilitate co-simulation with other software.
  • Import the FMU using Simulink’s FMU import capabilities to integrate the Fluent model. You can refer the below link for more info on FMU.
  • Develop a custom S-Function in Simulink to interface with Fluent.
  • Establish the communication protocol between Fluent and Simulink. This involves setting up the data exchange parameters, such as time steps and synchronization points.
  • Implement Communication through
Data Exchange: Set up a mechanism for exchanging data between Fluent and Simulink. This could be through:
Shared Files: Writing and reading data to/from files.
Sockets: Using network sockets for real-time communication.
Direct API Calls: If available, use APIs provided by ANSYS for direct communication.
  • Execute the co-simulation, allowing Simulink to modify parameters in real-time and observe the resulting variations in Fluent.
You can refer the below file exchange for more info on interactive link between MATLAB and ANSYS
Hope this helps!

製品


リリース

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by