2D Couette Flow tutorial have a long simulation time

43 views
Skip to first unread message

Stian Hjorteland

unread,
Feb 17, 2020, 7:08:25 AM2/17/20
to PyFR Mailing List
Hi guys!

I am new to PyFR and was trying to run the tutorial case called 2D Couette Flow. This works fine, the only problem is that the simulation is estimated to spend 80 hours. This should be a simple 2D simulation, and it should be done in less then 10minutes i assume. I use a very strong computer which is suitable for simulations. Any ideas on why the simulation time is this large?

Regards Stian

Freddie Witherden

unread,
Feb 17, 2020, 7:16:25 AM2/17/20
to pyfrmai...@googlegroups.com
Hi Stian,
Assuming you're running with the OpenMP backend, try running the case
using a single thread via OMP_NUM_THREADS=1.

Regards, Freddie.

Stian Hjorteland

unread,
Feb 17, 2020, 7:29:30 AM2/17/20
to PyFR Mailing List
Hi Freddie, thanks for the quick repply!

Yes I am running on OpenMP. I followed the steps on PyFR.org, and pasted this into my .ini for the tutorial:

[backend-openmp]
cc = gcc
cblas = /usr/lib/x86_64-linux-gnu/blas/libblas.so.3
cblas-type = parallel

Im not a 100% sure about what you mean with a single thread?


Stian

Giorgio Giangaspero

unread,
Feb 17, 2020, 9:39:58 AM2/17/20
to Stian Hjorteland, PyFR Mailing List
Hi Stian
assuming you are running PyFR on Linux, before running it issue the command
export OMP_NUM_THREADS=1

this will set the number of openMP threads to one. Then in the same terminal window, call pyfr as you were doing before.

Best
Giorgio

Giorgio Giangaspero


--
You received this message because you are subscribed to the Google Groups "PyFR Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyfrmailingli...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pyfrmailinglist/15fbbb50-9d7e-4d2b-b049-d496f59a3541%40googlegroups.com.

Stian Hjorteland

unread,
Feb 17, 2020, 10:35:33 AM2/17/20
to Giorgio Giangaspero, PyFR Mailing List
Thank you so much for the quick repply! I will try it out!
Reply all
Reply to author
Forward
0 new messages