CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] Visualizing imported meshes (https://www.cfd-online.com/Forums/paraview/125982-visualizing-imported-meshes.html)

sudo November 5, 2013 11:37

Visualizing imported meshes
 
Ok, so I am still a beginner at OF trying to figure how things work out. I imported 2 meshes with varying success:

1. From HyperMesh in .cas format, then imported via fluentMeshToFoam. Importing was successful, but could not visualize w/ paraFoam, used
Code:

> foamToVtk
> paraview

Opened the 0.vtk file and it worked like a charm!

2. From Star CCM+ 8.04, I imported the 2D mesh from the back step tutorial. ccm26ToFoam worked fine and updated the files in the polyMesh folder (all but blockMesh).

Now I tried to do exactly as I did before:
1. deleted the p, U 0-files.
2. foamToVtk (so that I can use paraview)

but I received the following error(s):
Code:

Build  : 2.2.2-9240f8b967db
Exec  : foamToVTK
Date  : Nov 05 2013
Time  : 09:18:47
Host  : "UbuntuAres"
PID    : 6301
Case  : /home/openfoam/OpenFOAM/openfoam-2.2.2/Third_Party_Downloads/ccm26ToFoam/cavity
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Deleting old VTK files in "/home/openfoam/OpenFOAM/openfoam-2.2.2/Third_Party_Downloads/ccm26ToFoam/cavity/VTK"

Time: 0
    volScalarFields            : cellId cellType

    Internal  : "/home/openfoam/OpenFOAM/openfoam-2.2.2/Third_Party_Downloads/ccm26ToFoam/cavity/VTK/cavity_0.vtk"


--> FOAM FATAL ERROR:
Serious problem: asked to split a face with < 3 vertices

    From function face::split(const face::splitMode, const pointField&, label&, label&, faceList&, faceList&)
    in file meshes/meshShapes/face/face.C at line 143.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::face::split(Foam::face::splitMode, Foam::Field<Foam::Vector<double> > const&, int&, int&, Foam::List<Foam::face>&, Foam::List<Foam::face>&) const at ??:?
#3  Foam::face::nTrianglesQuads(Foam::Field<Foam::Vector<double> > const&, int&, int&) const at ??:?
#4 
 at ??:?
#5 
 at ??:?
#6 
 at ??:?
#7  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8 
 at ??:?
Aborted (core dumped)

So, any idea how to fix that? Thanks.

wyldckat November 9, 2013 15:23

Greetings sudo,

Well, the problem is that the mesh is far from perfect, which leads to foamToVTK not be able to split a strange looking cell.
You can try using the option "-poly", which preserves the structures of polyhedral cells, without splitting/decomposing them; but I'm guessing you'll get another similar problem sooner or later, since the mesh is not perfect.

As for not being able to open the mesh with paraFoam, I won't be able to help without seeing the complete error message.

Best regards,
Bruno


All times are GMT -4. The time now is 03:16.