CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] Converting an abaqus mesh using matlab scripts and fluentMeshToFoam (https://www.cfd-online.com/Forums/openfoam-meshing/138184-converting-abaqus-mesh-using-matlab-scripts-fluentmeshtofoam.html)

MichaelD June 30, 2014 07:12

Converting an abaqus mesh using matlab scripts and fluentMeshToFoam
 
Hi everyone,

I'm currently trying to import a mesh created in abaqus into OpenFOAM, by using matlab scripts and the abaqus .inp file to create a fluent .msh file. From there I was planning to use fluentMeshToFoam.

However, using fluentMeshToFoam gives the following error:


Quote:

[michael@semar-linnex3 meshtest3]$ fluentMeshToFoam output.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.0
Exec : fluentMeshToFoam output.msh
Date : Jun 30 2014
Time : 11:16:58
Host : "semar-linnex3.se-as.no"
PID : 935
Case : /home/michael/OpenFOAM/michael-2.3.0/run/meshtest3
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

Reading header: "abaqusToAnsys_cylinder.m"
Dimension of grid: 3
Number of cells: 9092
number of faces: 36626
Number of points: 18698
Reading points
Other readCellGroupData: 2 1 2384 1 4
Reading uniform cells
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces
Reading uniform faces


FINISHED LEXING


dimension of grid: 3
Creating shapes for 3-D cells


--> FOAM FATAL ERROR:
face 0 does not belong to cell 2717. Face owner: -1 neighbour: 2700

From function create3DCellShape(const label cellIndex, const labelList& faceLabels, const labelListList& faces, const labelList& owner, const labelList& neighbour, const label fluentCellModelID)
in file create3DCellShape.C at line 122.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::error::abort() in "/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2
in "/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/fluentMeshToFoam"
#3
in "/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/fluentMeshToFoam"
#4 __libc_start_main in "/lib64/libc.so.6"
#5
in "/opt/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/bin/fluentMeshToFoam"
Aborted (core dumped)
What exactly does this error mean? It's apparent that something's wrong with the .msh file, and I've tried looking for something indicating 0 is designated as having element 2717 as owner, but couldn't find anything. The output.msh file is in the link below:

https://drive.google.com/file/d/0ByI...it?usp=sharing

Any help is appreciated!

MichaelD July 2, 2014 06:34

Turns out there were a couple of boundary faces (in a different part of the mesh) that were misidentified as internal faces, and when that was fixed, the mesh loads just fine.

I'm still not sure why this error message appeared; it seems unrelated to what fixed the mesh. Oh well, it works now at least!


All times are GMT -4. The time now is 10:25.