CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... (http://www.cfd-online.com/Forums/openfoam-meshing-other/)
-   -   ansysToFoam stops (http://www.cfd-online.com/Forums/openfoam-meshing-other/124838-ansystofoam-stops.html)

Mathias-TU October 14, 2013 10:58

ansysToFoam stops
 
1 Attachment(s)
Hey,

i want to convert a mesh from a simple pipe from ansys to openFOAM. I use ansys 14.5 and set the AWP_WRITE_FLUENT_MESH_ASCII uservariable to 1 to save the .msh in an ascii format. (see attachment)

When i type ansysToFoam Rohr.msh in the console:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.1-57f3c3617a2d
Exec : ansysToFoam Rohr.msh
Date : Oct 14 2013
Time : 07:52:23
Host : "ubuntu"
PID : 7450
Case : /home/mathias/OpenFOAM/test
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


comes and then the console stops and doesn't do anything.

What can i do?

Thank you!

-mAx- October 15, 2013 06:45

did you try fluent3DMeshToFoam or fluentMeshToFoam?

Mathias-TU October 15, 2013 09:11

Hey,

yes, i tried!

Error Message for fluent3DToFoam:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.1-57f3c3617a2d
Exec : fluent3DMeshToFoam Rohr.msh
Date : Oct 15 2013
Time : 06:09:16
Host : "ubuntu"
PID : 3001
Case : /home/mathias/OpenFOAM/test
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: 2640
Number of faces: 7013
Number of cells: 2208
--> 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





Error-Message for fluentMeshToFoam

[...]
Embedded blocks in comment or unknown:��
��)Embedded blocks in comment or unknown:�
�Embedded blocks in comment or unknown:�
;'���Found end of section in unknown:?
�Found end of section in unknown:?
Embedded blocks in comment or unknown:
[��Found end of section in unknown:?
}Found end of section in unknown:?
�����@�Found end of section in unknown:?
��Embedded blocks in comment or unknown:@�
��Found end of section in unknown:?
Embedded blocks in comment or unknown:;�
Embedded blocks in comment or unknown:(
Embedded blocks in comment or unknown:�
[Found end of section in unknown:?
Found end of section in unknown:�
��Found end of section in unknown:?
Embedded blocks in comment or unknown:��
���|��@�Found end of section in unknown:^
Found end of section in unknown:�
�Found end of section in unknown:)
Embedded blocks in comment or unknown:
�!�&{?d#Embedded blocks in comment or unknown:��
�Embedded blocks in comment or unknown:��
�Found end of section in unknown:?
�(0Dimension of grid: 13
(Dimension of grid: 1
Dimension of grid: 1
Dimension of grid: 30
aDimension of grid: 3
Dimension of grid: 4

What does it mean?

-mAx- October 15, 2013 09:15

do you have hexcore mesh?

Mathias-TU October 15, 2013 09:20

1 Attachment(s)
The mesh looks like this

http://abload.de/image.php?img=net0msar.jpg

-mAx- October 15, 2013 09:23

ok I reproduced your error.
Try do disable ascii export option
I imported your Rohr.msh in Gambit, and export it again in Fluent format.
The OF conversion is then successfull (fluentMeshToFoam)

Mathias-TU October 15, 2013 09:37

Thank you for answering!

Now, without saving in ascii, i get this:

mathias@ubuntu:~/OpenFOAM/ansysmsh$ ansysToFoam Rohr.msh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.1-57f3c3617a2d
Exec : ansysToFoam Rohr.msh
Date : Oct 15 2013
Time : 06:35:57
Host : "ubuntu"
PID : 3582
Case : /home/mathias/OpenFOAM/ansysmsh
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

Creating points
Creating cells
Creating boundary patches
ansysToFoam:
Ansys file format does not provide information about the type of the patch (eg. wall, symmetry plane, cyclic etc).
All the patches have been created as type patch. Please reset after mesh conversion as necessary.

Default patch type set to empty
Writing polyMesh

end


but i can't see the mesh via paraFoam... can you?


fluentMeshToFoam gives http://abload.de/image.php?img=fluentpzsj6.jpg

-mAx- October 16, 2013 01:05

It is weird that fluentMeshToFoam failed in your case (with me it is ok - fluent3DMeshToFoam also ok)
I tried to convert your mesh with ansysToFoam, it is successfull, and paraFoam doesn't show me any element.
I checked the Mesh (checkMesh), and there is no element in the mesh. (I don't think you have to use ansysToFoam converter, since you enforced Ansys to give you an Fluent mesh format. You may try to use ansysToFoam, but with an ansys mesh format)
Anyway then I checked the mesh from fluentMeshToFoam , but it failed (I suspect an issue which may come from german alphabet "-körper". Try "-koerper" --> checkMesh is then successfull)
As I don't have ansys I cannot look for the right export parameter which will make OF conversion (fluentMeshToFoam) successfull, but I can confirm that it worked from gambit, so you have to digg in ansys parameter

Mathias-TU October 16, 2013 05:51

Thank you for answering!!!

I really don't know which parameters in ansys are important for the conversion the ansys-mesh to open foam.

Our problem is, that we need a complex geometry and it's really hard to hack it in the text-file by hand.

So we want to create the geometry with SolidEdge or Autocad, import it to ansys and create the mesh via ansys. Then we would import the ansys-mesh to openFoam.

Maybe you have a better idea?

Thank you so much!

-mAx- October 16, 2013 06:31

did you changed the name of your BC and fluid-domain --> no "ö" ?
And then retry fluentMeshToFoam or fluent3DMeshToFoam?
Then as I don't have Ansys I cannot test your export. Maybe you can post a picture of the export panel in Ansys...

Mathias-TU October 16, 2013 07:04

Hmmmm... where do you see the "ö"? I don't find it.

-mAx- October 16, 2013 07:13

2 Attachment(s)
when I import your Rohr.msh, I can see your BC "wall-volumenkörper" and fluid-domain "volumenkörper"
Attachment 26104 Attachment 26105

Mathias-TU October 16, 2013 07:40

I changed the name, but i get still the same errors. MAybe you can check these zweo .msh files? https://www.wetransfer.com/downloads...6113804/a9ac3a

i saved them in ascii and binary, with no ö

-mAx- October 16, 2013 07:48

yes I got also your error.
But If I import it in Gambit, and direct export the mesh file, then it is ok.
Can you post a picture of the Panel you get for the export (options etc...)

Maybe you also have Gambit?

Mathias-TU October 16, 2013 07:53

http://abload.de/image.php?img=ansysxtsvj.png

Here is a picture from the Ansys-screen. You don't have any options for the export of the net.

And no, i don't have Gambit. But i can install it. Where can i get it?

-mAx- October 16, 2013 08:25

Anything in Datei/export?

Mathias-TU October 16, 2013 08:36

Datei --> Export opens the "Speichern unter" window.

in the options i found this:
http://abload.de/image.php?img=optionenwwxta.jpg

-mAx- October 16, 2013 08:40

ok
then you can try other mesh type (cfx for instance)
--> http://www.openfoam.org/docs/user/st...p#x14-900003.6

don't you have any cfd solver within ansys?

Mathias-TU October 16, 2013 10:24

The problem is, that a student wrote some codes for the calculation of nanoparticle-traces for open-foam. The student left the institute, and with him his knowledge in cfd.

so we must use openFome to use his codes.

-mAx- October 17, 2013 00:44

yes I understand.
But you have also the possibility to export your mesh into other format (like cfx, icemcfd)
Here is the list of the mesh format you can import into OF
http://www.openfoam.org/docs/user/st...p#x14-900003.6

How complex is your geometry? if it is quite simple, you can use blockMesh from OF.
Or if you are really stucked, I can export your geometry from gambit, and you can convert it into OF with fluentMeshToFoam or fluent3DMeshToFoam.


All times are GMT -4. The time now is 17:47.