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

All about WUFI Pro
Post Reply
Jacqueline T.
WUFI User
WUFI User
Posts: 4
Joined: Mon Jan 08, 2018 10:59 pm -1100

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

Post by Jacqueline T. » Tue Feb 04, 2020 4:40 pm -1100

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

Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1130
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

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

Post by Christian Bludau » 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

Jacqueline T.
WUFI User
WUFI User
Posts: 4
Joined: Mon Jan 08, 2018 10:59 pm -1100

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

Post by Jacqueline T. » Sun Feb 09, 2020 11:20 am -1100

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

Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1130
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

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

Post by Christian Bludau » Sun Feb 09, 2020 9:35 pm -1100

Hi Jacqui,
yes, ASCII-export is possible in the batch mode. See the -v option.
Christian

Jacqueline T.
WUFI User
WUFI User
Posts: 4
Joined: Mon Jan 08, 2018 10:59 pm -1100

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

Post by Jacqueline T. » Wed Mar 04, 2020 3:53 pm -1100

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!

Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1130
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

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

Post by Christian Bludau » Thu Mar 05, 2020 1:09 am -1100

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

Jacqueline T.
WUFI User
WUFI User
Posts: 4
Joined: Mon Jan 08, 2018 10:59 pm -1100

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

Post by Jacqueline T. » Thu Mar 05, 2020 1:50 pm -1100

Thanks a lot! It works this way :)

AAH
WUFI User
WUFI User
Posts: 1
Joined: Mon Jun 08, 2020 12:52 am -1100

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

Post by AAH » Mon Jun 08, 2020 1:08 am -1100

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

Christian Bludau
WUFI SupportTeam IBP
WUFI SupportTeam IBP
Posts: 1130
Joined: Tue Jul 04, 2006 10:08 pm -1100
Location: IBP Holzkirchen, the home of WUFI
Contact:

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

Post by Christian Bludau » Tue Jun 16, 2020 8:38 pm -1100

Hi Akram,
the project files can not edited externally.
Best regards
Christian

Post Reply