[TRNSYS-users] Coupling Trnsys and Matlab
Widl Edmund
Edmund.Widl at ait.ac.at
Tue Jan 21 03:42:23 PST 2020
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 at 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 at lists.onebuilding.org>
Cc: SALMA LAHMAR <s.lahmar at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20200121/4b9f80a7/attachment.htm>
More information about the TRNSYS-users
mailing list