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

'functionObjects' or 'sample' on a mesh pointSet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2016, 10:28
Default 'functionObjects' or 'sample' on a mesh pointSet
  #1
New Member
 
Lukáš Hurda
Join Date: Oct 2015
Posts: 5
Rep Power: 10
Luke.12 is on a distinguished road
Hello FOAMers!

Does anyone know if there is a possibility to sample data with controlDict.functionObjects or the sample utility USING THE pointSet CREATED WITH topoSet OR setSet?

I am doing an LES on a turbine blade cascade (spanwise and transverse periodic domain with one blade and two halves of interblade channel). I wonder if I can make my sampling better. I want to evaluate wallShearStress acting on the blade in the spanwise midplane only, because for proper LES, the domain is large in terms of spanwise points, so the runtime sampling of whole patch is consuming too much storage. I am using an unstructured mesh fully made of wedges - extruded from 2D triangle mesh. That means the mesh is uniform in z-spanwise direction and I can be sure, that when I have even number of cell layers spanwise, I have mesh points right on the midplane.

Now I'm probing with

Code:
  ptsClouds
  {
    type                sets;
    functionObjectLibs  ("libsampling.so");
    enabled             true;
    outputControl       timeStep;
    outputInterval      10;
    interpolationScheme cellPoint;
    setFormat           raw;
    fields              (  U p grad(U) magGrad_U wallShearStress );
    sets
    (
      cloudSucPre
      {
        type    cloud;
        axis    xyz;
        points
        (
          ( 0.0011459 0.0038368 1 )
          ...
         )
       }
     )
  }
with 128 points offset by distance smaller than first layer cell height generated by Octave. This is not very accurate nor convenient. I can put more points, but the best way I can imagine is to use a pointSet generated using topoSetDict:

Code:
actions
(
  {
    name wallCenterPts;
    type pointSet;
    action new;
    source boxToPoint;
    sourceInfo
    {
      box (-0.1 -1 0.995) (1 1 1.015);
    }
  }

  {
    name wallFaces;
    type faceSet;
    action new;
    source patchToFace;
    sourceInfo
    {
      name "WALL_BL";
    }
  }

  {
    name wallCenterPts;
    type pointSet;
    action subset;
    source faceToPoint;
    sourceInfo
    {
      set wallFaces;
      option all;
    }
  }

  {
    name wallFaces;
    type faceSet;
    action delete;
    source faceToFace;
    sourceInfo
    {
      set wallFaces;
      option all;
    }
  }
);
Is it somehow possible? Till now I have few experience with functionObjects and can't find a way to set this in controlDict. Is there a library from $FOAM_INST_DIR/OpenFOAM-3.0.1/platforms/linux64GccDPInt32Opt/lib/ that can help do this?


Thank you very much in advance!
Luke.12 is offline   Reply With Quote

Reply

Tags
functionobjects, sample, setset, toposet


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
[snappyHexMesh] problems generating clean mesh Christian_tt OpenFOAM Meshing & Mesh Conversion 2 June 20, 2019 05:39
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 06:21
[ICEM] Mirror Mesh | Delete duplicate mesh pythag0ra5 ANSYS Meshing & Geometry 6 November 19, 2013 07:35
why does 'sample' do this? wallShearStress question CHARLES OpenFOAM Post-Processing 0 August 7, 2013 19:30
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 00:20.