CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Problems opening wigleyHull case in ParaView (https://www.cfd-online.com/Forums/paraview/157873-problems-opening-wigleyhull-case-paraview.html)

Ron de Vos July 11, 2015 12:52

Problems opening wigleyHull case in ParaView
 
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 July 31, 2015 12:18

meshproblem
 
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

wyldckat August 10, 2015 10:35

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

Ron de Vos August 11, 2015 07:18

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

wyldckat August 12, 2015 17:58

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

Ron de Vos August 13, 2015 05:34

foamCleanTutorials
 
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

wyldckat August 13, 2015 08:24

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

Ron de Vos August 13, 2015 08:45

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 August 13, 2015 11:30

paraFoam
 
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

wyldckat August 13, 2015 11:38

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"

Ron de Vos August 13, 2015 11:44

Thank you very much
I knew there is still a lot of work to do.
Ron

Ron de Vos August 24, 2015 07:53

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

wyldckat August 24, 2015 14:29

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

Ron de Vos August 26, 2015 05:15

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

wyldckat August 26, 2015 19:24

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

Ron de Vos August 31, 2015 09:24

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

wyldckat August 31, 2015 18:56

Quote:

Originally Posted by Ron de Vos (Post 561778)
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

Ron de Vos September 10, 2015 10:26

post processing
 
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

wyldckat September 12, 2015 15:46

Quick answer: See tutorial "incompressible/simpleFoam/motorBike", files "system/controlDict" -> "system/forceCoeffs"


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