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

funkySetFields over a cellZone

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 14, 2014, 07:31
Default funkySetFields over a cellZone
  #1
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 96
Rep Power: 8
r2d2 is on a distinguished road
Dear All,
What would be the syntax of funkySetFields to set a value of a field only on a part of a cellZone of my mesh?
This does not work:

expressions
(

setProp1
{
field alpha;
zoneName pipe;
condition " (pos().y < -0.331)";
expression "1";
keepPatches true;
}

);

Many thanks in advance...
r2d2 is offline   Reply With Quote

Old   February 14, 2014, 12:41
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by r2d2 View Post
Dear All,
What would be the syntax of funkySetFields to set a value of a field only on a part of a cellZone of my mesh?
This does not work:

expressions
(

setProp1
{
field alpha;
zoneName pipe;
condition " (pos().y < -0.331)";
expression "1";
keepPatches true;
}

);

Many thanks in advance...
This is documented in the incomplete reference guide that comes with the sources and on the original funkySetFields-page (I point this out because it is my impression that the fact that there IS documentation seems to confuse people): you're looking for the zone-function. Your condition would be (if I interpret it correctly) "zone(pipe) && (pos().y<-0.331)"
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 17, 2014, 04:33
Default
  #3
Member
 
Radu Mustata
Join Date: Mar 2009
Location: Zaragoza, Spain
Posts: 96
Rep Power: 8
r2d2 is on a distinguished road
Dear Bernhard,
My fault for being a bit lazy...actually I found it while you gave me the solution.
Many thanks,
radu
r2d2 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
faceZone or cellZone for MRF nash OpenFOAM Pre-Processing 2 April 30, 2015 12:06
groovyBC and funkySetFields married and got a kid named swak4Foam gschaider OpenFOAM 164 January 13, 2015 03:52
funkySetFields and funkySetBoundaryFields zxj160 OpenFOAM 14 October 3, 2013 12:52
how to use funkySetFields function in muliregion case bryant_k OpenFOAM 3 April 28, 2013 16:54
How to compute cellZone volume vinz OpenFOAM Programming & Development 11 August 2, 2010 17:38


All times are GMT -4. The time now is 06:29.