CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   changing fan-direction (http://www.cfd-online.com/Forums/openfoam-pre-processing/89098-changing-fan-direction.html)

Tobi June 4, 2011 05:45

changing fan-direction
 
hi together,

i think it 's very simple question. I tested the fan BC and made a case. there i get four fans.
The problem is, that just two of them have the correct direction (picture).
The other two fan's are wrong. I tested many things but don 't get it solved (just i set 2 of them to cyclic --> other picture)
And i am not good in reading the code :/ so I am not sure what to do (till now).


p-file (fan2.png)
Code:

dimensions      [0 2 -2 0 0 0 0];

internalField  uniform 0;

boundaryField
{
    internalWall
    {
        type            zeroGradient;
    }
    fan1     
    {
        type            fan;
        patchType      cyclic;
        f List<scalar>  2 (0.1 1.0);
        value          uniform 0;
    }
    fan3     
    {
        type            fan;
        patchType      cyclic;
        f List<scalar>  2 (0.1 1.0);
        value          uniform 0;
    }
    fan2     
    {
        type            fan;
        patchType      cyclic;
        f List<scalar>  2 (0.1 -1.0);
        value          uniform 0;
    }

    fan4     
    {
        type            fan;
        patchType      cyclic;
        f List<scalar>  2 (0.1 1.0);
        value          uniform 0;
    }
    frontAndBack
    {
        type empty;
    }
    wall
    {
        type zeroGradient;
    }
}

p-file (fan.png)
Code:

dimensions      [0 2 -2 0 0 0 0];

internalField  uniform 0;

boundaryField
{
    internalWall
    {
        type            zeroGradient;
    }
    fan1     
    {
        type            fan;
        patchType      cyclic;
        f List<scalar>  2 (0.1 1.0);
        value          uniform 0;
    }
    fan3     
    {
        type            fan;
        patchType      cyclic;
        f List<scalar>  2 (0.1 1.0);
        value          uniform 0;
    }
    fan2     
    {
        type              cyclic;
      // patchType      cyclic;
      // f List<scalar>  2 (0.1 -1.0);
      // value          uniform 0;
    }

    fan4     
    {
        type                cyclic;
      //  patchType      cyclic;
      //  f List<scalar>  2 (0.1 1.0);
      //  value          uniform 0;
    }
    frontAndBack
    {
        type empty;
    }
    wall
    {
        type zeroGradient;
    }
}


Tobi June 4, 2011 05:47

2 Attachment(s)
here the pictures


thx for help in advanced.
Tobi

anger June 21, 2011 14:20

Hi Tobi,

see http://www.cfd-online.com/Forums/ope...tml#post275273

Regards,
-Thomas


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