CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Netgen] Polymesh cells file missing

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2008, 04:42
Default Polymesh cells file missing
  #1
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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
fabrizio is offline   Reply With Quote

Old   October 27, 2008, 03:41
Default The proper solution is to fix
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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.
olesen is offline   Reply With Quote

Old   October 27, 2008, 10:40
Default Hi Mark thank for your advice.
  #3
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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
fabrizio is offline   Reply With Quote

Old   October 27, 2008, 12:23
Default Sorry, I don't know it off-han
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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.
olesen is offline   Reply With Quote

Old   October 27, 2008, 16:22
Default Had this lying around http
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Had this lying around

writeCellsFile.tgz
mattijs is offline   Reply With Quote

Old   October 28, 2008, 04:38
Default Hi Mattijs thank you very
  #6
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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 is offline   Reply With Quote

Old   October 28, 2008, 08:59
Default Hi Mattijs I don't know ho
  #7
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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
fabrizio is offline   Reply With Quote

Old   October 28, 2008, 09:14
Default Try the 'wmake' and 'wclean' c
  #8
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Try the 'wmake' and 'wclean' commands. These are OpenFOAM-specific.
olesen is offline   Reply With Quote

Old   October 29, 2008, 04:38
Default Perfect it works! Thank you
  #9
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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
fabrizio is offline   Reply With Quote

Old   October 29, 2008, 05:13
Default You'll have to check on the ca
  #10
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
You'll have to check on the calculix mailing list/forum.
olesen is offline   Reply With Quote

Old   October 30, 2008, 06:03
Default Hi I think the problem should
  #11
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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
fabrizio is offline   Reply With Quote

Old   October 30, 2008, 07:09
Default If calculix wants to call it s
  #12
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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.
olesen is offline   Reply With Quote

Old   October 30, 2008, 07:47
Default Thank you for your reply. W
  #13
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
Thank you for your reply.

What file (files) should I modify?
fabrizio is offline   Reply With Quote

Old   October 30, 2008, 08:15
Default Your 'cells' file of course!
  #14
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Your 'cells' file of course!
olesen is offline   Reply With Quote

Old   October 30, 2008, 09:39
Default There is no information about
  #15
Member
 
fabrizio
Join Date: Mar 2009
Posts: 33
Rep Power: 17
fabrizio is on a distinguished road
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
fabrizio is offline   Reply With Quote

Old   October 30, 2008, 10:07
Default Before you can change the outp
  #16
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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?
olesen is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41


All times are GMT -4. The time now is 05:39.