error: keyword outlet is undefined in dictionary
I am trying to simulate flow past a square cylinder using pisofoam-pitzDaily. I get the following error when I want to get the file for plotting inital data. The content of 0/U are also pasted below.
[akonduri@node256 pitzDaily]$ foamToFieldview9 /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.6 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 1.6-f802ff2d6c5a Exec : foamToFieldview9 Date : Aug 05 2010 Time : 18:02:19 Host : node256 PID : 5754 Case : /storage/akonduri/OpenFOAM/akonduri-1.6/run/sqcylPfoam/les/pitzDaily nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 All fields: Foam/Fieldview volScalar : nuSgs/nuSgs k/kk nuTilda/nuTilda p/p volVector : U/U surfScalar : surfVector : sprayScalar : sprayVector : Time: 0 Mesh read: tet : 0 hex : 266000 prism : 0 pyr : 0 poly : 0 file:/storage/akonduri/OpenFOAM/akonduri-1.6/run/sqcylPfoam/les/pitzDaily/Fieldview/pitzDaily_0.uns keyword outlet is undefined in dictionary "/storage/akonduri/OpenFOAM/akonduri-1.6/run/sqcylPfoam/les/pitzDaily/0/U::boundaryField" file: /storage/akonduri/OpenFOAM/akonduri-1.6/run/sqcylPfoam/les/pitzDaily/0/U::boundaryField from line 25 to line 55. From function dictionary::subDict(const word& keyword) const in file db/dictionary/dictionary.C at line 449. FOAM exiting 0/U file: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type turbulentInlet; referenceField uniform (0.22 0 0); fluctuationScale (0.002 0.001 0.001) } outlet { type zeroGradient; } up { type symmetryPlane; } square { type fixedValue; value uniform (0 0 0); } frontAndBack { type cyclic; value uniform (0 0 0 0 0 0 0 0 0); } down { type symmetryPlane; } } // ************************************************** *********************** // |
you lose a semicolon after fluctuationScale (0.002 0.001 0.001)
|
Many thanks.
|
hi ,
i am getting following error message. i used fuel inlet type uniformFixedValue but error shows uniformValue FOAM FATAL IO ERROR: keyword uniformValue is undefined in dictionary "/scratch/ssvivek/multiphasetutorial/multiphase/interFoam/injector/0/alpha.water.boundaryField.FUEL_INLET" file: /scratch/ssvivek/multiphasetutorial/multiphase/interFoam/injector/0/alpha.water.boundaryField.FUEL_INLET from line 34 to line 35. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 566. below is my alpha.water file 1 /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | \\ / O peration | Version: 5.0 | 5 | \\ / A nd | Web: www.OpenFOAM.org | 6 | \\/ M anipulation | | 7 \*---------------------------------------------------------------------------*/ 8 FoamFile 9 { 10 version 2.0; 11 format ascii; 12 class volScalarField; 13 location "0"; 14 object alpha.water; 15 } 16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 18 dimensions [0 0 0 0 0 0 0]; 19 20 internalField uniform 0; 21 22 boundaryField 23 { 24 RIGHT_WALL 25 { 26 type zeroGradient; 27 } 28 TOP_WALL 29 { 30 type zeroGradient; 31 } 32 FUEL_INLET 33 { 34 type uniformFixedValue; 35 value uniform 1; 36 } 37 BOTTOM_WALL 38 { 39 type zeroGradient; 40 } 41 frontAndBackPlanes_pos 42 { 43 type wedge; 44 } 45 frontAndBackPlanes_neg 46 { 47 type wedge; 48 } 49 } 50 51 52 // ************************************************** *********************** // any suggestions to correct this mistake |
I suggest you to learn how to read the error message. The info there is very relevant.
You have, Code:
FOAM FATAL IO ERROR: so, you need to add the keyword "uniformValue" instead of "value". Cheers, |
Thanks Cyprien!!
My code is 32 FUEL_INLET 33 { 34 type uniformFixedValue; 35 value uniform 1; } to changed like 32 FUEL_INLET 33 { 34 type uniformFixedValue; 35 uniformValue uniform 1; } is it correct ? |
getting error !! keyword type is undefined in dictionary
keyword type is undefined in dictionary "F:/Programs/blueCFD-Core-2017/ofuser-of5/run1/test16/system/controlDict.functions.outletWaterFlux"
here is my controlDict file /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 5 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application interFoam; startFrom latestTime; startTime 0; stopAt endTime; endTime 40; deltaT 0.001; writeControl adjustableRunTime; writeInterval 1; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression compressed; timeFormat general; timePrecision 6; runTimeModifiable yes; adjustTimeStep yes; maxCo 0.9; maxAlphaCo 0.5; maxDeltaT 0.5; functions { inletMainFlux { type surfaceFieldValue;//faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); writeControl timeStep; //outputControl log true; // Output field values as well valueOutput true;//false; writeFields false; regionType patch; // source patch; name inletMain; // sourceName inletMain; operation sum; fields ( rhoPhi ); } inletBranchFlux { type surfaceFieldValue;//faceSource; functionObjectLibs ("libfieldFunctionObjects.so"); writeControl timeStep; //outputControl log true; // Output field values as well valueOutput true;//false; writeFields false; regionType patch; // source patch; name inletBranch; // sourceName inletBranch; operation sum; fields ( rhoPhi ); } outletWaterFlux { $inletFlux; name outletWater; } atmosphereFlux { $inletFlux; name atmosphere; } } // ************************************************** *********************** // |
All times are GMT -4. The time now is 05:22. |