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

pointZone to cellZone

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 12, 2012, 11:05
Default pointZone to cellZone
  #1
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Hi Foamers,

how can I get from a pointZone a cellZone?

cheers Peter
Peter_600 is offline   Reply With Quote

Old   July 15, 2012, 07:58
Default
  #2
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 564
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Peter,

I think you can use the setSet utility to do what you want.

Something like this:

start setSet in your case:
Code:
setSet
create a pointSet from your pointZone:
Code:
pointSet p0 new zoneToPoint yourPointZoneName
create a cellSet from the pointSet
Code:
cellSet c0 new pointToCell p0
quit setSet
Code:
quit
then create a cellZone from the cellSet:
Code:
setsToZones -noFlipMap
Now you will have a cellZone called c0 which contains the points from your pointZone yourPointZoneName.

I might have made a few mistakes with the syntax but it should do what you want with a bit of fiddling.

Best regards,
Philip
bigphil is offline   Reply With Quote

Old   July 16, 2012, 07:35
Default
  #3
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Thank you very much!
I ll give it a try!
cheers Peter
Peter_600 is offline   Reply With Quote

Old   July 16, 2012, 08:02
Default
  #4
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
This works fine for a pointSet, which is in ./polyMesh/sets/.

In my case I have a pointZone in ./polyMesh and I like to have a cellZone out of it.
Peter_600 is offline   Reply With Quote

Old   July 16, 2012, 09:01
Default
  #5
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 564
Rep Power: 19
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by Peter_600 View Post
This works fine for a pointSet, which is in ./polyMesh/sets/.

In my case I have a pointZone in ./polyMesh and I like to have a cellZone out of it.
Hi Peter,

The above method should work fine to create a pointZone from a cellZone. As I explained above, you must create a pointSet from your pointZone, then create a cellSet from your pointSet, then create a cellZone from the cellSet
i.e.
pointZone -> pointSet -> cellSet -> cellZone

Philip
bigphil is offline   Reply With Quote

Old   July 17, 2012, 03:33
Default
  #6
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Sorry it was my fault!
It works I will try to adapt it within my mesh class.
Thank you very much!!
Peter_600 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
Selecting cellzone using cellSet in OpenFOAM-1.7.0 ggoggodak85 OpenFOAM Mesh Utilities 0 April 25, 2012 05:48
porous media (cellzone) thisisit FLUENT 1 November 24, 2011 04:32
How to compute cellZone volume vinz OpenFOAM Programming & Development 11 August 2, 2010 17:38
How can I put snappy layers in a separate cellzone? overkligheten OpenFOAM 1 April 5, 2010 09:18
operating on a specific cellZone ??? kdarc OpenFOAM 1 May 11, 2009 10:47


All times are GMT -4. The time now is 04:24.