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

[Salome] Definition of cellZones

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2007, 05:26
Default Definition of cellZones
  #1
Member
 
sradl's Avatar
 
Stefan Radl
Join Date: Mar 2009
Location: Graz, Austria
Posts: 82
Rep Power: 18
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, 06:32
Default Stefan, Here's some code th
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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, 11: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: 18
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


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
[snappyHexMesh] SHM doesn't create cellZones for one region Eko OpenFOAM Meshing & Mesh Conversion 10 January 24, 2018 03:03
It has to include complete definition of a type (not just fwd declaration), isn't it? Zeppo OpenFOAM Programming & Development 12 August 16, 2016 15:01
(AutoGRID 5) Problem in Geometry definition of propeller venkat_aero2007 Fidelity CFD 14 July 31, 2012 15:05
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
DecomposePar and CellZones Anne Lincke OpenFOAM 4 October 13, 2010 10:18


All times are GMT -4. The time now is 17:47.