groovyBC, coupling inlet with velocity at specific point location
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 regards, olivier |
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 |
groovyBC; multiple domains
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 |
Quote:
|
Thanks for pointing it out. Will take care from now on!
A new thread has been started for the discussion. Cheers, ak |
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 |
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 |
All times are GMT -4. The time now is 01:09. |