Page 1 of 1

Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Tue Feb 04, 2020 4:40 pm -1100
by Jacqueline T.
Hi everyone,

I was wondering if it is possible to run Wufi Pro simulations using an external program, like Matlab or Python?

I developed a model that generates ASCII files, to use in Wufi Pro as an air source. I need to run a large number of simulations, and each simulation needs to be iterated between my model and Wufi.

So I was wondering if it is possible to run Wufi Pro using something like Matlab or Python, so I can automate a large number of simulations?

Thanks a lot!

Jacqui

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Tue Feb 04, 2020 8:17 pm -1100
by Christian Bludau
Dear Jacqui,

you can run ready made simulations by command line. For that see the program help of WUFI.
But it is not possible to edit the projects by external sources.
We are working on a tool for that, but this will need some more time before we will release that.

Christian

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Sun Feb 09, 2020 11:20 am -1100
by Jacqueline T.
Hi Christian,

Thanks a lot for the quick respond.

I saw the Batch Jobs section in the Wufi help. I was now wondering if Wufi can automatically export results (in my case cavity temperatures on monitoring position) to a ASCII-file after simulating? This way I can just reconnect the results file, then externally automate to change the first input file (in my case air source) and run the simulation again. Maybe...

Thanks
Jacqui

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Sun Feb 09, 2020 9:35 pm -1100
by Christian Bludau
Hi Jacqui,
yes, ASCII-export is possible in the batch mode. See the -v option.
Christian

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Wed Mar 04, 2020 3:53 pm -1100
by Jacqueline T.
Hi Christian,

I tried to get the air cavity temperature via cmd command. Now I am having problems to identify the list item number for the cavity temperature correct. I was assuming, if -v01 = solar, that means I count down from rain, solar, etc .... to where my monitoring position is. I was looking it up in Outputs - ASCII Export... - Courses (see attached screenshot)

My item (monitoring position) would be position 71 (temperature air layer) in the list. But the direct export didn't align with the cmd export. I was wondering if I counted wrong but when I tried the same thing with solar, data which is the second in the list and should be -v01,the exported files did not match again. The cmd data was no solar data. I am now wondering if I look up the wrong source for the list item?

I hope my problem makes sense how I described it...
Thanks for your help!

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Thu Mar 05, 2020 1:09 am -1100
by Christian Bludau
Hi Jaqueline,
the count starts at the bottom of the list.

Examples:
-v1 exports the last course (the total water content).
-v0000000001 exports the tenth-to-last course (what it contains depends on the number of layers and monitoring positions in the current project).
-v1001 exports the last course (the total water content) and the fourth-to-last course.

You can find a description about that in the WUFI program help, search for "batch"
Christian

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Thu Mar 05, 2020 1:50 pm -1100
by Jacqueline T.
Thanks a lot! It works this way :)

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Mon Jun 08, 2020 1:08 am -1100
by AAH
Christian Bludau wrote: Tue Feb 04, 2020 8:17 pm -1100 Dear Jacqui,

you can run ready made simulations by command line. For that see the program help of WUFI.
But it is not possible to edit the projects by external sources.
We are working on a tool for that, but this will need some more time before we will release that.

Christian

Dear Christian,

So it is not possible to edit e.g. thicknesses of different layers, or rain absorption factors, etc. externally? What is possible to edit externally?

Regards
Akram

Re: Is Wufi Pro compatible with Matlab or Python to handle large iterations?

Posted: Tue Jun 16, 2020 8:38 pm -1100
by Christian Bludau
Hi Akram,
the project files can not edited externally.
Best regards
Christian