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

[OpenFOAM] Visualizing imported meshes

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2013, 12:37
Question Visualizing imported meshes
  #1
New Member
 
Join Date: Feb 2013
Posts: 24
Rep Power: 13
sudo is on a distinguished road
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.
sudo is offline   Reply With Quote

Old   November 9, 2013, 16:23
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 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
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
ccm+ foamtovtk paraview

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 05:06
Rotor-Stator with separate imported meshes jrrygg OpenFOAM Pre-Processing 4 October 29, 2012 10:42
[Netgen] keeping/changing dimensions in imported meshes bigred OpenFOAM Meshing & Mesh Conversion 2 September 28, 2009 04:38
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 16:49
[Technical] Using stitchmesh on imported gmsh meshes christian67 OpenFOAM Meshing & Mesh Conversion 0 November 26, 2005 05:22


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