필터 지우기
필터 지우기

Does anyone know how to verificate a Matlab Code with TRNSYS?

조회 수: 4 (최근 30일)
Enes
Enes 2023년 4월 1일
답변: Anamika 2023년 6월 16일
I have a Matlab Code of a solarthermal system which generates the outlet fluid temperature. They have to have the same course. I don´t know how to customize the Matlab Code so I can bring them into line. I attached 2 pictures of the final results where you can see both graphs.
I hope you can help me.
Best regards
  댓글 수: 1
Luke Halberstadt
Luke Halberstadt 2023년 6월 2일
Can you provide the MATLAB code used to generate the outlet fluid temperature? Are you using Simulink or Simscape for this in addition to MATLAB?

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

채택된 답변

Anamika
Anamika 2023년 6월 16일
TRNSYS is a simulation software program which is used to simulate and analyze the energy systems, you can verify your MATLAB code with TRNSYS by following these steps, first you can do is start by defining a TRNSYS model that corresponds to your MATLAB model and also you will have to specify all the variables, input and output streams, and system components then make sure that the model is accurate and complete. Second you can do is export your MATLAB code as a function or a script that can be called externally using a command-line interface. Third you can do is calling the MATLAB code from within the TRNSYS model and execute the model and then analyze the results obtained from executing the TRNSYS model and MATLAB code, compare the results and try to find any errors if it's there, if you find errors, make the modifications to the MATLAB code as well as to the TRNSYS model to resolve those issues and repeat this process until the MATLAB code runs accurately within the TRNSYS model. After updating the TRNSYS model and MATLAB code, execute the model and verify the results.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by