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

some questions about neibours of patches in groovyBC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 19, 2013, 18:12
Default some questions about neibours of patches in groovyBC
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,187
Rep Power: 16
immortality is on a distinguished road
in groovyBC contrib there are some definitions that i have some questions about.
1)is internalField of a field the value of that fiels at neighbour of the patch of boundary condition?
2)how can use Cn tool?does for instance Cn(p) gives us the value at neighbor or it just shows the place of neighbor?
3)what does coupled patch mean?then whats neighbourField?

Code:
Cn 
neighbour cell centers of the patch
delta 
Return cell-centre to face-centre vector
weights 
Return patch weighting factors
3.5 Functions that need another field are:
snGrad 
Gradient of that field
internalField 
internal values of that field
neighbourField 
neighbour values for a coupled patch
immortality is online now   Reply With Quote

Old   February 20, 2013, 10:36
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,187
Rep Power: 16
immortality is on a distinguished road
no answers yet?
immortality is online now   Reply With Quote

Old   February 22, 2013, 07:24
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,187
Rep Power: 16
immortality is on a distinguished road
nobody can explain a bit about those?
immortality is online now   Reply With Quote

Old   February 26, 2013, 18:58
Default
  #4
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,187
Rep Power: 16
immortality is on a distinguished road
Mr.Gschaider could you guide me about post 1?
immortality is online now   Reply With Quote

Old   February 27, 2013, 06:28
Default
  #5
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 immortality View Post
Mr.Gschaider could you guide me about post 1?
To explain that more thoroughly than it already is explained would take me more time than I currently have
__________________
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 27, 2013, 10:51
Default
  #6
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,187
Rep Power: 16
immortality is on a distinguished road
all answers on it whenever is appreciated(sooner is better).
immortality is online now   Reply With Quote

Old   March 3, 2013, 12:00
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,187
Rep Power: 16
immortality is on a distinguished road
one who asks a question is a fool for five minutes,one who does not ask a question remains a fool forever
Chinese proverb
immortality is online now   Reply With Quote

Old   March 3, 2013, 12:38
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

Quoting from wikipedia, on a topic from a favourite book of mine: http://en.wikipedia.org/wiki/Answer_...thing_.2842.29
Quote:
[...] a group of hyper-intelligent pan-dimensional beings demand to learn the Answer to the Ultimate Question of Life, The Universe, and Everything from the supercomputer, Deep Thought, specially built for this purpose. It takes Deep Thought 7 million years to compute and check the answer, which turns out to be 42. The Ultimate Question itself is unknown.
Basically, even if one asks a question, the quality of the answer will depend on the quality of the question.

And when it comes to Computational Fluid Dynamics it becomes even more true and complex, because simply asking what is "x" in "A*x=B", usually is not enough


OK, but mathematical existentialism aside, your questions on this thread will require you to help us help you. In essence, please prepare and share one or more simple test cases, where you and anyone else can help you figure out what each one of these functions/capabilities are.
The reason I ask you is rather simple: setting up cases usually takes longer than figuring out what each function really does!

So, I suggest you do the following steps:
  1. Create a simple cube shaped test case. It can be the tutorial "incompressible/icoFoam/cavity", modified to work in 3D. It can still be prepared to work with icoFoam, which is a rather simple case and has a low count of cells. potentialFoam is another good candidate, because it's fast and extremely simple.
  2. Create a few variants of this case:
    1. Remove the top moving wall patch. Add one outlet patch and an inlet patch. Doesn't matter much where the they are located, but keep in mind that opposite patches are good for some tests and perpendicular patches are good for other cases.
      Another detail is to keep all 6 sides of the cube assigned to a specific patch name, to make it easier to switch patches to walls and vice-versa.
    2. Based on 2.1, change the inlet patch for use groovyBC with a known expression that should work. Something like fixed value or height based. This will be used for figuring out each feature that groovyBC has got.
    3. Another one based on 2.1 or 2.2, but this time using the icoFoam with temperature, as described at http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam . The reason here is because it will make it easier to use the T field as "the other field" or perhaps the T field to be based on p or U.
  3. Share the cases here on this thread, in a state before generating the mesh. It's easy to clean up a tutorial, simply by running:
    Code:
    foamCleanTutorials
Having access to these simple test cases will make it rather easy to then do some trial-and-error tests. It will also make it easy to know what the values stand for, because the cases are so simple that values can be calculated by hand.

Best regards,
Bruno
wyldckat 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
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 14 July 25, 2015 14:15
groovyBC for coupling of patches deniggo OpenFOAM Running, Solving & CFD 20 October 2, 2014 18:04
Regarding periodic BC in ICEM generated grid Tarak OpenFOAM 32 April 30, 2013 14:46
questions about groovyBC immortality OpenFOAM Running, Solving & CFD 2 December 14, 2012 11:07
Two questions about groovyBC immortality OpenFOAM Running, Solving & CFD 3 December 4, 2012 19:42


All times are GMT -4. The time now is 05:23.