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

Several actions in one faceSetDict

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 10, 2008, 18:47
Default Dear foamers, All the examp
  #1
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 8
olwi is on a distinguished road
Dear foamers,

All the examples of the faceSetDict and cellSetDict I find in the tutorials do only one action on one single set.

Could I work on several sets in the same faceSetDict, and maybe do several actions on one set? What's the syntax? Or do I have to make several faceSetDict:s? Hope I'm missing something trivial...

For example, I want to collect the faces of a patch, and have half of them in faceSet "n1" and the other half in faceSet "n2". For "n1", I would create a 'new' set from all patch faces, and then 'delete' half of them with a box selector.

Thanks in advance,

Ola

PS. Information that helps me will end up in the wiki, for the benefit of others...
olwi is offline   Reply With Quote

Old   September 11, 2008, 01:24
Default Why don't you work on it using
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,763
Rep Power: 21
hjasak will become famous soon enough
Why don't you work on it using setSet - this will give you an interactive interface and you can manipulate sets in any way you like.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   September 11, 2008, 11:15
Default Brilliant! It seems setSet als
  #3
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 8
olwi is on a distinguished road
Brilliant! It seems setSet also takes a batch file. Or I can pipe a text file to stdin. (Thing is I want to have it scripted, rather than interactive.)

Thanks,

Ola
olwi is offline   Reply With Quote

Old   October 4, 2011, 15:42
Default
  #4
Member
 
HD
Join Date: Jul 2011
Posts: 56
Rep Power: 6
Rebecca513 is on a distinguished road
Dear Ola,

Can I ask how you did the patch split. I mean you got a faceSet for half of the patch, and another faceset for the other. That is exactly what I need to do now.

I don't know what is the action or criteria you used to create a faceset from a patch.

My case is that I have a patch, with two parallel plates, each plate is like the our landscape, not regular. I want to split them into two patches, to give them different boundary conditions.

Do you have any idea how to solve this?

Thank you so much!!!

Best,
Hang
Rebecca513 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



All times are GMT -4. The time now is 07:01.