CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   foamToVTK problems (http://www.cfd-online.com/Forums/openfoam-post-processing/114316-foamtovtk-problems.html)

Grimoli March 8, 2013 20:21

foamToVTK problems
 
Guys,how do I use the command foamtoVTK??When I'm using it at the chtMultiRegionSimpleFoam tutorial,the temperature option doesnt work,and when i put it to work,it doesnt work at all.Do I have to use the command as : foamToVTK topAir as example??PLease I need some help

czhao86 March 9, 2013 12:55

Quote:

Originally Posted by Grimoli (Post 412658)
Guys,how do I use the command foamtoVTK??When I'm using it at the chtMultiRegionSimpleFoam tutorial,the temperature option doesnt work,and when i put it to work,it doesnt work at all.Do I have to use the command as : foamToVTK topAir as example??PLease I need some help

If you want to show results about particles,
after the XXXFoam command,
just run 'foamToVTK'
then a folder named 'VTK' will be created
you can use paraview to load geometry VTK and lagrangian VTK, and check the results.

Grimoli March 9, 2013 14:17

i tried it,but it wasnt working at all,it seems i have to change something at some dict or whatever

dav.dap83 March 10, 2013 17:07

Can you write the error message?

wyldckat March 10, 2013 17:18

Greetings to all!

@Grimoli: Have you tried running the following command?
Code:

foamToVTK -help
If you want to export to VTK the "topAir" region, you can run:
Code:

foamToVTK -region topAir
Best regards,
Bruno

samiam1000 November 15, 2013 06:53

Dear Bruno,

I did as you suggested but I get this error:

Code:

lab@lab-laptop:/media/My world/PCMPacks/steadyNoFlux$ foamToVTK -allPatches -ascii -region fluid
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.1-57f3c3617a2d
Exec  : foamToVTK -allPatches -ascii -region fluid
Date  : Nov 15 2013
Time  : 11:46:21
Host  : "lab-laptop"
PID    : 4907
fileName::stripInvalid() called for invalid fileName /media/Myworld/PCMPacks/steadyNoFlux
    For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
lab@lab-laptop:/media/My world/PCMPacks/steadyNoFlux$


wyldckat November 15, 2013 16:46

Hi Samuele,

OpenFOAM hates spaces in folder names. In this case, the folder name "My world" is invalid for OpenFOAM to use.

Best regards,
Bruno


All times are GMT -4. The time now is 09:01.