CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Using vtkFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2008, 16:33
Default Hello openFoam developers!!!
  #1
New Member
 
Thiago Reis Carvalho Cabral Miliante
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 16
Rep Power: 17
miliante is on a distinguished road
Hello openFoam developers!!!

I am creating a simple GUI to easy the input of internal and boundary conditions for openFoam in GTK/VTK.

vtk is very simple to use, but incorporating the Foam data to it is driving me crazy.

To add a STL geometry, it is as simple as:

vtkSTLReader * reader = vtkSTLReader::New();
reader->SetFileName ("ship.stl"); //param: char * filename
reader->Update();
reader->GetOutput();

But not for vtkFoam. Does anyone know how to do that? The program is almost complete, I just want to visualize the mesh and show the boundary conditions, so some people not "familiar" with the command line can use it here.

Sincerely,

T.
miliante is offline   Reply With Quote

Old   July 17, 2008, 16:52
Default >But not for vtkFoam. Does any
  #2
New Member
 
Bertram Behrens
Join Date: Mar 2009
Posts: 3
Rep Power: 17
bertram is on a distinguished road
>But not for vtkFoam. Does anyone know how to do that?

Do *what*? What is your question?

You can visualize your mesh with paraFoam and set your input data with FoamX. No need to use the command line. Though I doubt that anybody who doesn't understand shell commands will have any success with OpenFoam
bertram is offline   Reply With Quote

Old   July 22, 2008, 17:24
Default Well, I understand I can visua
  #3
New Member
 
Thiago Reis Carvalho Cabral Miliante
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 16
Rep Power: 17
miliante is on a distinguished road
Well, I understand I can visualize the mesh with paraFoam, I do that. FoamX is anything but user friendly. I decided to make my own preFoam. So far so good, I just cant see the mesh. I noticed that there are vtkFoam libraries available and I would like to learn how to use them, if possible.
miliante is offline   Reply With Quote

Reply


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
Could you please help me about the VTKFoam liugx212 OpenFOAM Pre-Processing 5 February 13, 2008 12:31
Please help about the VTKFoam liugx212 OpenFOAM Running, Solving & CFD 0 November 18, 2005 19:27


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