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

opening .stl file in paraview

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 16, 2015, 11:48
Question opening .stl file in paraview
  #1
New Member
 
Gokul
Join Date: Mar 2015
Posts: 2
Rep Power: 0
gokulcfd is on a distinguished road
hello foamers!
Im trying to simulate the external flow over cars. hence in the meshing stage i tried viewing the .stl file of the car in paraview.
this is what i did
i copied the stl file in the triSurface directory in the constant directory. created a controlDict and surfaceFeatureExtractDict file in system directory.
i tried extracting the features by typing surfaceFeatureExtract in the terminal. two files were formed in the constant and triSurface folders.
then i tried viewing in paraview and got this error message


ERROR: In /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/applications/utilities/postProcessing/graphics/PV4Readers/PV4FoamReader/PV4FoamReader/vtkPV4FoamReader.cxx, line 216
vtkPV4FoamReader (0xac411b8): could not find valid OpenFOAM mesh


ERROR: In /home/openfoam/OpenFOAM/ParaView-4.1.0/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 754
vtkPVCompositeDataPipeline (0xac4b488): Algorithm vtkPV4FoamReader(0xac411b8) returned failure for request: vtkInformation (0xac505d0)
Debug: Off
Modified Time: 91220
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
FORWARD_DIRECTION: 0
ALGORITHM_AFTER_FORWARD: 1


what does this mean?
I should be able to view the car in paraview before forming the background mesh , right?


thanks in advance
gokulcfd is offline   Reply With Quote

Old   March 16, 2015, 15:41
Default
  #2
Member
 
Pascal Balz
Join Date: Feb 2015
Location: Germany
Posts: 33
Rep Power: 2
pbalz is on a distinguished road
Hi,

the error message states what's wrong:

Quote:
Originally Posted by gokulcfd View Post
line 216
vtkPV4FoamReader (0xac411b8): could not find valid OpenFOAM mesh
So you have two possibilities how you can watch your geometry.
1. Create the background mesh, start paraFoam and load the stl file.
2. Load the stl file by starting
Code:
paraview
Therefore, you have to modify your stl file in such a way, that you change all
Code:
endsolid
to
Code:
end solid
I don't know if it's meant to be this way, but this works for me.
__________________
Regards,
Pascal
pbalz is offline   Reply With Quote

Old   March 16, 2015, 16:37
Default
  #3
New Member
 
Gokul
Join Date: Mar 2015
Posts: 2
Rep Power: 0
gokulcfd is on a distinguished road
Pascal!!!!
thanks a lot , i first did blockMesh then opened paraview to view the background mesh. I then separately loaded the stl file. i can view it now.
gokulcfd 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
swak4foam newbie29 OpenFOAM Installation 82 July 18, 2015 17:16
swak4foam building problem GGerber OpenFOAM Installation 54 April 24, 2015 16:02
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 4 August 14, 2014 06:42
Swak4Foam funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 8 March 24, 2014 21:06
"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 03:03.