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. »

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: 1161
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 »

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. »

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: 1161
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 »

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. »

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: 1161
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 »

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. »

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 »

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: 1161
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 »

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