how can I communicate matlab with ansys each other? as a input and output files?

조회 수: 20 (최근 30일)
I have alrady Simscape model and ansys model. I want to make communicate with each other as an output data from matlab to send to ansys fluent as an inout file.

답변 (1개)

Vidip Jain
Vidip Jain 2023년 2월 23일
If you have a Simulink/Simscape model in MATLAB, you can use MATLAB's "Simulation Data Inspector" (SDI) to log the simulation data and save it to a file. You can then read this file in ANSYS Fluent as an input file.
Here are the steps to export Simulink/Simscape model data to ANSYS Fluent:
  1. Open your Simulink/Simscape model and run a simulation.
  2. In the Simulink Editor, go to "Simulation" -> "Model Configuration Parameters" -> "Data Import/Export".
  3. Under "Data Export", select "Save simulation output as" and specify the name and location of the output file.
  4. In the same dialog box, choose the desired format for the output file. ANSYS Fluent supports various file formats, including CSV and ASCII.
  5. Run the simulation again to generate the output file.
  6. Open ANSYS Fluent and create a new case or open an existing one.
  7. Go to "File" -> "Read..." and select the output file.
  댓글 수: 1
Arman Burkitbayev
Arman Burkitbayev 2023년 2월 24일
Thank you very much. I understand this option. However, I am interested to make two or more models in Simulink and Ansys Fluent to connect them and make live data change during the transient simulation. is it possible? is it doable?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computational Fluid Dynamics (CFD)에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by