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

[swak4Foam] some questions about neibours of patches in groovyBC

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread 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,208
Rep Power: 27
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 offline   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,208
Rep Power: 27
immortality is on a distinguished road
no answers yet?
immortality is offline   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,208
Rep Power: 27
immortality is on a distinguished road
nobody can explain a bit about those?
immortality is offline   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,208
Rep Power: 27
immortality is on a distinguished road
Mr.Gschaider could you guide me about post 1?
immortality is offline   Reply With Quote

Old   February 27, 2013, 06:28
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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,208
Rep Power: 27
immortality is on a distinguished road
all answers on it whenever is appreciated(sooner is better).
immortality is offline   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,208
Rep Power: 27
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 offline   Reply With Quote

Old   March 3, 2013, 12:38
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
t.oliveira and Hamoon like this.
__________________
wyldckat is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with periodically repeated partially overlapping patches / nested cyclicACMI Nysander OpenFOAM Running, Solving & CFD 1 October 10, 2017 11:01
[Commercial meshers] fluentMeshToFoam: "fluent patch type shadow not recognised" preibie OpenFOAM Meshing & Mesh Conversion 28 March 29, 2017 05:56
OF ext-3.2 new createPatch cyclics issue Jack001 OpenFOAM Pre-Processing 0 May 26, 2016 15:43
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 09:00
[snappyHexMesh] On which patches to set BC's for snappyHexMesh ? Talder OpenFOAM Meshing & Mesh Conversion 0 November 8, 2015 19:25


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