|
[Sponsors] |
March 10, 2017, 01:41 |
How to implement ChangeDictionary
|
#1 |
New Member
Jakob Roar Bentzon
Join Date: Feb 2017
Posts: 1
Rep Power: 0 |
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; } } } // ************************************************************************* // 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; } ) // ************************************************************************* // Jakob |
|
Tags |
change directory |
|
|
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 |