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

How to implement ChangeDictionary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2017, 01:41
Default How to implement ChangeDictionary
  #1
New Member
 
Jakob Roar Bentzon
Join Date: Feb 2017
Posts: 1
Rep Power: 0
jrb@qinuo.one is on a distinguished road
Hi,

I'm trying to implement the changeDictionary function to edit my boundary for a gmsh generated mesh.

However even though I can run "changeDictionary -constant" successfully, nothing changes in my files and upon trying to run the solver i get an error due to boundary cast (e.g. "--> FOAM FATAL ERROR: Attempt to cast type patch to type lduInterface")

Do i need to implement any changes in my controlDict?

Info:
Solver: SRFPimpleFoam, but have tried SimpleFoam as well
Changes attempted: 2 patches changed from "patch" to "cyclic", one to "wall"

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

dictionaryReplacement
{
    boundary
    {
                rotor
                {
                        type            wall;
                }
		
		InletCyclicFace1
		{
			type            cyclic;
			neighbourPatch	InletCyclicFace2;
		}
		
		InletCyclicFace2
		{
			type            cyclic;
			neighbourPatch	InletCyclicFace1;
		}
    }
}


// ************************************************************************* //
polymesh/boundary:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

5
(
    rotor
    {
        type            patch;
        physicalType    patch;
        nFaces          41360;
        startFace       1574224;
    }
    inlet
    {
        type            patch;
        physicalType    patch;
        nFaces          2816;
        startFace       1615584;
    }
    InletCyclicFace1
    {
        type            patch;
        physicalType    patch;
        nFaces          1584;
        startFace       1618400;
    }
    outlet
    {
        type            patch;
        physicalType    patch;
        nFaces          2160;
        startFace       1619984;
    }
    InletCyclicFace2
    {
        type            patch;
        physicalType    patch;
        nFaces          1584;
        startFace       1622144;
    }
)

// ************************************************************************* //
Thanks in advance and best regards,
Jakob
jrb@qinuo.one is offline   Reply With Quote

Reply

Tags
change directory


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
slip & noslip boundary condition for dynamic mesh, how to implement? oschi OpenFOAM Programming & Development 6 May 21, 2019 05:33
ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary Struggle_Achieve OpenFOAM Pre-Processing 2 December 20, 2017 04:58
changeDictionary messes it up when #include directive is used zfaraday OpenFOAM Pre-Processing 7 February 7, 2015 15:06
How to implement implicit TVD limiter? Kmlin Main CFD Forum 3 March 28, 2010 09:52
Implement new Turbulence Model sven OpenFOAM 0 July 19, 2009 16:47


All times are GMT -4. The time now is 18:32.