File "/ENV3/lib/python3.8/site-packages/pyfr/plugins/integrate.py", line 40, in __init__
self._init_gradients(intg, rinfo)
File "/ENV3/lib/python3.8/site-packages/pyfr/plugins/integrate.py", line 128, in _init_gradients
self._gradpinfo = [(pname, privarmap.index(pname))
File "ENV3/lib/python3.8/site-packages/pyfr/plugins/integrate.py", line 128, in <listcomp>
self._gradpinfo = [(pname, privarmap.index(pname))
ValueError: 'w' is not in list
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
File "/home/jian/ENV3/lib/python3.8/site-packages/pyfr/plugins/integrate.py", line 40, in __init__
self._init_gradients(intg, rinfo)
File "/home/jian/ENV3/lib/python3.8/site-packages/pyfr/plugins/integrate.py", line 128, in _init_gradients
self._gradpinfo = [(pname, privarmap.index(pname))
File "/home/jian/ENV3/lib/python3.8/site-packages/pyfr/plugins/integrate.py", line 128, in <listcomp>
self._gradpinfo = [(pname, privarmap.index(pname))
ValueError: 'w' is not in list
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
I want to calculate numerical error of rho by using L2 norm in the entire computational domain. I write integrate plugin such like this, but the result is all the same. What did I do wrong here?
I think you have forgotten that the vortex is convecting and so their should be a time dependency in rho_exact, I think you’ll also need a mod for the periodic boundary.
The L2 errors are the same in different grids at t=0.7.
I use the ‘integrate’ above you given to compute Euler vortex, and it comes error below.
TypeError: sequence item 1: expected str instance, float found
Computing things such as Mach contours is a post-processing task. Here you’ll want to export your .pyfrs files to .vtu and then in ParaView use the calculator filter to compute the Mach number from the velocity magnitude and then apply the contour filter.