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

Number of sampled cellPointFace of a patch does not match face number of patch

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 19, 2014, 08:04
Default Number of sampled cellPointFace of a patch does not match face number of patch
  #1
mgg
New Member
 
Join Date: Nov 2012
Posts: 27
Rep Power: 11
mgg is on a distinguished road
Hallo everyone,

I got a problem of sampling surface. I am running a pipe flow with cyclic bc (DNS). When the flow is fully developed turbulent, I did a run-time surfacesampling of inlet. The sample function in the controlDict is as following described. The problem is that the number of sampled points/values (4846) does not match the number of actual faces of the patch (6400). This 4846 values are the results from 128 cores parallel computation. And with other core numbers, this number will also change. I also tried with 2 cores, then the number is 6400. My decompose methode is scotch. I also tried other methode, with simple the sampling function can not sample anything. Could anyone explain that?

Code:
        surfaceSampling
    {

        type surfaces;

        functionObjectLibs ("libsampling.so");
        enabled         true;
        outputControl timeStep;
        outputInterval 10;
        interpolationScheme cellPointFace; 

        surfaceFormat    foamFile;  
        fields
        (
            U
            
        );
        surfaces
        (
           inlet
          {
        type            patch;
        patches         ( inlet );
        interpolate     false;    
        triangulate     false;
          }
        );
    }
  }

Last edited by mgg; May 19, 2014 at 11:45. Reason: add tag
mgg is offline   Reply With Quote

Old   May 26, 2014, 11:26
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,962
Blog Entries: 45
Rep Power: 125
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings mgg,

This sounds like a bug. A few questions:
  1. Which OpenFOAM version are you using?
  2. Are you able to reproduce this bug with a simple case, perhaps one based on OpenFOAM's tutorials?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 12, 2014, 20:31
Default
  #3
mgg
New Member
 
Join Date: Nov 2012
Posts: 27
Rep Power: 11
mgg is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings mgg,

This sounds like a bug. A few questions:
  1. Which OpenFOAM version are you using?
  2. Are you able to reproduce this bug with a simple case, perhaps one based on OpenFOAM's tutorials?
Best regards,
Bruno
Hallo Bruno,

thank you for your reply. I attached a pic to descreibe my problem. I sampled the inlet patch of of a cylinder, with has periodic bc between inlet and outlet. You see, there are a lot of mesh values missing. I can figure it out.
Attached Images
File Type: jpg sample.jpg (35.4 KB, 19 views)
mgg is offline   Reply With Quote

Old   June 14, 2014, 09:36
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,962
Blog Entries: 45
Rep Power: 125
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi mgg,

Unfortunately your response does not answer my questions, therefore I'm unable to help you, simply because there is no clear way for me to try and reproduce the same problem.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 16, 2014, 18:12
Default
  #5
mgg
New Member
 
Join Date: Nov 2012
Posts: 27
Rep Power: 11
mgg is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi mgg,

Unfortunately your response does not answer my questions, therefore I'm unable to help you, simply because there is no clear way for me to try and reproduce the same problem.

Best regards,
Bruno
Hallo Bruce,

I solve the problem with another way. I use cutting plane in sample Dict and disable triangulation. Then I got exactly the same cell number as it should be. Because I only need fully developed turbulent flow, it does not matter where I cut it. So I cut in the center of the pipe instead of boundary patch. (Is that beacuse patch is in the boundary, so it is hard for the sampling utility to get the value?) I do not know why sample patch did not work properly, but anyway I got what I want. Thank you for your help anyway.

My OpenFOAM is 2.2.2.
mgg is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[blockMesh] Internal walls of zero thickness anger OpenFOAM Meshing & Mesh Conversion 23 February 6, 2020 19:25
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 08:36
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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