CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

The sampled data is not restricted to the defined zone in topoSetDict

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2018, 17:22
Default The sampled data is not restricted to the defined zone in topoSetDict
  #1
New Member
 
Join Date: Nov 2015
Posts: 28
Rep Power: 11
jiaodanuma is on a distinguished road
Hi foamers

I defined a box zone in topoSetDict to restrict the sampled data in a plane. However, the sampled data is not confined to the defined box zone as illustrated in the following pictures, where fractions in the red rectangular only is the supposed part to be sampled. I have no idea how this happens... Can anyone help please? Thanks in advance!

code in topoSetDict is as follows:

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      topoSetDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

actions
(
    {
        name    zone1;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (-0.1125 -0.1125 -0.1125) (0.4125 0.1125 0.1125);
        }
    }
    {
        name    zone1;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set zone1;
        }
    }
    );

// ************************************************************************* //
and code for sampled surface is listed below
Code:
sampled_surface
    {
        type                   surfaces;
        functionObjectLibs    ("libsampling.so");
        enabled                true;
        outputControl          timeStep;
        outputInterval         5;
        surfaceFormat          raw;
        interpolationScheme    cell;
        fields
        ( 
              U
              p
         );
        surfaces
        (
              front
              {
                 type        plane;
                 basePoint   (-0.075 0 0);
                 normalVector            (1 0 0);
                 //interpolate           true;
                 //traingulate             false;
                 zone        zone1;
              }
    
         ); 
     }
Attached Images
File Type: png 1.png (92.8 KB, 9 views)
File Type: png 2.png (38.1 KB, 8 views)
jiaodanuma is offline   Reply With Quote

Old   August 14, 2018, 08:25
Default
  #2
New Member
 
Join Date: Nov 2015
Posts: 28
Rep Power: 11
jiaodanuma is on a distinguished road
Hi everyone, I find this problem only happens when sampling data at run-time. The zone woks fine when using sampleDict for post-processing. Any suggestion to improve the sampling code based in controlDict please, avoiding saving enormous data for post processing.
jiaodanuma is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 05:20
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 18:51
Problem in IMPORT of ICEM input file in FLUENT csvirume FLUENT 2 September 9, 2009 02:08
[Commercial meshers] TGridFluent mesh with internal by prism layer and internal face for diagnostic sponiar OpenFOAM Meshing & Mesh Conversion 2 March 30, 2009 16:02
Sliding mesh error Karl Kevala FLUENT 4 February 21, 2001 16:52


All times are GMT -4. The time now is 07:29.