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]
Xavier, And this one if the PRJ file is not found. - Stuart From: TRNSYS-users [mailto:trnsys-users-bounces@lists.onebuilding.org]
On Behalf Of FAURE Xavier 245257 via TRNSYS-users 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
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 : 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. |