|
[Sponsors] |
September 20, 2011, 12:29 |
Dark areas in paraview
|
#1 |
New Member
Alistair Everett
Join Date: Aug 2011
Posts: 8
Rep Power: 15 |
Hi everyone,
I'm getting some strange dark patches when I view cases in paraview (see the attached images). From the front the patches appear dark, but from the back they are light. The patches do not seem to affect the cases as they run fine and checkMesh says the mesh is ok, so this seems to be more of an aesthetic problem! I've played around with the lighting in paraview and it appears as if the face normals are inverted, ie changing the backlight affects the dark patches on the front, while they are unaffected by chances to the front lighting. Does anyone know how this could have happened? I'm using snappyHexMesh to mesh the blades of the turbine, could it be something to do with this? If so it seems strange that the mesh passes checkMesh and solves fine. If anyone has any ideas it would be greatly appreciated! Alistair |
|
September 20, 2011, 15:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Alistair,
Mmm, this is interesting... OK, two possibilities come to mind:
Best regards, Bruno
__________________
|
|
September 21, 2011, 07:18 |
|
#3 |
New Member
Alistair Everett
Join Date: Aug 2011
Posts: 8
Rep Power: 15 |
Hi Bruno,
Thanks for getting back to me, I'll answer all of the questions I can, the computer was set up and OpenFoam software installed by my supervisor so I'm not too familiar with the internal workings, he's away today and tomorrow so I won't be able to get any answers on that front for a little while unfortunately. The blue patches are indeed from an stl file, the case is 3D, the screenshots are just from a slice. I've attached two more screenshots from a case using the same stl file, but with better refinement, hopefully the screenshot of the wireframe will make it clearer what the mesh looks like. The edges of the blue patches are the boundaries of the mesh. As you can see in the more refined mesh the areas move and become smaller with the mesh, I've also played with the lighting in paraview so they appear less pronounced, but I still can't completely get rid of them. The files open in paraview with the extension .OpenFOAM and desktop animations are turned on. Is there anything I can do to test whether the drivers for the graphics card are installed properly? I haven't seen anything else that suggests they aren't, videos etc seem to play fine. Regards, Alistair |
|
February 8, 2012, 07:15 |
|
#5 |
New Member
RW
Join Date: Nov 2011
Posts: 22
Rep Power: 16 |
I know this is an old thread but I'm posting for anyone who has had similar problems as I have......
If the problem is in fact due to the surface normals, there is a filter within paraview (GenerateSurfaceNormals) which allows you to flip them and which (for me at least) has solved the lighting problems! Hope that helps someone! plm |
|
September 27, 2013, 21:15 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I'm bumping up this thread to add some more information on this topic, which I discovered this week. When using an Intel HD GPU (one of those integrated with the CPU), there are some somewhat known issues with the OpenGL drivers, allegedly due to Intel not implementing a more recent version of OpenGL. Anyway, an example with a pretty extensive attempt at fixing a similar issue of "black triangles" on Windows: 'Black Triangles' in Tomb Raider II (Win7-64) Either way, plm's fixed partially the problem I had as well with said Intel HD GPU (on Windows!), namely by applying the "Generate Surface Normals" filter. Beyond this (and the reason for this post), I found the following details:
Bruno PS: For those confused by me mentioning VTK, this is because ParaView uses VTK.
__________________
|
||
November 27, 2020, 18:44 |
how can I correct this in paraview
|
#7 |
Member
Alberto
Join Date: Sep 2013
Posts: 37
Rep Power: 13 |
Hi, just wondering if any of you know why paraview displays my solution with some patches like in the attached pic?...
Thanks |
|
November 29, 2020, 17:56 |
|
#8 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Looks like multiple representations on top of each other. Blank all but one, and see if things change.
|
|
May 3, 2021, 05:31 |
|
#9 | |
Member
Daniel
Join Date: May 2018
Posts: 43
Rep Power: 8 |
Quote:
When I run the script you mentioned I get following error: AttributeError: type object "RenderView" has not attribute "LightSwitch". I am using Paraview 5.6.0 (64 bit). When I comment this line it works. Is there a way to also execute the first line of the code which gives the error? Many thanks for your help! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Two different versions of ParaView with same OpenFOAM release | FJSJ | OpenFOAM Installation | 2 | July 23, 2017 06:48 |
[OpenFOAM] Why the color of this slice in paraview is so dark? | sharonyue | ParaView | 3 | May 29, 2015 18:54 |
Installing OpenFOAM and ParaView in VirtualBox(Ubuntu on Win8) | chrisb2244 | OpenFOAM Installation | 2 | August 21, 2013 14:24 |
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? | lentschi | OpenFOAM Installation | 1 | March 9, 2011 03:32 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |