|
[Sponsors] |
[swak4Foam] groovyBC, coupling inlet with velocity at specific point location |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 18, 2011, 13:03 |
groovyBC, coupling inlet with velocity at specific point location
|
#1 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
I need to link my velocity inlet with the velocity somewhere inside the domain. I know the location / coordinate, but i can't use the coupling betwheen patch. Can groovyBc do this ? ex, something like : Code:
inlet { type groovyBC; variables "V022@pos(0,2,2)=U"; valueExpression "(V022 > 1.2) ? 2 : 0"; regards, olivier |
|
August 18, 2011, 13:18 |
|
#2 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
The last release of swak4Foam (I see from the syntax that you're a legacy-groovyBC-man, sorry you'll have to move to the darker side of the force) can do this via a sampled set. Basically what you do is 1. create a sampled set via a special functionObject 2. Address this set via the more universal remote variables mechanism in swak Have a look at the fillingTheDam-example that comes with swak or at my presentation from this years Workshop to get an idea Bernhard |
|||
August 18, 2011, 18:44 |
groovyBC; multiple domains
|
#3 |
Member
ak
Join Date: May 2011
Posts: 64
Rep Power: 15 |
Hi
I am a relatively new user of OpenFoam, working in the area of combustion dynamics, and needed some help with transient boundary conditions. The combustion system is divided into 3 components: the inlet channel (non-reacting flow), the combustor (reacting flow computations in this region), and the exhaust (models acoustics using 1D gas dynamics); the three are to be linked by appropriate boundary conditions (ie coupled at the inlet and exit planes of the combustor). I saw that groovyBC be used for coupling of patches. The sample case for groovyBC defines 3 regions: Region A: inlet ; interface11 Region B: interface12 ; interface21 Region C: interface22 ; outlet However, I am interested in performing the reacting simulations only in the combustor region. Could someone please point out how it may be used for the above case, or if there are other ways to implement it? Any tips would be useful, as I still learning working with OF! Thanks so much! amit |
|
August 18, 2011, 20:14 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
August 18, 2011, 21:28 |
|
#5 |
Member
ak
Join Date: May 2011
Posts: 64
Rep Power: 15 |
Thanks for pointing it out. Will take care from now on!
A new thread has been started for the discussion. Cheers, ak |
|
June 22, 2012, 23:25 |
|
#6 |
Member
Santiago
Join Date: Dec 2009
Posts: 85
Rep Power: 17 |
In a related to note, I just need to couple the outlet of a domain (called interface11) with the inlet of another one (called interface 12). Both patches have the same exact number of cells. I do not want/need to perform any kind of averaging or interpolation, just need the velocity and pressure from the end of one domain to be exactly the same in the inlet of the other domain. I'm trying:
interface12 { type groovyBC; variables "U_int11@interface11=U;"; valueExpression "U_int11"; } interface11 { type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } in the U/0 file and: interface12 { type groovyBC; variables "p_int12@interface11=p;"; valueExpression "p_int12"; } interface11 { type zeroGradient; } in the p/0 file. I am not getting the desired results. Can anyone tell me what am I doing wrong?? Thanks |
|
June 23, 2012, 09:44 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Second: I have explained that a number of times. Even for an equal number of cells this is currently not possible. Up to know I (nor one of the people I work for) did need it and I have no intention to rush in a feature that is not THAT trivial to test (equal number does not mean equal ordering ... what if the patches are not translatory aligned ... what for parallel cases). So: you're doing nothing wrong. It just doesn't work that way Also: for most examples that came up (including yours) I'm not quite sure why people didn't set up the problem with cyclic boundary conditions in the first place |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
why there are two point where the velocity didn't converge at velocity inlet | zhangxing | STAR-CCM+ | 0 | January 10, 2016 01:51 |
[blockMesh] error EOF in blockMesh | Ahmed Khattab | OpenFOAM Meshing & Mesh Conversion | 7 | May 17, 2012 01:37 |
Velocity inlet boundary condition for porous medium | Chander | CFX | 3 | March 11, 2012 22:18 |
[swak4Foam] groovyBC for gradual inlet velocity | sixwp | OpenFOAM Community Contributions | 3 | April 4, 2011 03:58 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |