[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Coupling Trnsys and Matlab



Dear Salma,

 

A possible option to accomplish this is to use the TRNSYS FMU Export Utility [1], which allows to export TRNSYS models as so-called “Functional Mock-up Units” (FMUs). FMUs are software modules intended for co-simulation, which can be used in this specific case to connect to TRNSYS. To use the TRNSYS FMU, you have to import it to MATLAB, which can be done for example with the FMI++ MATLAB Toolbox [2] and others.

 

There’s one caveat though: At the moment, the TRNSYS FMU Export Utility only works with TRNSYS 17, which is a 32-bit application. When accessing TRNSYS via an FMU, also MATLAB would have to be 32-bit. This means you would have to use MATLAB version R2015b (which was the last 32-bit version of MATLAB) or older.

 

Best regards,

Edmund

 

[1] http://trnsys-fmu.sourceforge.io

[2] http://matlab-fmu.sourceforge.io

 

 

From: TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org> On Behalf Of SALMA LAHMAR via TRNSYS-users
Sent: Dienstag, 21. Jänner 2020 09:39
To: TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Cc: SALMA LAHMAR <s.lahmar@enim.ac.ma>
Subject: [TRNSYS-users] Coupling Trnsys and Matlab

 

Hi everyone,

 

I am trying to make an optimization procedure in Matlab and I want to use Trnsys each time is necessary to evaluate the objective function.
How can I do this in Matlab code and in Trnsys?

 

Regards

Salma