CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Writing one fields as VTK (https://www.cfd-online.com/Forums/openfoam-post-processing/135360-writing-one-fields-vtk.html)

mmmn036 May 12, 2014 18:57

Writing one fields as VTK
 
Hello,

I just wanted to write one field as VTK format using -

foamToVTK -fields U

But I am getting the following error:

--> FOAM FATAL IO ERROR:
incorrect first token, expected <int> or '(', found on line 0 the word 'U'

file: IStringStream.sourceFile at line 0.

From function operator>>(Istream&, HashTable<T, Key, Hash>&)
in file /home/manjure/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/HashTableIO.C at line 206.

FOAM exiting


Does anyone have that kind of problem?

Thanks
MMMN

mmmn036 May 12, 2014 21:08

I got it...it should be

foamToVTK -fields '(U)'


All times are GMT -4. The time now is 08:27.