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

changeDictionaryDict post-processing wall>patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2016, 08:27
Default changeDictionaryDict post-processing wall>patch
  #1
Senior Member
 
Join Date: Jul 2009
Posts: 260
Rep Power: 18
kingjewel1 is on a distinguished road
Hi everyone,

Short explanation: Is there a way of changing boundary patch type after running your case? I need to go from wall to patch in order to sample my surfaces

Long:

After doing snappyHexMesh it makes my stl objects into walls. I've run my case and now want to sample the pressure on the surface of my stl walls with sampleDict.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

setFormat raw;
surfaceFormat vtk;

interpolationScheme cellPoint;

// Fields to sample.
fields
(
    p
);

sets
(
);

surfaces
(
    cubes
    {
        type            wall;
        patches         ("cubes");
    }
);


// *********************************************************************** //
But it won't sample a wall. So need to use changeDictionaryDict to change the constant/polyMesh/boundary for cubes from wall to patch.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     3.0                                |
|   \\  /    A nd           | Web:         http://www.extend-project.de       |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      changeDictionaryDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dictionaryReplacement
{
    boundary
    {
        cubes
        {
            type            patch;
        }
    }
}

// ************************************************************************* //
This doesn't work.
kingjewel1 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
wind turbine - post processing er_ijaz FLUENT 0 September 30, 2013 06:28
post processing for CEL expressions Niru CFX 0 May 10, 2013 14:13
Automated post processing using CFD Post shreyasr ANSYS 0 January 28, 2013 07:21
CFD post processing techniques & streamlining klk Main CFD Forum 0 October 19, 2010 08:37
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 21:51


All times are GMT -4. The time now is 16:12.