fix viscous Paraview error

Submitted by AzamatSalamat on Mon, 08/03/2020 - 09:54

Hello!

I am receiving an error when simulating a case with fix viscous command. I will attach the script file. The simulation itself goes normally but after I create vtk files from dump files and open them in Paraview I get the following message:

Generic Warning: In C:\bbd\6c27b535\build\superbuild\paraview\src\VTK\IO\Legacy\vtkDataReader.cxx, line 1506
Error reading ascii data. Possible mismatch of datasize with declaration.
ERROR: In C:\bbd\6c27b535\build\superbuild\paraview\src\VTK\IO\Legacy\vtkDataReader.cxx, line 1007
vtkPolyDataReader (000001D245A08040): Unsupported point attribute type: 3.54245068068e-321 for file: E:\work\centrifuge\cylinder\x50 x15\stokes drag\1800g\particles16000000.vtk

This only appears when I use fix viscous, without it there is no such problem.

What might be the reason for this?
Any help appreciated.

Best regards,
Azamat

AttachmentSize
Plain text icon in.txt9.58 KB
Plain text icon clear.txt5.54 KB

AzamatSalamat | Mon, 08/10/2020 - 10:45

So apparently the vtkPolyDataReader is not able to read small values (like in the power of -321). Had to modify the vtk files by yourself to replace these values with zero. I will attach my small Python script that I wrote to clear these values after which there were no warning messages in Paraview. Those who want to use this script might need to modify it according to individual case.

Also, lower values of gamma coefficient in fix viscous seem to not cause this problem.