foamToVTK not work for cgs unit ErgunTestMPI tutorial

Submitted by NTT1508 on
j-kerbl

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

Tue, 10 Jan 2017 - 14:57 Permalink
NTT1508

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,

Thu, 12 Jan 2017 - 02:36 Permalink

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,