CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   Hypermesh (http://www.cfd-online.com/Forums/openfoam-meshing/61608-hypermesh.html)

guido_adriaensen January 3, 2006 10:00

Hello everybody, Is it poss
 
Hello everybody,

Is it possible to read in a mesh generated by Hypermesh? Hypermesh is from Altair part of the hyperworks package.
I've tried several outputs, Among which Ideas and Ansys, but they do not work. They all give the same error:

--> FOAM FATAL ERROR : points deallocated

From function const pointField& polyMesh::allPoints() const
in file meshes/polyMesh/polyMesh.C at line 656.

FOAM aborting

Has anybody got an idea? If not I will contact hyperworks and ask them for different mesh outputs.

regards
Guido

mattijs January 4, 2006 15:49

The message comes from the mes
 
The message comes from the mesh being empty so it looks like the conversion has failed.

The ideasToFoam was written some time ago to convert a mesh input file coming from Ansys. We only tested it on flange.ans from the laplacianFoam tutorial.

mattijs January 13, 2006 05:54

We managed to convert a hyperM
 
We managed to convert a hyperMesh file.

- export to Ansys
- if nessecary replace all DOS linefeeds with Unix ones (e.g. with dos2unix)
- use ideasToFoam

guido_adriaensen January 13, 2006 07:02

Hello Mattijs, Thanks for t
 
Hello Mattijs,

Thanks for the update. I also just received a message from hypermesh-people that it should work. I believe they have contacted you for this. :-) I just tested it myself and it works indeed, thanks for your help!

Guido

vivekcfd March 17, 2006 12:19

Hello Guido, Hello Mattjis, I
 
Hello Guido, Hello Mattjis,
I tried to read an IDEAS file generated by ICEM
with ideasToFoam and I got exactly the same error message as Guido.

--------------------

--> FOAM FATAL ERROR : points deallocated

From function const pointField& polyMesh::allPoints() const
in file meshes/polyMesh/polyMesh.C at line 656.

FOAM aborting

Aborted
--------------

I then executed dos2unix (since I generated the file on a windows machine) but still
no success. Can anybody help?

Regards and thanks
Vivek

mattijs March 17, 2006 14:23

- check the file for DOS linef
 
- check the file for DOS linefeeds.
- check the contents of the file. Compare to the flange.ans file in the laplacianFoam tutorial. Do you have 'N' (nodes), 'EN' (elements) and 'SFE' (boundary faces)? (all the other fields are discarded)

guido_adriaensen March 20, 2006 03:54

Hello, If you have created
 
Hello,

If you have created the mesh with hypermesh you indeed will have to use something like dos2unix, since hypermesh writes out the mesh-files in dos-format.
I've spoken to some people from hypermesh last week. They are now working on a conversion from hypermesh directly to openFOAM. I've provided them with some examples of the mesh-files from openFOAM and they will create either a conversion tool or maybe even a direct export option inside hypermesh. The more people that ask hypermesh for a port to openfoam, the more likely that they will built it in to their next release.

kind regards
Guido

vivekcfd March 20, 2006 06:47

Mattijs: My IDEAS file diffe
 
Mattijs:
My IDEAS file differ comopeletly from what lies in the .ans file from the laplacianFoam tutorial. I have checked my IDEAS file, it has no N, EN and SFE flags.
Guido:
I have not generated the IDEAS file with hypermesh but with another grid generation tool known as ICEM.

I am still not finding a way to export my mesh from ICEM to OpenFOAM. From ICEM, I can export my grid file to the follwoing unstructured grid formats:
ANSYS, ANSYS-CFX, IDEAS and PATRAN

Can you help?

regards
Vivek

nico765 March 20, 2006 09:21

export to fluent, you'll get a
 
export to fluent, you'll get a *.cas file. Then you can use fluentToFoam utility.

Nico

vivekcfd March 20, 2006 19:23

Nicolas As I wrote in my prev
 
Nicolas
As I wrote in my previous mail, I can only export my mesh in the follwoing formats as per output module of ICEM:
ANSYS, ANSYS-CFX, IDEAS and PATRAN

Other exports require an additional ICEM license which I do not have at the moment.

Export to fluent: is it fluent_V4 or fluent_V6 export?

Can anyone give me a solution? I am getting very frustated with the very first step of getting aquianted with OpenFOAM.

thanks
VK

mattijs March 21, 2006 05:04

Try the Ansys format. See if i
 
Try the Ansys format. See if it is similar to that flange.ans one. If so try the ideasToFoam (in the new version it has been renamed to ansysToFoam)

hjasak March 21, 2006 05:11

Actually Mattijs, that one is
 
Actually Mattijs, that one is very problematic: it reads the Ansys input file (creating vertices etc as an Ansys script) rather than the actual mesh. It came as a way of getting a mesh from Ideas and we didn't have a sensible export format. I'm not sure we've got a converter that can read the ansys mesh.

Hrv

francesco_b January 14, 2008 12:51

Hi all, which is the actual si
 
Hi all, which is the actual situation with Hypermesh? I tried to use ideasUnvToFoam to convert files but I still got some problems. Is there someone who succeeded in solving it?

Thank you in advance

Francesco

guido_adriaensen January 15, 2008 04:34

Hello Francesco, I'm using
 
Hello Francesco,

I'm using Hypermesh to create my mesh-files and import them into OF. Which version are you using? We have had an update to write native fluent / star, etc formats. I'm using the fluent format, which I convert by using fluentMeshToFoam. This works perfectly. The problem with the current release is that they write nastran files, even though it says write fluent or whatever.

Guido Adriaensen

olesen January 15, 2008 05:25

Hi Guido and Francesco, For
 
Hi Guido and Francesco,

For the STAR-CD export, they're exporting Nastran solids as well. The boundary condition definitions are a bit of a hack: they define shells and then use the pro-STAR functionality to change these into boundary patches.

How are the boundary conditions being defined for the Fluent and unv outputs?

/mark

francesco_b January 15, 2008 05:30

Hi Guido, I've changed fro
 
Hi Guido,

I've changed from version 7.1 to 8.0 RS1 only some days ago, I also downloaded the patches from the Altair site, but I'm quite new to this version. I tried to export a mesh with the "CFD/general" template but I could only write a Nastran file. Where can I find your update? Is it available somewhere?

Thank you in advance

Francesco

florian_krause January 15, 2008 06:19

Hi all! sounds good, that y
 
Hi all!

sounds good, that you use HM for meshing http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

We have an CFD Update for HM80SR1 which should solve your problem.

ftp://ftp.altair.de/outgoing/hyperwo...80/CFD_Updates

You will find the packed files and a readme with the install introductions

In the Utility Browser you will get a CFD I/O menu where you can export a "real" Fluent *.cas file, so no problem to use fluentMeshToFoam ;)

a positive feedback would be nice!

Regards,
Flo

guido_adriaensen January 15, 2008 06:27

Hello Francesco and Mark, W
 
Hello Francesco and Mark,

We have had an update from Altair. If you send me an email I will send you the files, you need to extract them in your install directory of HW and it will create the correct translators. Or you could contact Altair and request this update from them, it was an unofficial update from the USA department of Altair.

kind regards
Guido Adriaensen

guido_adriaensen January 15, 2008 06:48

Hello, The update I was spe
 
Hello,

The update I was speaking about is the same as the one from Florian. It works perfectly for us. :-)

kind regards
Guido

florian_krause January 15, 2008 07:16

Hi, This patch is the actua
 
Hi,

This patch is the actual one, but it will be updatet from time to time.
So I can let you know if we have a new cfd update with significant changes on our ftp site...

Regards,
Flo


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