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

ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 11, 2016, 08:47
Default ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary
  #1
Member
 
Sing
Join Date: Jan 2016
Posts: 30
Rep Power: 10
Struggle_Achieve is on a distinguished road
Hello Everyone I am using a shell script to run my case.
In that I have used the changeDictionary command to populate the boundary conditions in ZERO folder.
But while running using script I get this error:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.3.1-262087cdf8db
Exec   : changeDictionary
Date   : Oct 11 2016
Time   : 18:05:14
Host   : "hpc4"
PID    : 22709
Case   : /home/1016914/auto_case_home_final/Cases/case1_dp_1500_dt_100_dh_388_dw_1000_wt_100_wh_485_depIn_300_hPad_210_depPad_150_T_1873_MFR_16.665/meshANDsimulation
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0



--> FOAM FATAL IO ERROR: 
"ill defined primitiveEntry starting at keyword 'value' on line 197 and ending at line 197"

file: /home/1016914/auto_case_home_final/Cases/case1_dp_1500_dt_100_dh_388_dw_1000_wt_100_wh_485_depIn_300_hPad_210_depPad_150_T_1873_MFR_16.665/meshANDsimulation/system/changeDictionaryDict at line 197.

    From function primitiveEntry::readEntry(const dictionary&, Istream&)
    in file lnInclude/IOerror.C at line 132.

FOAM exiting
But when I am manually running the changeDictionary command then its working.
I am confused about the reason for the error.
My changeDictionaryDict file's code is as follows:

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

dictionaryReplacement
{

    U
    {
        internalField   uniform (0 0 0);
        boundaryField
        {
            "(topsur|botsur|twall|dam|weir)"
            {
                type            fixedValue;
                value           uniform (0 0 0);
            }
       "inlet"
        {
          type            flowRateInletVelocity; 
         rhoInlet    7020; 
                massFlowRate    constant 16.665;
        }
       "outlet"
        {
        type             pressureInletOutletVelocity; 
             value            uniform (0 0 0);
        }
       "symmetry"
        {
        type         symmetry;
        } 
       
        }
    }

    T
    {
        internalField   uniform 1873;
        boundaryField
        {
            "topsur"
            {
            type            fixedGradient;
              gradient        uniform -365.85;
            }
        "(botsur|twall|dam|weir)"
            {
                 type            fixedGradient;
               gradient        uniform -75.61;
            }
            "inlet"
        {
        type            fixedValue;
               value           uniform 1873;
        }
        "outlet"
        {
        type            zeroGradient;
        }
        "symmetry"
        {
        type         symmetry;
        }
        }
    }

    epsilon
    {
        internalField   uniform 1.95e-04;
        boundaryField
        {
            "(topsur|botsur|twall|dam|weir)"
            {
            type            epsilonWallFunction; 
               value           uniform 1.95e-04;
            }
       "inlet"
        {
          type        fixedValue; 
         value        uniform 1.95e-04;
        }
       "outlet"
        {
            type        inletOutlet; 
        inletValue    uniform 1.95e-04; 
        value        uniform 1.95e-04;
        }
       "symmetry"
        {
        type         symmetry;
        }
        }
    }

    k
    {
        internalField   uniform 2.7e-04;
        boundaryField
        {
            "(topsur|botsur|twall|dam|weir)"
            {
            type            kqRWallFunction; 
            value           uniform 2.7e-04;
            }
       "inlet"
        {
          type        fixedValue; 
         value        uniform 2.7e-04;
        }
       "outlet"
        {
            type        inletOutlet; 
        inletValue    uniform 2.7e-04; 
        value        uniform 2.7e-04;
        }
       "symmetry"
        {
        type         symmetry;
        }
        }
    }

    p_rgh
    {
        internalField   uniform 0;
        boundaryField
        {
           "(topsur|botsur|twall|dam|weir|inlet)"
            {
                type            fixedFluxPressure; 
               rho              rhok; 
            value           uniform 0;
            }
       "outlet"
        { 
        type         outletInlet; 
        rho        rhok; 
        outletValue    uniform 0; 
        value        uniform 0; 
           }
       "symmetry"
        {
        type         symmetry;
        }
        }
    }

    p
    {
        internalField   uniform 0;
        boundaryField
        {
            ".*"
            {
                type            calculated;
                value           uniform 0;
            }
     "symmetry"
        {
        type         symmetry;
        }
        }
    }

    alphat
    {
        internalField   uniform 0;
        boundaryField
        {
            "(topsur|botsur|twall|dam|weir)"
            {
            type            alphatJayatillekeWallFunction; 
               Prt             0.85; 
            value           uniform 0;
            }
       "inlet"
        {
          type        calculated;     
        value        uniform 0;
        }
       "outlet"
        {
            type        calculated;     
        value        uniform 0;
        }
       "symmetry"
        {
        type         symmetry;
        }
        }
    }

    nut
    {
        internalField   uniform 0;
        boundaryField
        {
            "(topsur|botsur|twall|dam|weir)"
            {
            type            nutkWallFunction; 
            value           uniform 0;
            }
       "inlet"
        {
          type        calculated;     
        value        uniform 0;
        }
       "outlet"
        {
            type        calculated;     
        value        uniform 0;
        }
       "symmetry"
        {
        type         symmetry;
        }
        }
    }
}

// ************************************************************************* //
Any help would be greatly appreciated.

Thanks and regards,
Singh.
Struggle_Achieve is offline   Reply With Quote

 


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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 10:51
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 04:52.