Does pyfr support quasi-2D simulation with extrude direction using pseudo-spectral methods?

Dear Pyfrer:
I am very new to pyfr. I want to know does pyfr support quasi 2D simulation with one direction by spectrum method?

cheers

Not at the moment I’m afraid.

Cheers

Peter

Dear Prof. Vincent:
can I turn of cuda and make comparison for pure cpu and by cuda accelerations?
because I noticed even if when I don’t have have backend-cuda, still the solver will run on graphic card.

cheers

Hi Zhang,

Thanks for your interest in PyFR. If you run pyfr-sim -h you will get:

usage: pyfr-sim [-h] [–verbose] [–backend BACKEND] [–progress]
[–nansweep N]
{run,restart} …

Runs a PyFR simulation

positional arguments:
{run,restart} sub-command help
run run --help
restart restart --help

optional arguments:
-h, --help show this help message and exit
–verbose, -v
–backend BACKEND, -b BACKEND
Backend to use
–progress, -p show a progress bar
–nansweep N, -n N check for NaNs every N steps

Note the -b option to choose the backend you want to run with.

The default is -b cuda which will run the CUDA backend and look for an Nvidia GPU. If you want to use your CPU you can use the -b openmp backend, and if you want to use your AMD GPU you will need to use the -b opencl backend. However note the dependencies listed here http://www.pyfr.org/user_guide.php for each backend.

Cheers

Peter

Dear Dr Peter:
thanks for your reply. I tried to use parameter but it doesn’t work. here is the error message:

wxw@cu02 test]$ pyfr-sim run couette_flow_2d.pyfrm couette_flow_2d.ini -b openmp
[cu02:30246] [[13141,1],0] ORTE_ERROR_LOG: Data for specified key not found in file btl_usnic_cclient.c at line 88
[cu02][[13141,1],0][btl_usnic_cclient.c:89:ompi_btl_usnic_connectivity_client_init] usNIC connectivity client unable to db_fetch local leader
usage: pyfr-sim [-h] [–verbose] [–backend BACKEND] [–progress]
[–nansweep N]
{run,restart} …
pyfr-sim: error: unrecognized arguments: -b openmp

I suppose it is because I don’t have openmp installed on the node if I can run serially without this parallel parameter?

cheers

As per the usage statement the BACKEND argument must come before
run/restart. Changing the command to

  $ pyfr-sim -b openmp run couette_flow_2d.pyfrm couette_flow_2d.ini

should sort it out.

Regards, Freddie.