CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] File Format certainity

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2006, 14:14
Default File Format certainity
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
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, 14:41
Default Will your reader be any differ
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 14:48
Default Nothing is set in stone but I
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
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, 14:56
Default Not directly related: do you k
  #4
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 15:47
Default You may want to take a look at
  #5
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
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, 12:17
Default I was looking at you cell type
  #6
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
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, 12:27
Default We use vtkTetrahedon vtkPyrami
  #7
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 12:30
Default Is it possible for you to add
  #8
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
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, 13:10
Default Sorry, no intention of doing s
  #9
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 14:10
Default "- you could set the extension
  #10
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 17
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 22:03
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


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