DTUWindEnergy / PyWake

Mirror of https://gitlab.windenergy.dtu.dk/TOPFARM/PyWake
MIT License
72 stars 26 forks source link

Threads and CPU usage #3

Closed viktorsmari closed 1 year ago

viktorsmari commented 1 year ago

I have a Webapp that runs Python scripts to run PyWake and I notice that my 6 CPU server only uses 1 thread.

Does PyWake use multiple threads?

madsmpedersen commented 1 year ago

Please use the issue tracker on https://gitlab.windenergy.dtu.dk/TOPFARM/PyWake/-/issues, as this github repos is just a mirror for integration with zenodo

There is a n_cpu argument for for windFarmModel.call and windFarmModel.aep which defaults to 1. Setting it to 6 or None (all available cpus) will result in parallel execution