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

Re: [TRNSYS-users] TRNEdit pb



Dear Stuart,

Many thanks for the reply but all the file were indeed present in the same folder.

It seems that the TRNEdit application does not work for coupled CONTAM-TRNSys cases (at least on mine…) but I managed to write the .dck file with matlab (the pb was on option regarding ‘\r\n’ using a regexp function and then the fprintf one).

For anyone :

Reading the file and spliting it for every line

a = fopen(*.dck);

A = fscanf(a,'%c');

fclose(a);

[start_idx, end_idx, extents, matches, tokens,names, splits] = regexp(A,'\r\n');

Then you change whatever you want in any part (the splits variable is a vector of cell of all the *.dck lines)

Then writing again the new *.dck file

file = fopen(‘new_file.dck’,'wt');

for ii = 1:length(splits)

        fprintf(file,'%s\n',(splits{ii}));

end

fclose(file)

then launching the coupled simulation

!C:\Trnsys17\Exe\TRNExe.exe C:\xxx\new_file.dck /h

 

So the results are now even easier since I launch the same .dck name but with the changed parameters I want and save the .prj and .sim in some Runx name in order to post-treat the resultst afterward.

 

Many thanks,

Xavier

 

De : Dols, William Stuart (Fed) [mailto:william.dols@nist.gov]
Envoyé : mardi 29 août 2017 20:04
À : FAURE Xavier 245257 <Xavier.FAURE@cea.fr>; TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Objet : RE: [TRNSYS-users] TRNEdit pb

 

Xavier,
Make sure you have all the input files located in the correct place.
For example, the errors you show will occur if the VEF file is not located as specified for Type98.

cid:image001.jpg@01D3217A.6D1E37E0

And this one if the PRJ file is not found.
cid:image005.png@01D320CE.12F9F800

Calling syntax is as specified in TRNSYS18 Manual.
C:\Program Files\TRNSYS18\Exe\TRNExe.exe C:\MyPRJs\cottage-dcv-32.dck /h

 

- Stuart

 

From: TRNSYS-users [mailto:trnsys-users-bounces@lists.onebuilding.org] On Behalf Of FAURE Xavier 245257 via TRNSYS-users
Sent: Tuesday, August 29, 2017 12:20 PM
To: TRNSYS users mailing list at OneBuilding.org <
trnsys-users@lists.onebuilding.org>
Subject: Re: [TRNSYS-users] TRNEdit pb

 

Please,

Does someone know how to launch batch simulation for a TRNSys-CONTAM project (see message below) ?

I’ve also tried using matlab to change the .dck file but I’m stuck on some new line or carriage return character (\r or \n).

But I cannot fix the problem….

Aside from the TRENEdit pb if someone is able to write the dck file with matlab. I’d would be grateful to have the solution…

Thanks by advance for any help on this.

 

Xavier

 

 

De : FAURE Xavier 245257
Envoyé : jeudi 24 août 2017 13:33
À : TRNSYS users mailing list at OneBuilding.org <
trnsys-users@lists.onebuilding.org>
Objet : [TRNSYS-users] TRNEdit pb

 

Dear all,

I’m trying to launch some parametric simulation using TRNEdit but I hav the following problem.

The first call leads to the following message :

cid:image004.jpg@01D320CD.BF1DEBB0

All the *.dck file are created and I can launch them one by one using the TRNSys menu in TRNEdit interface and everything is OK.

But I wanted to launch a lot in batch mode….

the simulations are contam coupled.

Thanks by advance for any help.