paraView error: it opens and closes immediatly
Hello readers,
I'm new to openFoam and new to C++ and I'm trying to learn both. Now I'm trying to make a script which gives a velocity profile to the inlet of my system. To solve my problem I have a couple of resources to my disposal: the openFoam extended code guide on the internet, the user guid, the basic tutorial, the foundation training and the advanced training and I have also looked up this forum. I did not find the information I needed. My system is a slice out of a channel, with the slice going from -2.5 degree to +2.5 degree, very long L and a tiny diameter D. The system worked with a different BC at the inlet, so I know that the problem lies in my current BC at the inlet. I'm trying to make the inlet with the codedFixedValue BC and want to make a profile dependent on the x-position (or r-position), with a graded mesh with smaller dx on the wallside of the channel. The profile is calculated with the Hagen-Poisseuille equation. To be honest , I do not fully understand what the code says yet. I numbered the components (//1 untill //4) I do not fully grasp and will try to explain what I think it does, feedback on my thoughts are welcome! My code in 0/U looks as follows: Code:
inlet To mag(U), Ux and Uy I gave the following code Code:
inlet Code:
Created temporary 'longChannelProfile.foam' Sincerely, Me |
Quick answer: "longChannelProfile.foam" - this means that the internal reader that ParaView/VTK has got is not able to handle the more complex types of boundary conditions that OpenFOAM has got. It can only handle the more basic types.
You will either have to rely on foamToVTK to export the case first to VTK format and then open the files inside the folder VTK directly in ParaView; or you will have to use the official OpenFOAM reader, which requires using the Deb packages that are provided by the OpenFOAM Foundation or do a custom build of OpenFOAM+ParaView yourself. |
Dear Bruno,
Thanks for your reply, I will look into that. Sincerely Loek |
Hey Bruno,
I have the same problem and error and as you described, using the "paraFoam" command, I can view simple boundaries with ParaView, but not more complicated ones such as baffles and cyclic faces. I am using OpenFoam v2006 from "openfoam.com". I am trying to understand your answer. If I understood you correctly, there are 3 solutions: 1) Converting to VTK format 2) Using Debian package (which I assume you mean using openfoam.org version, right?) 3) Compiling paraView from source which seems to be a difficult task as it is written here and my own experience confirms that. So the only reasonably feasible option seems to be the first one. Is this correct? |
openfoam-v1912 paraFoam crashes after start
Installed OF from source, trying to open in paraview case reactingHeterogenousParcelFoam/rectangularDuct
paraFoam -builtin and click Apply button it crashes I got this message Created temporary 'rectangularDuct.foam' paraview: /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/IO/Geometry/vtkOpenFOAMReader.cxx:2977: bool vtkFoamEntryValue::ReadField(vtkFoamIOobject&): Assertion `"Label type not set!" && this->GetLabelType() != NO_LABEL_TYPE' failed. Aborted (core dumped) :mad::mad::mad: |
Quote:
|
Assertion `"Label type not set!"
same with me, never had that before. I ran subsetMesh on this case, could that be the reason? However, with foamToVTK it works
|
All times are GMT -4. The time now is 16:24. |