CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Sample using Zones (https://www.cfd-online.com/Forums/openfoam/75885-sample-using-zones.html)

Adrian May 7, 2010 17:13

Sample using Zones
 
Hi everyone

I am trying to get out some specific data out of my simulation using the sample utility.
I found the option using zones of planes:

Code:

    constantPlane
    {
        type            plane;
        basePoint      (0.0501 0.0501 0.005);
        normalVector    (0.1 0.1 1);

        //- Optional: restrict to a particular zone
        // zoneName        zone1;

        // Optional: whether to leave as faces or triangulate (=default)
        triangulate    false;
    }

but couldnt find out how to use it. What I eventually would like to do is to calculate different properties like the flow in/out of a surface inside my domain.
If anyone has an idea how to use the zones feature, it would be great to get some hint. And any other idea how to filter out the desired data, I would be happy too.

Cheers Adrian

olesen May 8, 2010 09:49

Quote:

Originally Posted by Adrian (Post 257978)
Hi everyone

I am trying to get out some specific data out of my simulation using the sample utility.
I found the option using zones of planes:

Code:

    constantPlane
    {
        type            plane;
        basePoint      (0.0501 0.0501 0.005);
        normalVector    (0.1 0.1 1);

        //- Optional: restrict to a particular zone
        // zoneName        zone1;

        // Optional: whether to leave as faces or triangulate (=default)
        triangulate    false;
    }

but couldnt find out how to use it. What I eventually would like to do is to calculate different properties like the flow in/out of a surface inside my domain.
If anyone has an idea how to use the zones feature, it would be great to get some hint. And any other idea how to filter out the desired data, I would be happy too.

As the comment implies, you can specify a zoneName to restrict the plane. Thus instead of an infinite plane, you get one that only cuts through the named cellZone.

Adrian May 10, 2010 03:57

Thank you olsen for your reply.
My problem is how to define these zones and implement it.
Would be great to get some cloues on that.
Thanks

olesen May 10, 2010 04:30

Quote:

Originally Posted by Adrian (Post 258126)
Thank you olsen for your reply.
My problem is how to define these zones and implement it.
Would be great to get some cloues on that.
Thanks

cellZones are simply a non-overlapping list of cell numbers. In blockMesh, you can optionally specify separate cellZone names (see, for example, the blockMeshDict for the rhoPorousSimpleFoam tutorials).
If you are converting your mesh from some other format (eg, proSTAR, fluent, ccm, etc) the zones and their names should normally be preserved from the original mesh.

Adrian May 12, 2010 08:15

Thanks a lot for your help, I got most of it now.
I didnt know that you can specify zones in the blockMeshDict before...


All times are GMT -4. The time now is 23:21.