|
From: <pat...@me...> - 2021-02-04 13:27:15
|
Hi Michail,
It turned out that two steps were needed to solve this:
1. Using the right paraview version: 5.7.0 (which is actually the version bundled with Ubuntu 20.04. I was inadvertently still using 5.6.0)
2. Using the latest grid2paraview.py from GitHub (grid2paraview.py from the sparta-20Nov20 release does not work).
Thanks for your help!
Patrick
From: Gallis, Michail A <ma...@sa...>
Sent: Donnerstag, 4. Februar 2021 05:00
To: pat...@me...
Cc: spa...@li...
Subject: Re: [EXTERNAL] [sparta-users] Issue with grid2paraview.py
Patrick,
Try updating to the latest version of paraview. There have been changes to paraview that were reflected to the Sparta post processing python scripts.
Michael
On Feb 3, 2021, at 8:07 AM, patrick.sturm--- via sparta-users < <mailto:spa...@li...> spa...@li...> wrote:
Hi,
I have an issue with grid2paraview.py
If I create a grid file with:
dimension 3
create_box 0 1 0 1 0 1
create_grid 10 10 10
write_grid grid
and a grid description file mir.txt:
dimension 3
create_box 0 1 0 1 0 1
read_grid grid
then
pvpython ${SPARTA_DIR}/tools/paraview/grid2paraview.py ${CASE_DIR}/mir.txt paraview_grid
gives the following error:
Traceback (most recent call last):
File "/home/pst/sparta-20Nov20/tools/paraview/grid2paraview.py", line 1290, in <module>
find_chunking(chunking, grid_desc, args)
File "/home/pst/sparta-20Nov20/tools/paraview/grid2paraview.py", line 78, in find_chunking
Cx = grid_desc["create_grid"][1]["Cx"]
KeyError: 'create_grid'
If I use create_grid instead of read_grid in the grid description file, then it works:
dimension 3
create_box 0 1 0 1 0 1
create_grid 10 10 10
This is on Ubuntu 20.04, with paraview 5.6.0, sparta-20Nov20.
Is this a bug or am I doing something stupid here?
Thanks for any suggestions.
Patrick
_______________________________________________
sparta-users mailing list
<mailto:spa...@li...> spa...@li...
<https://lists.sourceforge.net/lists/listinfo/sparta-users> https://lists.sourceforge.net/lists/listinfo/sparta-users
|