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/)
-   -   [Netgen] Polymesh cells file missing (https://www.cfd-online.com/Forums/openfoam-meshing/61946-polymesh-cells-file-missing.html)

fabrizio October 26, 2008 03:42

Polymesh cells file missing
 
Hi everybody I'm a new OF user, I have a problem and I hope someone can help me.
I have to import the results of my OF analysis in Calculix, but the operation fails because in the Polymesh directory the file 'cells' is missing.
I've created the mesh in NetGen, converted with netgenNeutralToFoam but the 'cells' files isn't created. The OF simulation works fine. I've read the manual, I know how a cell is defined, but I can't build this file.
Is there a way to create the 'cell' file?

Thank you very much

Fabrizio

olesen October 27, 2008 02:41

The proper solution is to fix
 
The proper solution is to fix Calculix to read the owner/neighbour files. The cells file is a remnant from a much older OpenFOAM format.

fabrizio October 27, 2008 09:40

Hi Mark thank for your advice.
 
Hi Mark thank for your advice. Can you tell me the structure of cells file?I need to create this file because fixing Calculix to read owner and neighbour is quite difficult, and I'm not a master in modifying Calulix source.

Thank you

Fabrizio

olesen October 27, 2008 11:23

Sorry, I don't know it off-han
 
Sorry, I don't know it off-hand, but since it's a cellList (I think ... check the polyMesh source) it shouldn't be hard to create.

mattijs October 27, 2008 15:22

Had this lying around http
 
Had this lying around

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif writeCellsFile.tgz

fabrizio October 28, 2008 03:38

Hi Mattijs thank you very
 
Hi Mattijs

thank you very much

I hope this works, it would be very important for me!

Tonight I'll try to run this file, and I'll let you know what I obtain.

Thank you again

Fabrizio

fabrizio October 28, 2008 07:59

Hi Mattijs I don't know ho
 
Hi Mattijs

I don't know how to use this file, I'm not a master in C programming...

I try with the command

gcc writeCellsFile.C

but I obtain a lot of errors concerning missing libraries, that should be installed if OpenFoam works correctly.

Thanks for help

Fabrizio

olesen October 28, 2008 08:14

Try the 'wmake' and 'wclean' c
 
Try the 'wmake' and 'wclean' commands. These are OpenFOAM-specific.

fabrizio October 29, 2008 03:38

Perfect it works! Thank you
 
Perfect it works!

Thank you very much!

Nox I'm able to create the cell file, but I have another problem: when I type

cgx -foam <root> <case>

I obtain this error:

element type tet4 not supported

Now I'll try to change the element type of my mesh, do you know what is the right tipe?

Thank you again

Fabrizio

olesen October 29, 2008 04:13

You'll have to check on the ca
 
You'll have to check on the calculix mailing list/forum.

fabrizio October 30, 2008 05:03

Hi I think the problem should
 
Hi I think the problem should be solved also in OpenFoam. When I type

cgx -foam <root> <case>

I obtain this error:

elem-type:tet4 not installed.

I think this is due to the fact that OpenFoam names tethraedral element as "tet4", while Calculix names it as "C3D4", recognized as "type3" elements.

Is it possible to assign a different name to an element type in OpenFoam?

If possible, what should I modify?

Thanks to all again

Fabrizio

olesen October 30, 2008 06:09

If calculix wants to call it s
 
If calculix wants to call it something else, that is their business. I wouldn't start changing OpenFOAM - there is lots that might break.

If you are writing ASCII format, then simply sed s/tet4/C3d4/g on the file.

fabrizio October 30, 2008 06:47

Thank you for your reply. W
 
Thank you for your reply.

What file (files) should I modify?

olesen October 30, 2008 07:15

Your 'cells' file of course!
 
Your 'cells' file of course!

fabrizio October 30, 2008 08:39

There is no information about
 
There is no information about element type in cells file...
It only is a list of cells in this way:

4(a b c d)

4 stands for the number of nodes necessary to build the element, and a b c d are the points labels.

That's why I thought I should modify some in OpenFoam...but I don't know what!

Thanks

Fabrizio

olesen October 30, 2008 09:07

Before you can change the outp
 
Before you can change the output, you really need to know what calculix is expecting to read. Is there not a calculix mailing list or forum where you can find some help?


All times are GMT -4. The time now is 03:31.