CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Set zone for impose (https://www.cfd-online.com/Forums/openfoam-pre-processing/137804-set-zone-impose.html)

ChukerSweet June 23, 2014 09:25

Set zone for impose
 
Hi guys!
Small question here. I'm trying to impose a velocity field in a specific part of a doman, but I seam not able to specify the zone in which the fvOption should apply.

Zone Declaration:
Code:

actions
(
    {
        name    Bomba;
        type    cellZone;
        action  new;
        source  boxToCellZone;
        sourceInfo
        {
            box (0.5 0.5 0.1) (0 0 0);
        }
    }
);

Condition in Zone
Code:

momentumSource
{
    type            pressureGradientExplicitSource;
    active          on;            //on/off switch
    selectionMode  cellZone;      //cellSet // points //cellZone
    cellZone        Bomba;

    pressureGradientExplicitSourceCoeffs
    {
        fieldNames  (U);
        Ubar        ( 2 0 0 );
    }
}

But nothing happens! the domain is
Code:

vertices
(
    (0 0 0)
    (1 0 0)
    (1 1 0)
    (0 1 0)
    (0 0 0.1)
    (1 0 0.1)
    (1 1 0.1)
    (0 1 0.1)
);

I don't even get an error of some sort. I'm not sure though how the box command with the (x1 y1 z1) (x2 y2 z2) acctualy works but if I could get this thing working at some level I could figure that out....As always any help is most welcome.

wyldckat June 28, 2014 16:01

Quick questions:
  1. What commands are you running for the zone to be created?
  2. Where did you find the example for creating the zone?

ChukerSweet July 2, 2014 07:32

5 Attachment(s)
Hi wyldkat!
The thing is not working, like at alll, so there might be quite a few thing wrong with the build I'm trying to pull out.
The two examples I got "inspired" by are the:

tutorials/incompressible/pimpleFoam/channel395/system/fvOptions
This used the function " pressureGradientExplicitSource" which I think is a good way of dealing with a simulation of a pump in a closed loop ( please correct me if I'm wrong there ). But in that example the DeltaP is impose all over the place.

So in the example in:
tutorials/multiphase/cavitatingFoam/ras/throttle/system
There is clearly a zone declaration under the topoSetFile

In the attachment you can see my attempt to setting things up. You might notice that there is no modification in the controlDict file, since I haven't find the way to say to openFoam "Hey there is a zone over there, and it has some propertys"
The "easy" example I'm trying to adapt is the cavity run with pisoFoam.

If you could help me I would be quite grateful

wyldckat August 17, 2014 11:39

Hi ChukerSweet,

Unfortunately only today did I manage to take a very quick look into this and unfortunately I don't have enough time to study the files you've shared :(
In addition, I don't know if you've already solved this issue or not, but if you haven't, I've remembered an example case I made sometime ago that uses blockMesh + snappyHexMesh: http://www.cfd-online.com/Forums/ope...tml#post408279 - post #5

Beyond this, have a look at the tips given on this wiki page: http://openfoamwiki.net/index.php/SnappyHexMesh

Best regards,
Bruno

Eloise July 1, 2015 04:27

Hi ChukerSweet,
Have you solved your problem? If so, could you please describe your approach?
Thanks!
Eloïse


All times are GMT -4. The time now is 15:08.