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] Hypermesh (https://www.cfd-online.com/Forums/openfoam-meshing/61608-hypermesh.html)

guido_adriaensen January 3, 2006 09:00

Hypermesh
 
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 14: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 04: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 06: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 11: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 13: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 02: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 05: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 08: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 18: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 04: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 04: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 11: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 03: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 04: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 04: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 05: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 05: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 05: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 06: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

olesen January 16, 2008 07:32

I just received similar inform
 
I just received similar information from Altair.

The neueste CFD Update is under
ftp://ftp.altair.de/outgoing/hyperwo...80/CFD_Updates

He also noted that there are a few new features:
- automatic prism layer adjustment
- Hex-core meshing
- Load mapper - to map CFD results on to FEA meshes

I hadn't tried it before (we don't have Fluent), but it tried it now and the fluentMeshToFoam seems to work nicely with it.

The STAR-CD export also seems to work better (no more hack with Nastran), but it only writes the STAR-CD version 3 format, which makes the boundary imports take a bit longer in star4.

francesco_b January 29, 2008 05:48

Hi all, I'd like to produc
 
Hi all,

I'd like to produce a 3D mesh which contains a rotating object (like a fan). I meshed it with HM but I don't know how to set the Zones files which are needed by MRFSimpleFoam. I've tried with the -writeZones options but I think the problem is in the construction of the mesh. Can you help me?

Thanks in advance

Francesco

P.S. I've tested fluentMeshToFoam with other mesh and everything was ok, this is my first mesh with internal objects

guido_adriaensen January 30, 2008 03:17

Hello Francesco, I'm not sp
 
Hello Francesco,

I'm not speaking from experience with this, but have you tried the following:
-Creating two different fluid "zones" or collectors in Hypermesh
-Do not connect/equivalence the two zones; this would have to ensure that you have two non-connected zones in your model

Kind regards,

Guido

leonardo July 30, 2008 10:36

I have a model in HM with tetr
 
I have a model in HM with tetramesh on it, and its correspoding tria surface mesh. I want to export this file with mesh 200 for the trias and solid 92 for the 3d mesh. How do I do this? I tried looking into real constants but they don't have solid 92 or mesh 200 as an option. I already added the element types but I don't know how to assign those to my current mesh.

leonardo July 30, 2008 10:41

I forgot to mention I'm trying
 
I forgot to mention I'm trying to get to file in ansys. Thanks!

florian_krause July 30, 2008 10:55

Hi Leonardo, if you want to
 
Hi Leonardo,

if you want to import a 3D mesh from HyperMesh in OpenFOAM, please try to export the mesh as a Fluent *.cas file and import this with fluentMeshToFoam in OpenFOAM format.

This should work without any errors

Best regards,
Florian

luca_phi September 16, 2008 08:50

Hi, I did what Florian has de
 
Hi,
I did what Florian has described above, import 3D mesh from HyperMesh with *.cas Fluent file, then
with the command $ fluent3DMeshToFoam I've created the mesh.
But when I check the mesh whit $ checkMesh I get this message:
...
...
Time = constant

#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 __restore_rt at sigaction.c:0
#3 Foam::primitiveMesh::calcCells(Foam::List<foam::ce ll>&, Foam::UList<int> const&, Foam::UList<int> const&, int) in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#4 Foam::primitiveMesh::cells() const in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#5 __gxx_personality_v0 in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/checkMesh "
#6 main in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/checkMesh "
#7 __libc_start_main in "/lib64/libc.so.6"
#8 Foam::regIOobject::readIfModified() in "/home/openfoam/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/checkMesh "
Segmentation fault

Can you help me to resolve the problem?


All times are GMT -4. The time now is 07:12.