CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Paraview & paraFoam

opening .stl file in paraview

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

LinkBack Thread Tools Display Modes
Old   March 16, 2015, 11:48
Question opening .stl file in paraview
New Member
Join Date: Mar 2015
Posts: 2
Rep Power: 0
gokulcfd is on a distinguished road
Sponsored Links
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)

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
Sponsored Links

Old   March 16, 2015, 15:41
Pascal Balz
Join Date: Feb 2015
Location: Germany
Posts: 36
Rep Power: 4
pbalz is on a distinguished road

the error message states what's wrong:

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
Therefore, you have to modify your stl file in such a way, that you change all
end solid
I don't know if it's meant to be this way, but this works for me.
pbalz is offline   Reply With Quote

Old   March 16, 2015, 16:37
New Member
Join Date: Mar 2015
Posts: 2
Rep Power: 0
gokulcfd is on a distinguished road
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


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 funkyDoCalc with OF2.3 massflow NiFl OpenFOAM 11 November 1, 2016 07:43
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
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44

Sponsored Links

All times are GMT -4. The time now is 15:27.