|
[Sponsors] |
September 13, 2016, 11:25 |
foamToVTK -fields syntax problem
|
#1 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Hello all,
I know it sounds really odd, but I have a problem with the foamToVTK syntax. I try to convert field data (in this case pressure) to the VTK format by typing Code:
foamToVTK -fields p Code:
--> FOAM FATAL IO ERROR: incorrect first token, expected <int> or '(', found on line 0 the word 'p' Code:
foamToVTK -fields (p) Thanks in advance and best regards, Kate Last edited by KateEisenhower; September 22, 2016 at 06:52. |
|
September 14, 2016, 04:51 |
|
#2 |
Senior Member
|
Hi Kate,
Code:
foamToVTK -fields '(p)' Best Regards, Tom |
|
September 14, 2016, 08:12 |
|
#3 |
Senior Member
|
Hi,
Little addition from foamToVTK.C ($FOAM_APP/utilities/postProcessing/dataConversion/foamToVTK/foamToVTK.C) header: Code:
Usage \b foamToVTK [OPTION] Options: ... - \par -fields \<fields\> Convert selected fields only. For example, \verbatim -fields "( p T U )" \endverbatim The quoting is required to avoid shell expansions and to pass the information as a single argument. ... |
|
September 16, 2016, 06:29 |
|
#4 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Thank you both,
Don't you think the error message I posted above could be missunderstood easily and should be changed in the source code? Best regards, Kate |
|
September 16, 2016, 06:39 |
|
#5 |
Senior Member
|
Hi,
I am not certain whether that is easily done. It looks a lot like standard syntax error output and it is probably reused in multiple locations. Maybe the usage or help can be improved somehow. I would suggest you file a bug report with a suggested improved error message here: http://bugs.openfoam.org/ Tom |
|
September 22, 2016, 06:56 |
|
#6 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Hello all,
see bug report 0002252. Best regards, Kate |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with velocity and pressure fields | will_ca | OpenFOAM Running, Solving & CFD | 1 | March 19, 2016 15:25 |
Can I solve this problem by Fluent? | Kai_kc | FLUENT | 1 | October 27, 2010 06:29 |
FoamToVtk syntax for fields | tehache | OpenFOAM Post-Processing | 1 | October 10, 2007 11:29 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |