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

File Format certainity

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 11, 2006, 13:14
Default I am looking at adding a reade
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
I am looking at adding a reader to paraview for OpenFoam files. I wanted to find out how set the file format is. Is there any talk of changing the file format soon or even later?

Thanks.
tj22 is offline   Reply With Quote

Old   April 11, 2006, 13:41
Default Will your reader be any differ
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Will your reader be any different from the paraFoam one?

There are no plans to change the file format any time soon. But if you use OpenFOAM functionality to read the mesh all this will be shielded from you.

Mattijs
mattijs is offline   Reply With Quote

Old   April 11, 2006, 13:48
Default Nothing is set in stone but I
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
Nothing is set in stone but I am looking at foregoing using the OpenFOAM package to read the files.
tj22 is offline   Reply With Quote

Old   April 11, 2006, 13:56
Default Not directly related: do you k
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Not directly related: do you know whether VTK can handle polyhedral cells directly? We currently have to decompose anything which is more complex than a hex which is annoying.

Mattijs
mattijs is offline   Reply With Quote

Old   April 11, 2006, 14:47
Default You may want to take a look at
  #5
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
You may want to take a look at convexpointset. That should work although you may take a performance hit.
tj22 is offline   Reply With Quote

Old   April 12, 2006, 11:17
Default I was looking at you cell type
  #6
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
I was looking at you cell types and I see the following correlation in VTK:

Hexahedron vtkHexahedron
Wedge vtkConvexPointSet
Prism vtkWedge
Pyramid vtkPyramid
Tetrahedon vtkTetrahedon
Tet-Wedge vtkConvexPointSet
tj22 is offline   Reply With Quote

Old   April 12, 2006, 11:27
Default We use vtkTetrahedon vtkPyrami
  #7
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
We use vtkTetrahedon vtkPyramid vtkWedge vtkHexahedron

I tried convexPointSet and it does not do what I want. It triangulates a convex point cloud but does not see the difference between internal and external faces of the mesh so it shows all faces which makes it very slow.

What I would like is a generic vtk cell shape which implements all the needed functionality (cutting planes, derivatives etc) by on-the-fly decomposition.
mattijs is offline   Reply With Quote

Old   April 12, 2006, 11:30
Default Is it possible for you to add
  #8
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
Is it possible for you to add an empty .Foam file to the topmost directory in the case by default? This would call for adding one more file to the openfoam format but would not cause a need for changing any other files. It would just be a place holder for an entry point for readers as you did within your parafoam script. It could also be used to store some header info if desired at a later data.

How feasible would it be for you to add that?
tj22 is offline   Reply With Quote

Old   April 12, 2006, 12:10
Default Sorry, no intention of doing s
  #9
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Sorry, no intention of doing so at the moment.

- you could change your paraFoam script not to delete the .foam file.
- you could set the extension of 'foam' files to be 'controlDict' instead of '.foam' (if vtk allows this) and click on the system/controlDict
mattijs is offline   Reply With Quote

Old   April 12, 2006, 13:10
Default "- you could set the extension
  #10
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
"- you could set the extension of 'foam' files to be 'controlDict' instead of '.foam' (if vtk allows this) and click on the system/controlDict" - this was one idea I had.

"- you could change your paraFoam script not to delete the .foam file." - I am planning on writing my own readers for paraview.

I figured I would give it a shot and ask if you could, no big deal I will work around it.
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
msh file format fab FLUENT 7 October 29, 2014 12:03
Anybody know the format of *.msh file? Vito Chow FLUENT 9 October 16, 2014 13:17
About the *.neu file format ! dongliang FLUENT 0 October 24, 2008 04:50
stl file format AMP Main CFD Forum 0 March 2, 2008 01:43
File Injection file format Pravir FLUENT 0 February 7, 2003 16:04


All times are GMT -4. The time now is 19:56.