[TRNSYS-users] Vector of data as OUTPUT of a component

David BRADLEY via TRNSYS-users trnsys-users at lists.onebuilding.org
Wed Mar 8 08:27:01 PST 2017


Miguel,

   Defining an output for each component of your vectors is the simplest 
way to proceed. If you do not need to use the elements of those vectors 
as inputs to other components during the simulation but instead only 
want them as results then you could set up your component to print them 
into an output file instead of putting them in the out() array.

kind regards,

  David



On 03/07/2017 07:04, Miguel Angel Reyes via TRNSYS-users wrote:
>
> Hi All,
>
> I have created my own TRNSYS component, and it is working fine 
> (encoded, compiled and tracked using MVS2005 project solution). 
> Outputs of my model are 4 temperatures vectors of size 10 each. Vector 
> components are updated every time step.
>
> Example:
>
> Ta (a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
>
> Tb (b1,b2,b3,b4,b5,b6,b7,b8,b9,b10)
>
> Tc (c1,c2,c3,c4,c5,c6,c7,c8,c9,c10)
>
> Td (d1,d2,d3,d4,d5,d6,d7,d8,d9,d10)
>
> I’d like to know how could I do in order to set that information as 
> output. Do I need to define an output for each component and vector 
> (what will mean having 40 outputs) or is there any direct way to refer 
> OUT(1)=T, being T a vector of 10 components.
>
> Hope question can be understood,
>
> Miguel
>
> ---------------------------------------------------
>
> Dr. Miguel Ángel Reyes Belmonte
>
> IMDEA ENERGY Institute
>
> Avda. Ramón de la Sagra, 3
>
> Parque Tecnológico de Móstoles
>
> E-28935 Móstoles, Madrid, Spain
>
> Telf.: +34 91 737 1150
>
> e-mail: miguelangel.reyes at imdea.org <mailto:miguelangel.reyes at imdea.org>
>
> web: http://www.energy.imdea.org
>
> https://es.linkedin.com/pub/miguel-angel-reyes/7b/347/b77
>
> orcid.org/0000-0002-9666-2388
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20170308/0cb77328/attachment-0001.htm>


More information about the TRNSYS-users mailing list