Azzera filtri
Azzera filtri

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

4 visualizzazioni (ultimi 30 giorni)
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 Commento
Luke Halberstadt
Luke Halberstadt il 2 Giu 2023
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?

Accedi per commentare.

Risposta accettata

Anamika
Anamika il 16 Giu 2023
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.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by