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/)
-   -   [Other] Meshing in ansys (https://www.cfd-online.com/Forums/openfoam-meshing/140889-meshing-ansys.html)

mich_K August 25, 2014 16:24

Meshing in ansys
 
I am quite desperately looking for a mesher to create complex 3d as well as relatively simple 2d meshes.

I have tried using Salome but am finding it tricky, so have decided to use Ansys mesher for now, as I have acess to it at university, but hope that this is not a long-term solution as the program is to cluttered for my taste.

In the meantime though, this is what I will use.

I have exported the mesh file in Ansys Mesh as a .msh file and then placed it is the PolyMesh directory. I then ran fluentMeshToFoam from the polyMesh directory and get this output:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  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-f5222ca19ce6
Exec  : fluentMeshToFoam constant/polyMesh/SYS.msh
Date  : Aug 25 2014
Time  : 21:14:50
Host  : "mich-TravelMate-8372"
PID    : 18804
Case  : /home/mich/CFDStore/Base_case/case
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

number of faces: 8110
Number of points: 3060
Reading uniform faces
Reading points


FINISHED LEXING


#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigSegv::sigHandler(int) at ??:?
#2  in "/lib/x86_64-linux-gnu/libc.so.6"
#3 
 at ??:?
#4  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#5 
 at ??:?
Segmentation fault (core dumped)
mich@mich-TravelMate-8372:~/CFDStore/Base_case/case$

What am I doing wrong?

I am fairly sure the .msh file is in ASCII format.

Will it be able to import the named selections from Ansys Mesh?

Thank you in advance.

jherb August 31, 2014 14:07

There is another tool call fluentMeshToFoam which works (sometimes) if fluent3DMeshToFoam does not work.
See http://openfoamwiki.net/index.php/Fluent3DMeshToFoam

RTom September 5, 2014 10:38

Mesh from Ansys
 
Hi, I have a similar problem here, I am using CAE Linux 2013

After execute dos2unix fluent.msh

And show me:
dos2unix: Skipping binary file Helical2.msh

Then I execute fluent3dMeshToFoam and shows as follow:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.2-9240f8b967db
Exec : fluent3DMeshToFoam Helical2.msh
Date : Sep 05 2014
Time : 09:04:59
Host : "tom"
PID : 4049
Case : /home/tom/CFDCases/Helical2
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

Dimension of grid: 3
Number of points: 159528
Number of faces: 455395
Number of cells: 148219
--> FOAM Warning : Found unknown block of type: "3010"
on line 14


--> FOAM FATAL ERROR:
Do not understand characters: ;
on line 15

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 748.

FOAM exiting

Jamessmp23 September 30, 2020 04:48

Quote:

Originally Posted by RTom (Post 509214)
Hi, I have a similar problem here, I am using CAE Linux 2013

After execute dos2unix fluent.msh

And show me:
dos2unix: Skipping binary file Helical2.msh

Then I execute fluent3dMeshToFoam and shows as follow:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.2 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.2-9240f8b967db
Exec : fluent3DMeshToFoam Helical2.msh
Date : Sep 05 2014
Time : 09:04:59
Host : "tom"
PID : 4049
Case : /home/tom/CFDCases/Helical2
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

Dimension of grid: 3
Number of points: 159528
Number of faces: 455395
Number of cells: 148219
--> FOAM Warning : Found unknown block of type: "3010"
on line 14


--> FOAM FATAL ERROR:
Do not understand characters: ;
on line 15

From function fluentMeshToFoam::lexer
in file fluent3DMeshToFoam.L at line 748.

FOAM exiting

Did your case solved ? I have the exact same problem with fluentMeshtoFoam as well. I willing to know how to solve this problem.


All times are GMT -4. The time now is 11:30.