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

whats the trick to access to second layer of patch neighbors in groovyBC?

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

Like Tree4Likes
  • 1 Post By gschaider
  • 2 Post By gschaider
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Display Modes
Old   July 8, 2013, 21:49
Default whats the trick to access to second layer of patch neighbors in groovyBC?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,173
Rep Power: 16
immortality is on a distinguished road
i want to use an expression on outlet so that the pressure on the patch be to say 100000 less than internalField,
But for more smoothness its good to have access and participate second layers of neighbors in expression too.
How can do it?is it possible or not(with or without groovyBC)?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 9, 2013, 06:43
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
i want to use an expression on outlet so that the pressure on the patch be to say 100000 less than internalField,
But for more smoothness its good to have access and participate second layers of neighbors in expression too.
How can do it?is it possible or not(with or without groovyBC)?
Not possible in groovyBC. And hard to do in C++ (part of the problem is that "second layer of cells" is only well-defined for a pure hex-mesh and even then you have corner-cases ... on the corners)
immortality likes this.
__________________
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 online now   Reply With Quote

Old   July 9, 2013, 06:59
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,173
Rep Power: 16
immortality is on a distinguished road
thanks.
what does "corner-cases" mean?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 9, 2013, 08:14
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
thanks.
what does "corner-cases" mean?
http://bit.ly/14FRisK
sylvester and startingWithCFD like this.
__________________
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

Last edited by gschaider; July 9, 2013 at 08:36. Reason: Link wrong
gschaider is online now   Reply With Quote

Old   July 9, 2013, 08:58
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,173
Rep Power: 16
immortality is on a distinguished road
what interesting site! google was filtered some days ago!
but I mean what corner cases may occur,in what sense?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 9, 2013, 11:14
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,862
Rep Power: 38
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by immortality View Post
what interesting site! google was filtered some days ago!
but I mean what corner cases may occur,in what sense?
Draw a regular grid with a corner (concave and convex) on a piece of paper and think what the second layer of cells is. In one case you have cells from the first layer in the second layer. In the other case there are cells missing that should have an influence. And that is an easy case
immortality likes this.
__________________
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 online now   Reply With Quote

Old   July 9, 2013, 13:01
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,173
Rep Power: 16
immortality is on a distinguished road
yes you right,that issue is for one or three cell but may be somewhat hard to write a program that realizes it but I have a thesis that have done it,I'll try to do this maybe some months later(after being light my works)and share!
now I think gradientExpession "-50000" for example works fine enough(acceptable).
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality 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
How to access to faces of a patch jaswi OpenFOAM Running, Solving & CFD 12 September 19, 2014 06:20
Access patch points (on different processor) in parallel Arnoldinho OpenFOAM Programming & Development 7 September 11, 2012 06:55
Can groovyBC (swak4foam) access dimensionedScalar? argonaut OpenFOAM Running, Solving & CFD 1 May 24, 2012 10:04
How to get access to normalVectors of specified faces in patch tilo OpenFOAM Programming & Development 0 April 27, 2012 20:59
errors Fahad Main CFD Forum 0 March 23, 2004 14:20


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