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

[OpenFOAM] Problems opening wigleyHull case in ParaView

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2015, 12:52
Default Problems opening wigleyHull case in ParaView
  #1
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 12:18
Default meshproblem
  #2
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 10:35
Default
  #3
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 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 offline   Reply With Quote

Old   August 11, 2015, 07:18
Default
  #4
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 17:58
Default
  #5
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
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 offline   Reply With Quote

Old   August 13, 2015, 05:34
Default foamCleanTutorials
  #6
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 08:24
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
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 offline   Reply With Quote

Old   August 13, 2015, 08:45
Default
  #8
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 11:30
Default paraFoam
  #9
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 11:38
Default
  #10
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 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 offline   Reply With Quote

Old   August 13, 2015, 11:44
Default
  #11
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 07:53
Default
  #12
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 14:29
Default
  #13
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
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 offline   Reply With Quote

Old   August 26, 2015, 05:15
Default
  #14
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 19:24
Default
  #15
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
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 offline   Reply With Quote

Old   August 31, 2015, 09:24
Default
  #16
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 18:56
Default
  #17
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
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 offline   Reply With Quote

Old   September 10, 2015, 10:26
Default post processing
  #18
Member
 
Ron de Vos
Join Date: Jun 2015
Posts: 30
Rep Power: 11
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, 15:46
Default
  #19
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 answer: See tutorial "incompressible/simpleFoam/motorBike", files "system/controlDict" -> "system/forceCoeffs"
wyldckat 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
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
[OpenFOAM.org] Problems with Paraview (OpenFOAM 2.4.0 from source code in Ubuntu 14.04) Gerrit OpenFOAM Installation 4 August 15, 2015 12:05
[ImmersedBoundary] foam-extend 3.1, Immersed boundary cavity flow case modification problems Anamitra OpenFOAM Community Contributions 0 March 18, 2015 09:50
[OpenFOAM] ParaView 4.10 and OpenFOAM 2.3.0 Multiregion and decomposed case romant ParaView 3 April 7, 2014 16:42
How to open two case in paraview? bowlderyu OpenFOAM 2 June 2, 2009 05:20


All times are GMT -4. The time now is 01:44.