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

[OpenFOAM] opening .stl file in paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By gokulcfd
  • 1 Post By pbalz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2015, 10: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
Luttappy likes this.
gokulcfd is offline   Reply With Quote

Old   March 16, 2015, 14:41
Default
  #2
Member
 
Pascal Balz
Join Date: Feb 2015
Location: Germany
Posts: 44
Rep Power: 11
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.
LuckyTran likes this.
__________________
Regards,
Pascal
pbalz is offline   Reply With Quote

Old   March 16, 2015, 15: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


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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 03:50
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43


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