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

[OpenFOAM] paraFoam can't open STL file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2017, 12:13
Default paraFoam can't open STL file
  #1
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Hello,

I have an annoying problem. I can't open STL file which is in constant/triSurface folder. STL file is working properly. So I think my error is about installation.

Screenshot from 2017-03-26 18-01-39.png

I clicked console view:

Code:
  p, li { white-space: pre-wrap; }  ERROR: In /home/emre/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/IO/Geometry/vtkSTLReader.cxx, line 461
 vtkSTLReader (0x5a63e00): STLReader: error while reading file /home/emre/Desktop/foam-extend-4.0/run/modifiedsolver/constant/triSurface/IB_block.stl at line 287: unable to read reading point.
 

 

 ERROR: In /home/emre/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784
 vtkPVCompositeDataPipeline (0x5b80c20): Algorithm vtkFileSeriesReader(0x5b80040) returned failure for request: vtkInformation (0x556f7b0)
   Debug: Off
   Modified Time: 305221
   Reference Count: 1
   Registered Events: (none)
   Request: REQUEST_DATA
   FORWARD_DIRECTION: 0
   FROM_OUTPUT_PORT: 0
   ALGORITHM_AFTER_FORWARD: 1
 

 
I checked the lines related with errors. They are:

1) foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/IO/Geometry/vtkSTLReader.cxx, line 461

Code:
 catch (const std::runtime_error &e)
    {
    vtkErrorMacro("STLReader: error while reading file " <<
      this->FileName << " at line " << lineCount << ": " << e.what());
    return false;
    }
2)

foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/ParaView-v4.4.0-source/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784

Code:
  // If the algorithm failed report it now.
  if(!result)
    {
    vtkErrorMacro("Algorithm " << this->Algorithm->GetClassName()
                  << "(" << this->Algorithm
                  << ") returned failure for request: "
                  << *request);
    }

  return result;
Regards
ordinary is offline   Reply With Quote

Old   March 26, 2017, 15:55
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Do you have the same problem if you run this command:
Code:
paraview $FOAM_TUTORIALS/immersedBoundary/cylBumpInterIbFoam/constant/triSurface/ibCylinder.stl
It will start ParaView and open one of the STL files from foam-extend 4.0.
__________________
wyldckat is offline   Reply With Quote

Old   March 27, 2017, 05:15
Default
  #3
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Thank you very much for reply.

I run and opened it. There is no problem. I can see STL cylinder. BTW after closing ParaView, I received this on the terminal. I think it is not important because I can open an STL file at all:

Code:
Inconsistency detected by ld.so: dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed!
After that I tried to open my STL again, but I get which is working on other laptop(openSUSE 42.1, foam-extend 3.2). I received same error:

error.png

I will also attach my STL to next post because I can't attach this one.

Thank you very much Bruno, for this and for all of your effort on openFoam, foam-extend.

Sincerely
ordinary is offline   Reply With Quote

Old   March 27, 2017, 05:38
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Did you use the same Paraview version on your Laptop? I recall there was a Paraview version with an STL reader bug.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   March 27, 2017, 05:51
Default
  #5
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Here I attached STL file that gives me error which does not supposed to do so.
It is in text file due to the restriction of uploading it in STL extension. So you can simply change its extension to .STL from .TXT.
IB_block.txt.zip
ordinary is offline   Reply With Quote

Old   March 27, 2017, 05:55
Default
  #6
Member
 
Emre
Join Date: Nov 2015
Location: Izmir, Turkey
Posts: 97
Rep Power: 11
ordinary is on a distinguished road
Quote:
Originally Posted by akidess View Post
Did you use the same Paraview version on your Laptop? I recall there was a Paraview version with an STL reader bug.
Hello and thank you for the reply,

The working version is 4.3.1 on openSUSE 42.1.
This error I'm dealing with is 4.4.0 on ubuntu 16.04.

Sincerely,
Emre
ordinary is offline   Reply With Quote

Old   April 25, 2017, 13:56
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Emre: Sorry for taking so long to get back to you on this. Anton is right, ParaView 4.4.0 has a bug when it comes to loading STL files, as reported here: https://bugs.openfoam.org/view.php?id=1887

You will have to either have to:
  • rebuild ParaView 4.4.0 in foam-extend to use the bug fix reported there;
  • or install another version of OpenFOAM that has this fixed and switch between terminal tabs, with different loaded OpenFOAM/foam-extend environments, as explained here: http://openfoamwiki.net/index.php/In...with_the_Shell
  • or use surfaceConvert to convert the STL to another format, e.g.:
    Code:
    surfaceConvert IB_block.stl IB_block.obj

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
foam extend 4.0, paraview 4.4.0


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
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 17:02
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18


All times are GMT -4. The time now is 14:46.