foamToVTK not work for cgs unit ErgunTestMPI tutorial

Submitted by NTT1508 on Fri, 01/06/2017 - 00:11

Dear Josef and Alice,

When re-run the ErgunTestMPI_cgs in the tutorial (CFDEM3.5), the foamToVTK to convert the output of CFD to VTK files reports an error as follows:

"--> FOAM FATAL ERROR:
floatScalar and/or label are not 4 bytes in size
Hence cannot use binary VTK format. Please use -ascii

From function foamToVTK
in file foamToVTK.C at line 335.

FOAM exiting"

This is possibly because the unit scalar has been changed and the format of output files became different.

Can you guide how to fix this ?

Thanks you,

Regards,

j-kerbl's picture

j-kerbl | Tue, 01/10/2017 - 14:57

Hi Nathan,

have you tried the command suggested by the error message?
foamToVTK -ascii

I don't think that CGS should influence this.

Cheers,
Josef

NTT1508 | Thu, 01/12/2017 - 02:36

Hi Josef,

Many thanks for your hints. I should have read carefully that message. This happened when I upgraded OpenFOAM to 3.x. This is absolutely not a problem of CGS unit.

Regards,

Nathan,