CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Mesh Utilities

Definition of cellZones

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 13, 2007, 04:26
Default Hello, I'd like to import a
  #1
Member
 
sradl's Avatar
 
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 8
sradl is on a distinguished road
Hello,

I'd like to import a mesh from ideasUnV-File format. The file contains information on a cellZone beside info on the boundary condition. I've modified the ideasUnvToFoam utility so that I can extract this information (i.e. a list of cells that belong to a zone) out of the .unv file.

The problem is how to add this info to my mesh.
How can I write this cellZone info in OF format?

Any hint where to start is welcome

br
Stefan
sradl is offline   Reply With Quote

Old   September 13, 2007, 05:32
Default Stefan, Here's some code th
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
Stefan,

Here's some code that should help give you some hints. The addCellZones() method can be readily adapted to your needs.

/mark

2 Files:
cellTable.H
cellTable.C
olesen is offline   Reply With Quote

Old   September 13, 2007, 10:27
Default Dear Mark, got it: I just l
  #3
Member
 
sradl's Avatar
 
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 8
sradl is on a distinguished road
Dear Mark,

got it: I just looked at the gmsh-converter and implemented in my ideasUnv-converter.

It is now possible to define a group "rotCellZone" in cubit, that will be registered by the converter and a cellSet file will be written. Then it can be used together with a MRF code.

If anybody is interested to test out the converter, please drop me an email:
stefan <dot> radl <@> tugraz <dot> at

However, the converter is very much customized but can be easily adjusted.

cheers
Stefan
sradl is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CellZones to solve different eq in different zones ivan_cozza OpenFOAM Running, Solving & CFD 7 June 30, 2011 10:53
what is GGI definition in CFX? NITIN DEWANGAN CFX 1 August 7, 2008 22:48
FluentMeshToFoam writes too small cellZones gschaider OpenFOAM Bugs 0 May 22, 2007 13:57
b.c. definition john FLUENT 0 June 5, 2004 10:00
definition of u* for y+<10 Robert Spall FLUENT 0 May 29, 2003 11:40


All times are GMT -4. The time now is 18:20.