CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Two boundary conditions at inlet (https://www.cfd-online.com/Forums/openfoam-solving/154261-two-boundary-conditions-inlet.html)

syavash June 10, 2015 12:48

Two boundary conditions at inlet
 
Hello dear Foamers,

I am new in OF, my question is that :
How is it possible to combine two boundary conditions at inlet?

I need to implement groovy BC to apply a boundary layer velocity profile at the inlet of my domain. Something like this:

Code:

inlet 
  {     
  type            groovyBC;
        variables        "u_f=0.0239;z0=0.0000333;K=0.41;vel=(u_f/K)*log(pos().z/z0)*normal();";     
  valueExpression "-vel";   
 }

On the other hand, I want to apply velocity fluctuations using LEMOS inflow turbulence generator:

Code:

inlet    { 
      type            decayingTurbulenceInflowGenerator;
        direction      1;     
  LField          uniform 1;     
  RField          uniform (0.1 0 0 0.1 0 0.1); 
      refField        uniform ( 20 0 0 );   
    value          uniform ( 20 0 0 );   
 }

How can I combine these two boundary conditions at inlet?
Thanks

syavash June 12, 2015 10:09

Any one willing to help? Am I asking something too basic?!
May some one show me the principles at least??
Thanks.


All times are GMT -4. The time now is 19:56.