CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Acquiring scalar names

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 8, 2006, 13:55
Default As discussed before I am writi
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
As discussed before I am writing a reader for paraview which does not require installing OpenFOAM. I am looking through the files to obtain the names of the scalars for the timesteps while the names for timestep 0 are available in fvSolution, I cannot locate a file containing the names of all the scalars available in the other timesteps. There seem to be more scalars in those timesteps than in timestep 0.

So is there a file that contains these names? Or will I have to do a directory dump? (which will cause a problem of not being cross platform).
tj22 is offline   Reply With Quote

Old   May 9, 2006, 06:01
Default I'm afraid there is no such fi
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
I'm afraid there is no such file (and it's even worse: you'll have to look into the files to determine whether they're vol-Fields or not)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 9, 2006, 10:58
Default It is really no problem to par
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
It is really no problem to parse the header to determine vector, scalar, etc, it is however a problem to have no idea what files are avaible to parse.

I guess my only option is to call a system command to acquire the directory structure, that is going to be painful.
tj22 is offline   Reply With Quote

Old   May 15, 2006, 14:50
Default Look at usage of IOobjectList,
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Look at usage of IOobjectList, e.g. in dataConversion/foamDataToFluent/foamDataToFluent.C

It will return you a list of all Foam files in a time directory. You can then use e.g. lookupClass to extract files of a certain type.
mattijs is offline   Reply With Quote

Old   May 17, 2006, 13:01
Default Actually the answer was to use
  #5
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
Actually the answer was to use vtkDirectory but thanks.
tj22 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
group names azmir Main CFD Forum 1 February 11, 2008 08:20
Names of CFD codes Steve Main CFD Forum 6 July 23, 2007 17:39
FoamToVTK output names hartinger OpenFOAM Post-Processing 2 March 29, 2007 06:49
VARIABLE NAMES Alejandro A CFX 2 August 17, 2006 09:47
Variable Names in Profiles Jonas Larsson FLUENT 0 April 18, 2001 06:59


All times are GMT -4. The time now is 17:57.