CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Problems opening wigleyHull case in ParaView

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 11, 2015, 11:52
Default Problems opening wigleyHull case in ParaView
  #1
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
I work on DTCHull but after starting paraFoam I got al lot of errors but they all look like this one

ERROR: In C:\msys\1.0\opt\ParaView-v4.1.0\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6467
vtkOpenFOAMReaderPrivate (0x8522430): Error reading line 0 of C:\OpenFOAM2\cygwin64\home\Windschip\OpenFOAM\Wind schip-2.3.x\run\DTCrun\0/{WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes:
included from line 25 of C:\OpenFOAM2\cygwin64\home\Windschip\OpenFOAM\Wind schip-2.3.x\run\DTCrun\0/alpha.water
: Can't open

I had this porblem also allready on Wigley Hull I think this is perhaps an ordinary problem but i realy dont know where to look for

Ron
Ron de Vos is offline   Reply With Quote

Old   July 31, 2015, 11:18
Default meshproblem
  #2
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
I want to ask if somebodey can say in which direction i have to look to solve thet following problem

ERROR: In C:\msys\1.0\opt\ParaView-v4.1.0\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6573
vtkOpenFOAMReaderPrivate (0x82f20b0): Number of cells/points in mesh and field don't match: mesh = 182759, field = 12000

i am working on wigleyHull Openfoam 2.2
Ron
Ron de Vos is offline   Reply With Quote

Old   August 10, 2015, 09:35
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Ron,

I've gathered your two posts in a new thread and placed the thread in the sub-forum that is dedicated to issues with ParaView and paraFoam.

The first problem has to due with a broken line in the "0/alpha.water" file:
Code:
{WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes
It should instead be:
Code:
$WM_PROJECT_DIR/etc/caseDicts/setConstraintTypes
As for the second problem, you will need to provide us a lot more details, because that error message is simply stating that the mesh details don't match some other mesh details, possible ones that were already loaded from a previous time.

Best regards,
Bruno
__________________
wyldckat is online now   Reply With Quote

Old   August 11, 2015, 06:18
Default
  #4
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
I work now on Wigley Hull.
After LTSInterfoam and open paraFoam I get
ERROR: In C:\msys\1.0\opt\ParaView-v4.1.0\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6573
vtkOpenFOAMReaderPrivate (0x82f20b0): Number of cells/points in mesh and field don't match: mesh = 182759, field = 12000
I close everything Then I copy after snappyhexMesh, file 1 and 2 in 0 and run LTSInterFoam and ParaFoam The ERROR is gone and everything looks good but now I cant see the form of the hull anymore. Also the contour is now in the middele and the ships hull, when i have open Wigley stl, is above the surface.

Ron
Ron de Vos is offline   Reply With Quote

Old   August 12, 2015, 16:58
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ron,

You're not providing enough details to diagnose the problem, more specifically: What are the exact steps you are using for generating the mesh?

Therefore, I'll have to suggest that you do at least the following steps:
  1. Clean the case folder, by running:
    Code:
    foamCleanTutorials
  2. Rename the folder "0" to something else, for example:
    Code:
    mv 0 zero.old
  3. Run the mesh generation steps like this:
    Code:
    blockMesh
    snappyHexMesh -overwrite
  4. Now try to examine the resulting mesh in ParaView.
This should no longer give the problems you have reported.

The key details here are as follows:
  1. The error message you are getting most likely relates to one or more field files that were created for the final mesh and that are not suitable for the intermediate meshes. This is why I suggested step #2.
  2. The reason why you have the folders 0, 1 and 2 is because you did not run snappyHexMesh with the option "-overwrite". This is the reason for step #4. These folders refer to the intermediate meshes.

Best regards,
Bruno
__________________
wyldckat is online now   Reply With Quote

Old   August 13, 2015, 04:34
Default foamCleanTutorials
  #6
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
It was never like this, but even the first code don't work anymore.
I use openFoam2.3 for windows perhaps that is the problem It can't find the the order

$ foamCleanTutorials
/opt/OpenFOAM/OpenFOAM-2.3.x/bin/tools/CleanFunctions: regel 30: $'\r': opdracht niet gevonden
/opt/OpenFOAM/OpenFOAM-2.3.x/bin/tools/CleanFunctions: regel 44: $'\r': opdracht niet gevonden
/opt/OpenFOAM/OpenFOAM-2.3.x/bin/tools/CleanFunctions: regel 45: syntaxfout nabij onverwacht symbool '$'\r''

Ron
Ron de Vos is offline   Reply With Quote

Old   August 13, 2015, 07:24
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ron,

Sorry, I was expecting you had a functioning integration with MSys or Cygwin... I guess not... you probably should report this issue to whomever provided you that port of OpenFOAM for Windows.

Then my suggestion is that you take a few steps back and start working with a clean copy of a tutorial case from OpenFOAM's "tutorials", because those are meant to work as intended.
Once you have managed to get ParaView to work well with this case, you can then start reconstructing your previous case, based on this tutorial case.

Best regards,
Bruno
__________________
wyldckat is online now   Reply With Quote

Old   August 13, 2015, 07:45
Default
  #8
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
Thank you for your quick reactions. I shall start again and will change what I know till now.
This openFoam for windows is provided with cygwin64 and is rather good te handle.(alltough still no result)
Ron
Ron de Vos is offline   Reply With Quote

Old   August 13, 2015, 10:30
Default paraFoam
  #9
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
It took some time but the form of the ship was there in paraview, but when I make a contour it exist only of little pieces with strange shapes.
I follow you instructions and start from the beginning.
BlockMesh without Plane so only symmetry I did that also with the files in the O folder
I change 0 to zero.old i did snappHexMesh -overwrite
in paravieuw good
setFields good.
LTSInterFoam not working.
it could not find the 0 folder. I change zero.old in 0
Than it could not find Hull.
I change Hull-wall in all 0 files in Hull.
Than LTSInterfoam was working
But now there are the problems I wrote in the beginning of this message.
sorry to border you again.
Ron
Ron de Vos is offline   Reply With Quote

Old   August 13, 2015, 10:38
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer:
  • Instructions on how to do visual mesh diagnosis in ParaView: http://openfoamwiki.net/index.php/FA...is_in_ParaView
  • After the mesh is generated, the folder 0 should be restored and adjusted as you may need it, so that you can use the solver.
  • The tutorial "multiphase/LTSInterFoam/DTCHull" in OpenFOAM 2.3.x uses the folder "0.org", which stands for "0.original", i.e. the original 0 folder. This is because the "0" folder could be damaged while the mesh was being generated, or because the setFields utility will be needed. Study the 3rd tutorial on the OpenFOAM User Guide to see better what I mean: http://cfd.direct/openfoam/user-guide/damBreak/ - subsection "2.3.3 Setting initial field"
wyldckat is online now   Reply With Quote

Old   August 13, 2015, 10:44
Default
  #11
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
Thank you very much
I knew there is still a lot of work to do.
Ron
Ron de Vos is offline   Reply With Quote

Old   August 24, 2015, 06:53
Default
  #12
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
Everything of the wigleyHull is working fine. I have worked in paraview.
Now I want to import my own hull. I changed the names in SHM. I work for the geometry in Rhino and make a mesh and save it ascii as .stl and import that in constant/triSurface. After that I have worked SHM and my own hull looks good in paraview, but after setfields en LTSInterfoam the wigleyHull returns to my surpries and my own hull is disapeared.
Ron
Ron de Vos is offline   Reply With Quote

Old   August 24, 2015, 13:29
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ron,

I guess that you placed a new STL file in the folder "constant/triSurface" and did not change the files "system/snappyHexMeshDict" and "system/surfaceFeatureExtractDict". You will need to generate a new mesh and after running the Allrun script, you should check the contents of the file "log.snappyHexMesh" to confirm if the mesh was generated correctly or not.

If you have problems using snappyHexMesh, please use the respective sub-forum: http://www.cfd-online.com/Forums/ope...snappyhexmesh/

Best regards,
Bruno
__________________
wyldckat is online now   Reply With Quote

Old   August 26, 2015, 04:15
Default
  #14
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
Dear bruno
I placed a new STL file in the folder "constant/triSurface" and did change the files in system/snappyHexMeshDict"and"system/surfaceFeatureExtractDict".
I see the hull after running paraview but when I run setFields and LTSInterFoam and running paraview my Hull is changed in wigleyHull
Ron
Ron de Vos is offline   Reply With Quote

Old   August 26, 2015, 18:24
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ron,

setFields and LTSInterFoam should not have modified your mesh.

Please provide the complete details on how you are doing each step, for example: how are you running each command?
Because there is some specific step that is breaking the work-flow and if you don't tell me what you're doing exactly, I can't guess what's wrong. All I know is that setFields and LTSInterFoam work with the mesh that their given and they do not make any changes to the mesh.

Best regards,
Bruno
__________________
wyldckat is online now   Reply With Quote

Old   August 31, 2015, 08:24
Default
  #16
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
dear Bruno
I have solved the problem. I had to copy the Original setFields again. and now it is working in paraFoam with my own Hull.
Now I start with post processing. From there to lift and drag. I want at the end come to a polardiagram. Is there allready a thread for that subject.
Ron
Ron de Vos is offline   Reply With Quote

Old   August 31, 2015, 17:56
Default
  #17
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by Ron de Vos View Post
I want at the end come to a polardiagram. Is there allready a thread for that subject.
Quick answer: Use the following search sentence with Google:
Code:
site:www.cfd-online.com paraview polar
wyldckat is online now   Reply With Quote

Old   September 10, 2015, 09:26
Default post processing
  #18
New Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 27
Rep Power: 3
Ron de Vos is on a distinguished road
two questions
1 To claculate drag and lift; is it needed to know exact the position of the geometry in this case the hull
2 How can I calculate drift and drag for different velocities.
Ron
Ron de Vos is offline   Reply With Quote

Old   September 12, 2015, 14:46
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,635
Blog Entries: 39
Rep Power: 99
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer: See tutorial "incompressible/simpleFoam/motorBike", files "system/controlDict" -> "system/forceCoeffs"
wyldckat is online now   Reply With Quote

Reply

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
Problems with Paraview (OpenFOAM 2.4.0 from source code in Ubuntu 14.04) Gerrit OpenFOAM Installation 4 August 15, 2015 11:05
foam-extend 3.1, Immersed boundary cavity flow case modification problems Anamitra OpenFOAM 0 March 18, 2015 09:50
Paraview in Prallel (server-client) prapanj OpenFOAM Paraview & paraFoam 11 September 24, 2010 07:12
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


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